4957393b5217018d2be4ef1240b050280d70fc69
[gnulib.git] / ChangeLog
1 2010-04-09  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: print better diagnostic when there is no $(_hv_file)
4         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5         announce that when $(_hv_file) (aka help-version) does not exist.
6
7         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9         not try to interpret its random input bytes.  Jarno Rajahalme reported
10         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12         (mktempd_): Likewise, just in case.
13
14         ftruncate: add two years to projected module removal date: 2012
15         * m4/ftruncate.m4: Adjust comments.
16
17         ftruncate: mark module as obsolete; even MinGW provides it, now
18         * modules/ftruncate (Status): Obsolete.
19         (Notice): Say that.
20         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22
23 2010-04-08  Bruno Haible  <bruno@clisp.org>
24
25         Fix side effects from tests-related modules.
26         * modules/dprintf-posix (Comment): New section.
27         * modules/fprintf-posix (Comment): Likewise.
28         * modules/obstack-printf-posix (Comment): Likewise.
29         * modules/printf-posix (Comment): Likewise.
30         * modules/snprintf-posix (Comment): Likewise.
31         * modules/sprintf-posix (Comment): Likewise.
32         * modules/vasnprintf-posix (Comment): Likewise.
33         * modules/vasprintf-posix (Comment): Likewise.
34         * modules/vdprintf-posix (Comment): Likewise.
35         * modules/vfprintf-posix (Comment): Likewise.
36         * modules/vprintf-posix (Comment): Likewise.
37         * modules/vsnprintf-posix (Comment): Likewise.
38         * modules/vsprintf-posix (Comment): Likewise.
39         * modules/xprintf-posix (Comment): Likewise.
40         * modules/xvasprintf-posix (Comment): Likewise.
41         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
42         * modules/floorf-tests (Depends-on): Likewise.
43         * modules/round-tests (Depends-on): Likewise.
44         * modules/roundf-tests (Depends-on): Likewise.
45         * modules/trunc-tests (Depends-on): Likewise.
46         * modules/truncf-tests (Depends-on): Likewise.
47         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
48         'fprintf-posix' module is not present.
49         * tests/test-floorf2.c (check): Likewise.
50         * tests/test-trunc2.c (check): Likewise.
51         * tests/test-truncf2.c (check): Likewise.
52         * tests/test-round2.c (equal): Likewise.
53         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
54
55 2010-04-07  Karl Berry  <karl@gnu.org>
56
57         * config/srclist.txt,
58         * config/srclistvars.sh,
59         * config/srclist-update: doc fixes.
60
61 2010-04-07  Jim Meyering  <meyering@redhat.com>
62
63         maint.mk: add a PATH crosschecking syntax-check rule
64         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65         Useful if you use a test like the one in help-version (coreutils,
66         diffutils, grep, gzip) that ensures $(VERSION) matches what is
67         printed by prog --version.
68
69 2010-04-06  Bruno Haible  <bruno@clisp.org>
70
71         Fix link error on mingw.
72         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
73         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
74
75 2010-04-06  Bruno Haible  <bruno@clisp.org>
76
77         Assume rmdir exists.
78         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
79
80 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
81
82         doc: update users.txt
83         * users.txt: Add gcal.
84
85 2010-04-06  Jim Meyering  <meyering@redhat.com>
86
87         init.sh: simply unset TMPDIR rather than risking env -i
88         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
89         although it probably works fine on all Unix-based systems, some
90         systems (Cygwin?) cannot tolerate a totally cleared environment.
91         Suggestion from Eric Blake.
92
93 2010-04-06  Jim Meyering  <meyering@redhat.com>
94
95         init.sh: portability fix: use env's POSIX-specified -i option not -u
96         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
97         than unportable env -u.  Solaris 5.11's env lacks support for -u.
98
99 2010-04-05  Bruno Haible  <bruno@clisp.org>
100
101         btowc: Work around Cygwin 1.7.2 bug.
102         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
103         does not map NUL to 0.
104         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
105
106 2010-04-05  Bruno Haible  <bruno@clisp.org>
107
108         Make the multithread modules work on Cygwin 1.7.2.
109         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
110         imported symbols can be declared weak, so that it returns "no" on
111         Cygwin 1.7.2.
112
113 2010-04-05  Bruno Haible  <bruno@clisp.org>
114
115         Use the module 'strncat'.
116         * modules/unistr/u8-strncat (Depends-on): Add strncat.
117
118         Tests for module 'strncat'.
119         * modules/strncat-tests: New file.
120         * tests/test-strncat.c: New file.
121
122         New module 'strncat'.
123         * lib/string.in.h (strncat): New declaration.
124         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
125         * m4/strncat.m4: New file, based on m4/memchr.m4.
126         * modules/strncat: New file.
127         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
128         is declared.
129         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
130         REPLACE_STRNCAT.
131         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
132         REPLACE_STRNCAT.
133         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
134         module.
135         * tests/test-string-c++.cc: Check signature of strncat.
136
137 2010-04-05  Jim Meyering  <meyering@redhat.com>
138
139         xstrtoumax-tests: convert to use init.sh
140         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
141         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
142         Use Exit, not exit.
143         Remove uses of $EXEEXT and "./" to run a program in the current dir.
144
145         xstrtoimax-tests: convert to use init.sh
146         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
147         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
148         Use Exit, not exit.
149         Remove uses of $EXEEXT and "./" to run a program in the current dir.
150
151 2010-04-05  Bruno Haible  <bruno@clisp.org>
152
153         sys_socket: Avoid #define replacements in C++ mode.
154         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
155         warning to the function if possible, rather than #defining the symbol
156         to a dysfunctional alias.
157
158 2010-04-05  Bruno Haible  <bruno@clisp.org>
159
160         fseeko: Fix C++ test error on mingw.
161         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
162         gl_FUNC_FSEEKO.
163         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
164         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
165         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
166         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
167
168 2010-04-05  Bruno Haible  <bruno@clisp.org>
169
170         duplocale: Improve test output.
171         * tests/test-duplocale.c (main): Print reason for skipped test.
172
173 2010-04-05  Bruno Haible  <bruno@clisp.org>
174
175         Assume rmdir exists.
176         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
177         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
178
179 2010-04-05  Bruno Haible  <bruno@clisp.org>
180
181         Fix link error on Solaris 8 with cc.
182         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
183
184 2010-04-05  Bruno Haible  <bruno@clisp.org>
185
186         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
187         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
188
189 2010-04-05  Bruno Haible  <bruno@clisp.org>
190
191         vasprintf: Update documentation.
192         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
193
194 2010-04-05  Bruno Haible  <bruno@clisp.org>
195
196         ptsname: Improve test.
197         * tests/test-ptsname.c (main): Also try the various master names of BSD
198         systems.
199
200 2010-04-05  Bruno Haible  <bruno@clisp.org>
201
202         memchr: Avoid a possible C++ test error.
203         * lib/string.in.h (memchr): Provide declaration if function is missing.
204         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
205         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
207         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
208
209 2010-04-05  Bruno Haible  <bruno@clisp.org>
210
211         strtok_r: Improve idiom.
212         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
213         AC_LIBOBJ is used.
214
215 2010-04-05  Bruno Haible  <bruno@clisp.org>
216
217         strdup: Improve idiom.
218         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
219         AC_LIBOBJ is used.
220         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
221         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
222         when AC_LIBOBJ is used.
223
224 2010-04-05  Bruno Haible  <bruno@clisp.org>
225
226         mbsinit, mbrtowc, wcrtomb: Improve idioms.
227         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
228         don't set REPLACE_MBSINIT to 1.
229         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
230         don't set REPLACE_MBRTOWC to 1.
231         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
232         exist, don't set REPLACE_MBSRTOWCS to 1.
233         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
234         exist, don't set REPLACE_MBSNRTOWCS to 1.
235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
236         don't set REPLACE_WCRTOMB to 1.
237         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
238         exist, don't set REPLACE_WCSRTOMBS to 1.
239         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
240         exist, don't set REPLACE_WCSNRTOMBS to 1.
241
242 2010-04-05  Bruno Haible  <bruno@clisp.org>
243
244         ldexpl: Improve idiom.
245         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
246         make sure to set HAVE_DECL_LDEXPL to 0.
247
248 2010-04-05  Jim Meyering  <meyering@redhat.com>
249
250         xstrtol-tests: convert to use init.sh
251         * modules/xstrtol-tests (Files): Add tests/init.sh.
252         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
253         Use Exit, not exit.
254         Remove uses of $EXEEXT and "./" to run a program in the current dir.
255
256         atexit-tests: convert to use init.sh
257         * modules/atexit-tests (Files): Add tests/init.sh.
258         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
259         Use Exit, not exit.
260         Remove uses of $EXEEXT and "./" to run a program in the current dir.
261
262         init.sh: fix typo
263         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
264
265         init.sh: make it easier for a test script to write to the tty, ...
266         when using automake's parallel-tests mode.
267         * tests/init.sh (stderr_fileno_): Define overridable variable.
268         (warn_): New function, to use it.
269         (fail_, skip_, framework_failure_): Use warn_.
270
271 2010-04-04  Bruno Haible  <bruno@clisp.org>
272
273         btowc: Avoid warning.
274         * lib/btowc.c: Include <stdlib.h>.
275         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
276
277 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
278             Bruno Haible  <bruno@clisp.org>
279
280         wchar: Port to NetBSD 1.5.
281         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
282         * lib/wctype.in.h (WEOF): Likewise.
283
284 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
285             Bruno Haible  <bruno@clisp.org>
286
287         Port extended stdio to NetBSD 1.5.
288         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
289         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
290         older.
291
292 2010-04-04  Bruno Haible  <bruno@clisp.org>
293
294         string: Remove unused substitution.
295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
296         HAVE_DECL_STRERROR.
297         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
298
299 2010-04-04  Bruno Haible  <bruno@clisp.org>
300
301         strtod: Avoid a possible C++ test error.
302         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
303         set REPLACE_STRTOD.
304
305 2010-04-04  Bruno Haible  <bruno@clisp.org>
306
307         strerror: Update documentation.
308         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
309
310 2010-04-04  Bruno Haible  <bruno@clisp.org>
311
312         stdio: Fix some C++ test errors on Solaris 8 with GCC.
313         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
314         _GL_CXXALIAS_SYS_CAST.
315
316 2010-04-04  Bruno Haible  <bruno@clisp.org>
317
318         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
319         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
320         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
321         REPLACE_FREXPL to 1.
322         * doc/posix-functions/frexpl.texi: Update documentation.
323
324 2010-04-04  Bruno Haible  <bruno@clisp.org>
325
326         math: Fix some C++ test errors on Solaris 8 and Cygwin.
327         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
328
329 2010-04-04  Bruno Haible  <bruno@clisp.org>
330
331         Implement nanosleep for native Windows.
332         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
333
334 2010-04-04  Bruno Haible  <bruno@clisp.org>
335
336         math: Fix some C++ test errors on Solaris 8.
337         * lib/math.in.h (truncf, trunc): Use simpler idiom.
338
339 2010-04-04  Bruno Haible  <bruno@clisp.org>
340
341         math: Fix some C++ test errors on Cygwin.
342         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
343         truncl): Provide declaration if the system does not have it.
344         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
345         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
346         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
347         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
348         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
349         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
350         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
351         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
352         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
353         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
354         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
355         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
356         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
357         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
358         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
359         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
361         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
362         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
363         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
364         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
365         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
366
367 2010-04-04  Bruno Haible  <bruno@clisp.org>
368
369         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
370         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
371         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
372         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
373         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
374         * m4/isinf.m4 (gl_ISINF): Likewise.
375         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
376
377 2010-04-04  Bruno Haible  <bruno@clisp.org>
378
379         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
380         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
381
382 2010-04-04  Bruno Haible  <bruno@clisp.org>
383
384         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
385         * modules/tmpfile (configure.ac): Update.
386
387         tmpfile: Fix C++ test error on mingw.
388         * lib/stdio.in.h (tmpfile): New declaration.
389         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
390         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
391         * modules/tmpfile (Depends-on): Add stdio.
392         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
393         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
394         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
395         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
396         REPLACE_TMPFILE.
397         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
398
399 2010-04-04  Bruno Haible  <bruno@clisp.org>
400
401         ioctl: Fix C++ test error on mingw.
402         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
403         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
404         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
405
406 2010-04-03  Bruno Haible  <bruno@clisp.org>
407
408         wcwidth: Fix C++ test error on mingw.
409         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
411         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
412
413 2010-04-03  Bruno Haible  <bruno@clisp.org>
414
415         nanosleep: Fix C++ test error on mingw.
416         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
417         * lib/time.in.h (nanosleep): Use modern idiom.
418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
419         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
420         REPLACE_NANOSLEEP to 1.
421         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
422         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
423
424 2010-04-03  Bruno Haible  <bruno@clisp.org>
425
426         strptime: Fix C++ test error on mingw.
427         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
428         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
429         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
430         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
431         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
432         not REPLACE_STRPTIME.
433         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
434         REPLACE_STRPTIME.
435
436 2010-04-03  Bruno Haible  <bruno@clisp.org>
437
438         timegm: Fix C++ test error on mingw.
439         * lib/time.in.h (timegm): Use modern idiom.
440         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
441         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
442         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
443         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
444
445 2010-04-03  Bruno Haible  <bruno@clisp.org>
446
447         timegm: Assume declaration if function exists.
448         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
449         if it exists. Don't clobber ac_cv_func_timegm.
450
451 2010-04-03  Bruno Haible  <bruno@clisp.org>
452
453         time_r: Fix C++ test error on mingw.
454         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
455         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
456         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
457         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
458         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
459
460 2010-04-03  Bruno Haible  <bruno@clisp.org>
461
462         time_r: Minor updates.
463         * modules/time_r (Description): Mention the provided functions.
464         * lib/time_r.c: Don't include <string.h>.
465         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
466         * doc/posix-functions/localtime_r.texi: Likewise.
467
468 2010-04-03  Bruno Haible  <bruno@clisp.org>
469
470         time: Fix regression introduced on 2010-03-08.
471         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
472         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
473
474 2010-04-03  Jim Meyering  <meyering@redhat.com>
475
476         maint.mk: don't silently disable project-specific syntax-check rules
477         * top/maint.mk (_prohibit_regexp): Define, to help people realize
478         that they need to convert their project-specific syntax-check rules
479         to use the new _sc_search_regexp.
480
481 2010-04-03  Bruno Haible  <bruno@clisp.org>
482
483         fchdir: Fix regression introduced on 2010-03-08.
484         * lib/unistd.in.h (fchdir): Fix declaration.
485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
487         REPLACE_FCHDIR.
488         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
489         REPLACE_FCHDIR.
490
491 2010-04-03  Bruno Haible  <bruno@clisp.org>
492
493         getpagesize: Fix C++ test error on mingw.
494         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
495         system does not declare the function.
496         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
497         declared.
498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
499         HAVE_DECL_GETPAGESIZE.
500         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
501
502 2010-04-03  Bruno Haible  <bruno@clisp.org>
503
504         stdio: Make C++ tests work on mingw.
505         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
506         does not declare the function.
507
508 2010-04-03  Bruno Haible  <bruno@clisp.org>
509
510         ftello: Fix C++ test error on mingw.
511         * lib/stdio.in.h (ftello): Use modern idiom.
512         * lib/ftello.c (ftello): Renamed from rpl_ftello.
513         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
514         is missing and that it needs to be replaced.
515         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
517         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
518
519 2010-04-03  Bruno Haible  <bruno@clisp.org>
520
521         fseeko: Fix C++ test error on mingw.
522         * lib/stdio.in.h (fseeko): Use modern idiom.
523         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
524         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
525         is missing and that it needs to be replaced.
526         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
528         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
529
530 2010-04-03  Bruno Haible  <bruno@clisp.org>
531
532         mkstemp: Fix C++ test error on mingw.
533         * lib/stdlib.in.h (mkstemp): Use modern idiom.
534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
535         function is missing and that it needs to be replaced.
536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
537         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
538
539 2010-04-03  Bruno Haible  <bruno@clisp.org>
540
541         stpncpy: Fix C++ test error on mingw.
542         * lib/string.in.h (stpncpy): Use modern idiom.
543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
544         function is missing and that it needs to be replaced.
545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
546         REPLACE_STPNCPY.
547         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
548
549 2010-04-03  Bruno Haible  <bruno@clisp.org>
550
551         sys_stat: Fix C++ test error on mingw.
552         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
553         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
554
555 2010-04-03  Bruno Haible  <bruno@clisp.org>
556
557         pty: Update doc.
558         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
559
560 2010-04-03  Bruno Haible  <bruno@clisp.org>
561
562         unistd: Fix C++ test error on mingw.
563         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
564
565 2010-04-03  Bruno Haible  <bruno@clisp.org>
566
567         Update doc regarding mingw.
568         * doc/glibc-functions/openpty.texi: Update regarding mingw.
569         * doc/glibc-functions/login_tty.texi: Likewise.
570         * doc/glibc-functions/forkpty.texi: Likewise.
571
572 2010-04-03  Bruno Haible  <bruno@clisp.org>
573
574         stdlib: Avoid compilation failure of c-strtold on mingw.
575         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
576
577 2010-04-03  Bruno Haible  <bruno@clisp.org>
578
579         locale: Make C++ tests work on Cygwin and mingw.
580         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
581         cannot provide the function.
582         Reported by Simon Josefsson.
583
584 2010-04-03  Bruno Haible  <bruno@clisp.org>
585
586         localename: Port to MacOS X 10.6.
587         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
588         memory layout of the locales in MacOS X 10.6 as well.
589         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
590
591 2010-04-02  Bruno Haible  <bruno@clisp.org>
592
593         gnulib-tool: Ensure that long-running tests are executed last.
594         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
595         running tests after the one for the other tests.
596
597 2010-04-02  Bruno Haible  <bruno@clisp.org>
598
599         gnulib-tool: Ensure the tests in the main directory are executed first.
600         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
601         start with the current directory.
602
603 2010-04-02  Bruno Haible  <bruno@clisp.org>
604
605         Tests for module 'havelib', moved here from GNU gettext.
606         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
607         modifications.
608         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
609         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
610         with modifications.
611         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
612         modifications.
613         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
614         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
615         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
616         with modifications.
617         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
618         with modifications.
619         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
620         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
621         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
622         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
623         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
624         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
625         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
626         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
627         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
628         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
629         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
630         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
631         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
632         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
633         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
634         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
635         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
636         with modifications.
637         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
638         with modifications.
639         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
640         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
641         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
642         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
643         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
644         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
645         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
646         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
647         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
648         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
649         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
650         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
651         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
652         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
653         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
654         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
655         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
656         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
657         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
658         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
659         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
660         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
661         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
662         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
663         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
664         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
665         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
666         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
667         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
668         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
669         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
670         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
671         * tests/havelib/rpathx/rpathx.c: New file, from
672         gettext/autoconf-lib-link.
673         * tests/havelib/rpathx/Makefile.am: New file, from
674         gettext/autoconf-lib-link.
675         * tests/havelib/rpathx/configure.ac: New file, from
676         gettext/autoconf-lib-link with modifications.
677         * tests/havelib/rpathy/rpathy.c: New file, from
678         gettext/autoconf-lib-link.
679         * tests/havelib/rpathy/Makefile.am: New file, from
680         gettext/autoconf-lib-link.
681         * tests/havelib/rpathy/configure.ac: New file, from
682         gettext/autoconf-lib-link with modifications.
683         * tests/havelib/rpathz/rpathz.c: New file, from
684         gettext/autoconf-lib-link.
685         * tests/havelib/rpathz/Makefile.am: New file, from
686         gettext/autoconf-lib-link.
687         * tests/havelib/rpathz/configure.ac: New file, from
688         gettext/autoconf-lib-link with modifications.
689         * tests/havelib/rpathlx/usex.c: New file, from
690         gettext/autoconf-lib-link.
691         * tests/havelib/rpathlx/Makefile.am: New file, from
692         gettext/autoconf-lib-link.
693         * tests/havelib/rpathlx/configure.ac: New file, from
694         gettext/autoconf-lib-link with modifications.
695         * tests/havelib/rpathly/usey.c: New file, from
696         gettext/autoconf-lib-link.
697         * tests/havelib/rpathly/Makefile.am: New file, from
698         gettext/autoconf-lib-link.
699         * tests/havelib/rpathly/configure.ac: New file, from
700         gettext/autoconf-lib-link with modifications.
701         * tests/havelib/rpathlz/usez.c: New file, from
702         gettext/autoconf-lib-link.
703         * tests/havelib/rpathlz/Makefile.am: New file, from
704         gettext/autoconf-lib-link.
705         * tests/havelib/rpathlz/configure.ac: New file, from
706         gettext/autoconf-lib-link with modifications.
707         * tests/havelib/rpathlyx/usey.c: New file, from
708         gettext/autoconf-lib-link.
709         * tests/havelib/rpathlyx/Makefile.am: New file, from
710         gettext/autoconf-lib-link.
711         * tests/havelib/rpathlyx/configure.ac: New file, from
712         gettext/autoconf-lib-link with modifications.
713         * tests/havelib/rpathlzyx/usez.c: New file, from
714         gettext/autoconf-lib-link.
715         * tests/havelib/rpathlzyx/Makefile.am: New file, from
716         gettext/autoconf-lib-link.
717         * tests/havelib/rpathlzyx/configure.ac: New file, from
718         gettext/autoconf-lib-link with modifications.
719         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
720         with modifications.
721
722 2010-04-02  Bruno Haible  <bruno@clisp.org>
723
724         gnulib-tool: Create distributed built sources also for the tests.
725         * gnulib-tool (func_create_testdir): Also generate distributed built
726         sources in the tests directory.
727
728 2010-04-02  Bruno Haible  <bruno@clisp.org>
729
730         gnulib-tool: Obey user's environment variables.
731         * gnulib-tool (func_create_testdir): When creating built sources,
732         respect the environment variables for autoconf, automake, etc. given by
733         the user.
734
735 2010-04-02  Bruno Haible  <bruno@clisp.org>
736
737         gnulib-tool: Provide the value of --m4-base to modules.
738         * gnulib-tool (func_import, func_create_testdir): Emit a definition
739         of gl_m4_base.
740
741 2010-04-02  Eric Blake  <eblake@redhat.com>
742
743         maint.mk: fix some fallout
744         * NEWS: Document the incompatible change, and its effect on cfg.mk.
745         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
746
747 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
748
749         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
750         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
751         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
752         (sc_cast_of_x_alloc_return_value): Likewise.
753         (sc_cast_of_alloca_return_value): Likewise.
754         (sc_space_tab): Likewise.
755         (sc_prohibit_atoi_atof): Likewise.
756         (sc_prohibit_magic_number_exit): Likewise.
757         (sc_error_exit_success): Likewise.
758         (sc_file_system): Likewise.
759         (sc_prohibit_have_config_h): Likewise.
760         (sc_require_config_h): Likewise.
761         (sc_prohibit_HAVE_MBRTOWC): Likewise.
762         (sc_obsolete_symbols): Likewise.
763         (sc_changelog): Likewise.
764         (sc_program_name): Likewise.
765         (sc_the_the): Likewise.
766         (sc_trailing_blank): Likewise.
767         (sc_two_space_separator_in_usage): Likewise.
768         (sc_useless_cpp_parens): Likewise.
769         (sc_GPL_version): Likewise.
770         (sc_GFDL_version): Likewise.
771         (sc_texinfo_acronym): Likewise.
772         (sc_prohibit_cvs_keyword): Likewise.
773         (sc_prohibit_stat_st_blocks): Likewise.
774         (sc_prohibit_S_IS_definition): Likewise.
775         (sc_redundant_const): Likewise.
776         (sc_makefile_TAB_only_indentation): Likewise.
777         (sc_m4_quote_check): Likewise.
778         (sc_makefile_path_separator_check): Likewise.
779         (sc_copyright_check): Likewise.
780         (sc_Wundef_boolean): Likewise.
781         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
782
783         maint.mk: match 0 or more whitespace-before-function-call '('
784         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
785         that have zero or two-and-more spaces between the function name
786         and the open parenthesis.
787         (sc_error_message_warn_fatal): Likewise.
788         (sc_error_message_uppercase): Likewise.
789         (sc_error_message_period): Likewise.
790
791 2010-03-31  Eric Blake  <eblake@redhat.com>
792
793         maint.mk: check for [ as well as test
794         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
795         Based on a libvirt report by Matthias Bolte.
796
797         gnumakefile: don't squelch _version output
798         * top/GNUmakefile (_version): Create one-shot dependency rather
799         than using $(shell) when version must be regenerated.
800         (_autoreconf): Run verbosely, by default.
801
802         sys_time: avoid compiler warnings
803         * lib/sys_time.in.h (includes): Ensure gcc pragma is
804         unconditional, fixing regression from 2010-03-29.
805         Reported by Simon Josefsson.
806
807 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
808
809         maint.mk: s/_header_without_use/_sc_header_without_use/
810         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
811         (sc_prohibit_assert_without_use): Use the new name.
812         (sc_prohibit_close_stream_without_use): Likewise.
813         (sc_prohibit_getopt_without_use): Likewise.
814         (sc_prohibit_quotearg_without_use): Likewise.
815         (sc_prohibit_quote_without_use): Likewise.
816         (sc_prohibit_long_options_without_use): Likewise.
817         (sc_prohibit_inttostr_without_use): Likewise.
818         (sc_prohibit_ignore_value_without_use): Likewise.
819         (sc_prohibit_error_without_use): Likewise.
820         (sc_prohibit_xalloc_without_use): Likewise.
821         (sc_prohibit_hash_without_use): Likewise.
822         (sc_prohibit_hash_pjw_without_use): Likewise.
823         (sc_prohibit_safe_read_without_use): Likewise.
824         (sc_prohibit_argmatch_without_use): Likewise.
825         (sc_prohibit_canonicalize_without_use): Likewise.
826         (sc_prohibit_root_dev_ino_without_use): Likewise.
827         (sc_prohibit_openat_without_use): Likewise.
828         (sc_prohibit_c_ctype_without_use): Likewise.
829         (sc_prohibit_signal_without_use): Likewise.
830         (sc_prohibit_intprops_without_use): Likewise.
831
832 2010-03-30  Eric Blake  <eblake@redhat.com>
833
834         maint: improve module indicators
835         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
836         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
837         columns, and avoid extra macro expansion.
838
839         fdopendir: work around FreeBSD bug
840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
842         * modules/dirent (Makefile.am): Substitute it.
843         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
844         declaration.
845         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
846         fix.
847         Reported by Christian Weisgerber <naddy@mips.inka.de>.
848
849 2010-03-29  Bruno Haible  <bruno@clisp.org>
850
851         Emit #pragma system_header after the inclusion guard, not before.
852         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
853         guard that spans the entire file, not before. This enables an
854         optimization in GCC's preprocessor.
855         * lib/ctype.in.h: Likewise.
856         * lib/dirent.in.h: Likewise.
857         * lib/errno.in.h: Likewise.
858         * lib/float.in.h: Likewise.
859         * lib/getopt.in.h: Likewise.
860         * lib/iconv.in.h: Likewise.
861         * lib/langinfo.in.h: Likewise.
862         * lib/locale.in.h: Likewise.
863         * lib/math.in.h: Likewise.
864         * lib/netdb.in.h: Likewise.
865         * lib/netinet_in.in.h: Likewise.
866         * lib/pty.in.h: Likewise.
867         * lib/sched.in.h: Likewise.
868         * lib/se-selinux.in.h: Likewise.
869         * lib/search.in.h: Likewise.
870         * lib/spawn.in.h: Likewise.
871         * lib/stdarg.in.h: Likewise.
872         * lib/stdint.in.h: Likewise.
873         * lib/string.in.h: Likewise.
874         * lib/strings.in.h: Likewise.
875         * lib/sys_file.in.h: Likewise.
876         * lib/sys_ioctl.in.h: Likewise.
877         * lib/sys_time.in.h: Likewise.
878         * lib/sys_times.in.h: Likewise.
879         * lib/sys_utsname.in.h: Likewise.
880         * lib/sys_wait.in.h: Likewise.
881         * lib/sysexits.in.h: Likewise.
882         * lib/wctype.in.h: Likewise.
883
884 2010-03-28  James Youngman  <jay@gnu.org>
885
886         save-cwd: don't leak a file descriptor when the caller execs.
887         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
888         saved file descriptor.
889         * modules/save-cwd (Depends-on): Depend on cloexec.
890
891 2010-03-29  Bruno Haible  <bruno@clisp.org>
892
893         Remove vestiges of fts-lgpl module.
894         * lib/fts_.h: Assume GNULIB_FTS is 1.
895         * lib/fts.c: Likewise.
896         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
897
898 2010-03-28  Bruno Haible  <bruno@clisp.org>
899
900         Fix definition of tests witness macro.
901         * gnulib-tool (func_import): Fix definition of witness macro.
902
903 2010-03-28  Bruno Haible  <bruno@clisp.org>
904
905         Fix ioctl's protoype on glibc systems.
906         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
907         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
908         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
909         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
910         signature. If not, arrange to replace the ioctl function.
911         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
912         REPLACE_IOCTL.
913         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
914         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
915         Reported by Ludovic Courtès <ludo@gnu.org>.
916
917 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
918
919         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
920         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
921         made it so grep -r --include=GLOB* ... did not work.
922
923 2010-03-26  Jim Meyering  <meyering@redhat.com>
924             Eric Blake  <eblake@redhat.com>
925
926         maint.mk: prohibit use of test's -o and -a operators
927         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
928
929 2010-03-28  Bruno Haible  <bruno@clisp.org>
930
931         Remove unused GNULIB_XYZ macro definitions.
932         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
933         invocation.
934
935 2010-03-28  Bruno Haible  <bruno@clisp.org>
936
937         Mark privileged tests modules.
938         * modules/idpriv-drop-tests (Status): New section.
939         * modules/idpriv-droptemp-tests (Status): New section.
940
941 2010-03-28  Bruno Haible  <bruno@clisp.org>
942
943         Split C++ tests into separate tests modules.
944         * modules/dirent-c++-tests: New file, extracted from
945         modules/dirent-tests.
946         * modules/dirent-tests: Depend on it.
947         * modules/fcntl-h-c++-tests: New file, extracted from
948         modules/fcntl-h-tests.
949         * modules/fcntl-h-tests: Depend on it.
950         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
951         * modules/glob-tests: Depend on it.
952         * modules/iconv-h-c++-tests: New file, extracted from
953         modules/iconv-h-tests.
954         * modules/iconv-h-tests: Depend on it.
955         * modules/langinfo-c++-tests: New file, extracted from
956         modules/langinfo-tests.
957         * modules/langinfo-tests: Depend on it.
958         * modules/locale-c++-tests: New file, extracted from
959         modules/locale-tests.
960         * modules/locale-tests: Depend on it.
961         * modules/math-c++-tests: New file, extracted from modules/math-tests.
962         * modules/math-tests: Depend on it.
963         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
964         * modules/pty-tests: Depend on it.
965         * modules/search-c++-tests: New file, extracted from
966         modules/search-tests.
967         * modules/search-tests: Depend on it.
968         * modules/signal-c++-tests: New file, extracted from
969         modules/signal-tests.
970         * modules/signal-tests: Depend on it.
971         * modules/spawn-c++-tests: New file, extracted from
972         modules/spawn-tests.
973         * modules/spawn-tests: Depend on it.
974         * modules/stdio-c++-tests: New file, extracted from
975         modules/stdio-tests.
976         * modules/stdio-tests: Depend on it.
977         * modules/stdlib-c++-tests: New file, extracted from
978         modules/stdlib-tests.
979         * modules/stdlib-tests: Depend on it.
980         * modules/string-c++-tests: New file, extracted from
981         modules/string-tests.
982         * modules/string-tests: Depend on it.
983         * modules/sys_ioctl-c++-tests: New file, extracted from
984         modules/sys_ioctl-tests.
985         * modules/sys_ioctl-tests: Depend on it.
986         * modules/sys_select-c++-tests: New file, extracted from
987         modules/sys_select-tests.
988         * modules/sys_select-tests: Depend on it.
989         * modules/sys_socket-c++-tests: New file, extracted from
990         modules/sys_socket-tests.
991         * modules/sys_socket-tests: Depend on it.
992         * modules/sys_stat-c++-tests: New file, extracted from
993         modules/sys_stat-tests.
994         * modules/sys_stat-tests: Depend on it.
995         * modules/sys_time-c++-tests: New file, extracted from
996         modules/sys_time-tests.
997         * modules/sys_time-tests: Depend on it.
998         * modules/time-c++-tests: New file, extracted from modules/time-tests.
999         * modules/time-tests: Depend on it.
1000         * modules/unistd-c++-tests: New file, extracted from
1001         modules/unistd-tests.
1002         * modules/unistd-tests: Depend on it.
1003         * modules/wchar-c++-tests: New file, extracted from
1004         modules/wchar-tests.
1005         * modules/wchar-tests: Depend on it.
1006         * modules/wctype-c++-tests: New file, extracted from
1007         modules/wctype-tests.
1008         * modules/wctype-tests: Depend on it.
1009         Reported by Simon Josefsson.
1010
1011 2010-03-28  Bruno Haible  <bruno@clisp.org>
1012
1013         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1014         * gnulib-tool (func_exists_module): New function, extracted from
1015         func_verify_module.
1016         (func_verify_module): Use it.
1017         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1018         'foo' only if 'foo' exists.
1019         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1020         module.
1021
1022 2010-03-28  Bruno Haible  <bruno@clisp.org>
1023
1024         gnulib-tool: Add support for special categories of tests.
1025         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1026         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1027         (func_usage): Document them.
1028         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1029         inc_unportable_tests, inc_all_tests): New variables.
1030         (func_acceptable): Consider these variables.
1031         (func_modules_transitive_closure): Make it work when the 'Status' field
1032         consists of multiple words.
1033         (func_import): Store and restore the values of inc_cxx_tests,
1034         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1035         inc_all_tests in gnulib-comp.m4.
1036         (func_create_testdir): Set inc_all_tests to true.
1037         * doc/gnulib.texi (Extra tests modules): New section.
1038         Suggested by Jim Meyering.
1039
1040 2010-03-28  Bruno Haible  <bruno@clisp.org>
1041
1042         ansi-c++-opt: Allow turning off the C++ build by default.
1043         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1044         gl_CXX_CHOICE_DEFAULT_NO is defined.
1045         Requested by Eric Blake.
1046
1047 2010-03-28  Bruno Haible  <bruno@clisp.org>
1048
1049         unistd: Avoid #define replacements in C++ mode.
1050         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1051         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1052         setsockopt, shutdown, select): In C++, attach a warning to the function
1053         if possible, rather than #defining the symbol to a dysfunctional alias.
1054         Reported by John W. Eaton <jwe@gnu.org>.
1055
1056 2010-03-28  Bruno Haible  <bruno@clisp.org>
1057
1058         Fix link errors on mingw.
1059         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1060         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1061         $(LIBSOCKET).
1062         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1063         $(LIBSOCKET).
1064
1065 2010-03-28  Bruno Haible  <bruno@clisp.org>
1066             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067
1068         lib-ignore: Determine different options for different compilers.
1069         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1070         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1071         Add comments.
1072         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1073         * NEWS: Mention the change.
1074
1075 2010-03-27  Bruno Haible  <bruno@clisp.org>
1076
1077         Remove unused GNULIB_XYZ macro definitions.
1078         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1079         * modules/fseek (configure.ac): Likewise.
1080         * modules/ioctl (configure.ac): Likewise.
1081         * modules/open (configure.ac): Likewise.
1082         * modules/stdlib-safer (configure.ac): Likewise.
1083
1084 2010-03-27  Bruno Haible  <bruno@clisp.org>
1085
1086         Add a remark about certain modules.
1087         * modules/malloc (Comment): New section.
1088         * modules/realloc (Comment): Likewise.
1089         * modules/sigpipe (Comment): Likewise.
1090
1091 2010-03-27  Bruno Haible  <bruno@clisp.org>
1092
1093         Resolve conflict between the two kinds of module indicators.
1094         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1095         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1096         * modules/canonicalize (configure.ac): Invoke
1097         gl_MODULE_INDICATOR_FOR_TESTS.
1098         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1099         GNULIB_XYZ.
1100         * tests/test-dirent-c++.cc: Likewise.
1101         * tests/test-dirent-safer.c: Likewise.
1102         * tests/test-dup2.c: Likewise.
1103         * tests/test-fchdir.c: Likewise.
1104         * tests/test-fcntl-h-c++.cc: Likewise.
1105         * tests/test-getopt.c: Likewise.
1106         * tests/test-getopt.h: Likewise.
1107         * tests/test-langinfo-c++.cc: Likewise.
1108         * tests/test-locale-c++.cc: Likewise.
1109         * tests/test-math-c++.cc: Likewise.
1110         * tests/test-pty-c++.cc: Likewise.
1111         * tests/test-search-c++.cc: Likewise.
1112         * tests/test-signal-c++.cc: Likewise.
1113         * tests/test-spawn-c++.cc: Likewise.
1114         * tests/test-stdio-c++.cc: Likewise.
1115         * tests/test-stdlib-c++.cc: Likewise.
1116         * tests/test-string-c++.cc: Likewise.
1117         * tests/test-sys_ioctl-c++.cc: Likewise.
1118         * tests/test-sys_select-c++.cc: Likewise.
1119         * tests/test-sys_socket-c++.cc: Likewise.
1120         * tests/test-sys_stat-c++.cc: Likewise.
1121         * tests/test-sys_time-c++.cc: Likewise.
1122         * tests/test-time-c++.cc: Likewise.
1123         * tests/test-unistd-c++.cc: Likewise.
1124         * tests/test-wchar-c++.cc: Likewise.
1125         * tests/uninorm/test-u8-nfc.c: Likewise.
1126         * tests/uninorm/test-u8-nfd.c: Likewise.
1127         * tests/uninorm/test-u8-nfkc.c: Likewise.
1128         * tests/uninorm/test-u8-nfkd.c: Likewise.
1129         * tests/uninorm/test-u16-nfc.c: Likewise.
1130         * tests/uninorm/test-u16-nfd.c: Likewise.
1131         * tests/uninorm/test-u16-nfkc.c: Likewise.
1132         * tests/uninorm/test-u16-nfkd.c: Likewise.
1133         * tests/uninorm/test-u32-nfc.c: Likewise.
1134         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1135         * tests/uninorm/test-u32-nfd.c: Likewise.
1136         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1137         * tests/uninorm/test-u32-nfkc.c: Likewise.
1138         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1139         * tests/uninorm/test-u32-nfkd.c: Likewise.
1140         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1141         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1142
1143 2010-03-27  Bruno Haible  <bruno@clisp.org>
1144
1145         Distinguish two kinds of module indicators.
1146         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1147         gl_MODULE_INDICATOR.
1148         (gl_MODULE_INDICATOR): New macro.
1149         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1150         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1151         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1152         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1153         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1154         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1155         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1156         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1157         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1158         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1159         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1160         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1161         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1162         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1163         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1164         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1165         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1166         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1167         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1168         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1169         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1170         * modules/cloexec (configure.ac): Likewise.
1171         * modules/getopt-gnu (configure.ac): Likewise.
1172         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1173         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1174         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1175         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1176
1177 2010-03-27  Bruno Haible  <bruno@clisp.org>
1178
1179         New module description field 'Comment'.
1180         * gnulib-tool: New option --extract-comment.
1181         (func_usage): Document it.
1182         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1183         (func_get_comment): New function.
1184         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1185
1186 2010-03-27  Bruno Haible  <bruno@clisp.org>
1187
1188         Addendum to 2010-02-07 commit.
1189         * gnulib-tool (func_usage): Document --extract-applicability option.
1190
1191 2010-03-27  Bruno Haible  <bruno@clisp.org>
1192
1193         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1194         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1195         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1196         rather than link errors.
1197
1198 2010-03-27  Bruno Haible  <bruno@clisp.org>
1199
1200         Avoid side effects from tests-related modules on the compilation of lib.
1201         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1202         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1203         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1204         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1205         macro.
1206         (func_import): Define a witness macro. Assign it a value that depends
1207         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1208         tests-related modules.
1209         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1210         Reported by Jim Meyering.
1211
1212 2010-03-27  Bruno Haible  <bruno@clisp.org>
1213
1214         Factorize common .m4 code.
1215         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1216         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1217         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1218         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1219         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1220         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1221         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1222         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1223         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1224         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1225         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1226         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1227         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1228         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1229         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1230         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1231         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1232         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1234         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1235         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1236         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1237         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1238         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1239         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1240         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1241         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1243         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1244         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1245         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1246         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1247
1248 2010-03-27  Bruno Haible  <bruno@clisp.org>
1249
1250         Fix a compilation error on Cygwin with g++ >= 4.3.
1251         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1252         if it is undefined or if we alias it to chmod.
1253         (lstat): Don't warn about the use of this function if it is undefined
1254         or if we alias it to stat.
1255         Reported by Simon Josefsson.
1256
1257 2010-03-27  Bruno Haible  <bruno@clisp.org>
1258
1259         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1260         * modules/getlogin (configure.ac): Update.
1261
1262         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1263         * modules/getlogin_r (configure.ac): Update.
1264
1265         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1267         * modules/inet_ntop (configure.ac): Update.
1268
1269         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1270         * modules/inet_pton (configure.ac): Update.
1271
1272         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1273         * modules/mbslen (configure.ac): Update.
1274
1275         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1276         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1277         * modules/forkpty (configure.ac): Update.
1278         * modules/openpty (configure.ac): Update.
1279
1280 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1281
1282         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1283         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1284
1285 2010-03-25  Eric Blake  <eblake@redhat.com>
1286
1287         maint: use pragma consistently across replacement headers
1288         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1289         * lib/dirent.in.h (system_header): Likewise.
1290         * lib/errno.in.h (system_header): Likewise.
1291         * lib/float.in.h (system_header): Likewise.
1292         * lib/getopt.in.h (system_header): Likewise.
1293         * lib/iconv.in.h (system_header): Likewise.
1294         * lib/inttypes.in.h (system_header): Likewise.
1295         * lib/langinfo.in.h (system_header): Likewise.
1296         * lib/locale.in.h (system_header): Likewise.
1297         * lib/math.in.h (system_header): Likewise.
1298         * lib/netdb.in.h (system_header): Likewise.
1299         * lib/netinet_in.in.h (system_header): Likewise.
1300         * lib/pty.in.h (system_header): Likewise.
1301         * lib/sched.in.h (system_header): Likewise.
1302         * lib/se-selinux.in.h (system_header): Likewise.
1303         * lib/search.in.h (system_header): Likewise.
1304         * lib/spawn.in.h (system_header): Likewise.
1305         * lib/stdarg.in.h (system_header): Likewise.
1306         * lib/stdint.in.h (system_header): Likewise.
1307         * lib/string.in.h (system_header): Likewise.
1308         * lib/strings.in.h (system_header): Likewise.
1309         * lib/sys_file.in.h (system_header): Likewise.
1310         * lib/sys_ioctl.in.h (system_header): Likewise.
1311         * lib/sys_socket.in.h (system_header): Likewise.
1312         * lib/sys_times.in.h (system_header): Likewise.
1313         * lib/sys_utsname.in.h (system_header): Likewise.
1314         * lib/sys_wait.in.h (system_header): Likewise.
1315         * lib/sysexits.in.h (system_header): Likewise.
1316         * lib/unistd.in.h (system_header): Likewise.
1317         * lib/wctype.in.h (system_header): Likewise.
1318
1319         arpa/inet: fix mingw compilation warning
1320         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1321         Reported by Matthew Bolte.
1322
1323 2010-03-25  Bruno Haible  <bruno@clisp.org>
1324
1325         Avoid collision between gnulib wrapper and libintl wrapper.
1326         * lib/printf.c (printf): Don't define if a printf wrapper is already
1327         defined in intl/printf.c.
1328         Reported by Michel Boaventura <michel@michelboaventura.com>.
1329
1330 2010-03-25  Bruno Haible  <bruno@clisp.org>
1331
1332         Use ANSI C.
1333         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1334
1335 2010-03-25  Bruno Haible  <bruno@clisp.org>
1336
1337         Minor formatting changes.
1338         * lib/acosl.c: Insert space before function argument list.
1339         * lib/argz.c: Likewise.
1340         * lib/asinl.c: Likewise.
1341         * lib/expl.c: Likewise.
1342         * lib/gen-uni-tables.c: Likewise.
1343         * lib/gettext.h: Likewise.
1344         * lib/glthread/lock.h: Likewise.
1345         * lib/tanl.c: Likewise.
1346         * lib/uniname/uniname.c: Likewise.
1347         * tests/test-idpriv-drop.c: Likewise.
1348         * tests/test-idpriv-droptemp.c: Likewise.
1349         * tests/test-lock.c: Likewise.
1350         * tests/test-tls.c: Likewise.
1351         * lib/argp-help.c: Insert space before function-like macro argument
1352         list.
1353         * lib/memcmp.c: Likewise.
1354         * tests/test-base64.c: Likewise.
1355         * lib/localename.c: Insert space before sizeof's argument list.
1356         * lib/safe-alloc.h: Likewise.
1357         * lib/file-set.h: Insert space before macro argument list.
1358         * tests/test-argp.c: Likewise.
1359         * lib/argp-namefrob.h: Insert space before function parameter list.
1360         * lib/getaddrinfo.c: Likewise.
1361         * lib/netdb.in.h: Likewise.
1362         * lib/parse-duration.h: Likewise.
1363         * lib/parse-duration.c: Likewise.
1364         * lib/poll.c: Likewise.
1365         * lib/select.c: Likewise.
1366         * lib/trim.h: Likewise.
1367         * tests/test-usleep.c: Likewise.
1368         * lib/ldexpl.c: Insert space before function parameter list and before
1369         function argument list.
1370         * lib/logl.c: Likewise.
1371         * lib/sqrtl.c: Likewise.
1372         * lib/trim.c: Likewise.
1373         * lib/cosl.c: Use GNU style indentation. Insert space before function
1374         argument list.
1375         * lib/sinl.c: Likewise.
1376         * lib/tsearch.c: Insert space after 'for'.
1377         Reported by Jim Meyering.
1378
1379 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1380
1381         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1382         config header before grepping, as it's not present before
1383         autoreconf/configure are run.  Reported by Simon Josefsson.
1384
1385 2010-03-23  Bruno Haible  <bruno@clisp.org>
1386
1387         pt_chown: Make it work with automake < 1.11.
1388         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1389         Reported by Simon Josefsson.
1390
1391 2010-03-23  Bruno Haible  <bruno@clisp.org>
1392
1393         pt_chown: Don't depend on GPLed modules.
1394         * lib/pt_chown.c: Don't include idpriv.h.
1395         (main): Don't drop privileges.
1396         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1397         Reported by Simon Josefsson.
1398
1399 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1400
1401         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1402         suggestions from karl@freefriends.org (Karl Berry).
1403
1404 2010-03-22  Eric Blake  <eblake@redhat.com>
1405
1406         gethostname: further tweaks
1407         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1408         are overriding gethostname.
1409         Suggested by Bruno Haible.
1410
1411 2010-03-21  Bruno Haible  <bruno@clisp.org>
1412
1413         Fix comments.
1414         * lib/forkpty.c (rpl_forkpty): Fix comment.
1415         * lib/openpty.c (rpl_openpty): Likewise.
1416         Reported by Eric Blake.
1417
1418 2010-03-22  Eric Blake  <eblake@redhat.com>
1419
1420         gethostname: fix build on mingw
1421         * lib/unistd.in.h (includes): Work around fact that mingw
1422         <winsock2.h> re-includes <unistd.h>, by avoiding any
1423         redeclarations if we are being included by <winsock2.h>.
1424         Reported by Matthias Bolte.
1425
1426 2010-03-21  Bruno Haible  <bruno@clisp.org>
1427
1428         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1429         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1430         modifications.
1431         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1432         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1433         provide the replacement.
1434         * modules/forkpty (Depends-on): Add openpty, login_tty.
1435         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1436         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1437         * doc/glibc-functions/forkpty.texi: More supported platforms.
1438         * config/srclist.txt: Add forkpty.c (commented).
1439
1440 2010-03-21  Bruno Haible  <bruno@clisp.org>
1441
1442         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1443         (Makefile.am): Verify that PTY_LIB is defined.
1444
1445         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1446
1447 2010-03-21  Bruno Haible  <bruno@clisp.org>
1448
1449         Tests for module 'login_tty'.
1450         * modules/login_tty-tests: New file.
1451         * tests/test-login_tty.c: New file.
1452
1453         New module 'login_tty'.
1454         * lib/login_tty.c: New file.
1455         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1456         * modules/login_tty: New file.
1457         * doc/glibc-functions/login_tty.texi: Mention the new module.
1458
1459 2010-03-21  Bruno Haible  <bruno@clisp.org>
1460
1461         login_tty: Documentation.
1462         * doc/glibc-functions/login_tty.texi: New file.
1463         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1464
1465 2010-03-21  Bruno Haible  <bruno@clisp.org>
1466
1467         pty: Consistent macro naming.
1468         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1469         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1470         * modules/pty (configure.ac): Update.
1471
1472 2010-03-21  Bruno Haible  <bruno@clisp.org>
1473
1474         Tests for openpty: Make stricter.
1475         * tests/test-openpty.c (main): Add test of canonical processing and
1476         erase.
1477         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1478
1479         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1480         * lib/openpty.c (openpty): New replacement function.
1481         * lib/pty.in.h: Include <termios.h>.
1482         (openpty): Update declaration. Add comments.
1483         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1484         is not declared, arrange to provide the replacement. Check for _getpty
1485         and posix_openpt.
1486         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1487         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1488         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1489         * modules/pty-tests (test_pty_c___LDADD): New variable.
1490         * doc/glibc-functions/openpty.texi: More supported platforms.
1491
1492 2010-03-21  Bruno Haible  <bruno@clisp.org>
1493
1494         setenv: Tweaks.
1495         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1496         the test program.
1497         * doc/posix-functions/setenv.texi: Update platforms list.
1498
1499 2010-03-21  Bruno Haible  <bruno@clisp.org>
1500
1501         New module 'unlockpt'.
1502         * lib/unlockpt.c: New file, from glibc with modifications.
1503         * m4/unlockpt.m4: New file.
1504         * modules/unlockpt: New file.
1505         * lib/stdlib.in.h (unlockpt): New declaration.
1506         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1507         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1508         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1509         HAVE_UNLOCKPT.
1510         * doc/posix-functions/unlockpt.texi: Mention the new module.
1511         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1512         * config/srclist.txt: Add unlockpt.c (commented).
1513
1514 2010-03-21  Jim Meyering  <meyering@redhat.com>
1515
1516         maint.mk: prohibit inclusion of "intprops.h" without use
1517         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1518
1519 2010-03-21  Bruno Haible  <bruno@clisp.org>
1520
1521         New module 'grantpt'.
1522         * lib/grantpt.c: New file, from glibc with modifications.
1523         * m4/grantpt.m4: New file.
1524         * modules/grantpt: New file.
1525         * lib/stdlib.in.h (grantpt): New declaration.
1526         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1527         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1528         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1529         HAVE_GRANTPT.
1530         * doc/posix-functions/grantpt.texi: Mention the new module.
1531         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1532         * config/srclist.txt: Add grantpt.c (commented).
1533
1534 2010-03-21  Bruno Haible  <bruno@clisp.org>
1535
1536         New module 'pt_chown'.
1537         * lib/pt_chown.c: New file, from glibc with modifications.
1538         * lib/pty-private.h: New file, from glibc with modifications.
1539         * modules/pt_chown: New file.
1540         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1541
1542 2010-03-21  Bruno Haible  <bruno@clisp.org>
1543
1544         Tests for module 'ptsname'.
1545         * modules/ptsname-tests: New file.
1546         * tests/test-ptsname.c: New file.
1547
1548         New module 'ptsname'.
1549         * lib/ptsname.c: New file, from glibc with modifications.
1550         * m4/ptsname.m4: New file.
1551         * modules/ptsname: New file.
1552         * lib/stdlib.in.h (ptsname): New declaration.
1553         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1554         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1555         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1556         HAVE_PTSNAME.
1557         * doc/posix-functions/ptsname.texi: Mention the new module.
1558         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1559         * config/srclist.txt: Add ptsname.c (commented).
1560
1561 2010-03-21  Bruno Haible  <bruno@clisp.org>
1562
1563         Tests for module 'ttyname_r'.
1564         * modules/ttyname_r-tests: New file.
1565         * tests/test-ttyname_r.c: New file.
1566
1567         New module 'ttyname_r'.
1568         * lib/ttyname_r.c: New file.
1569         * m4/ttyname_r.m4: New file.
1570         * modules/ttyname_r: New file.
1571         * lib/unistd.in.h (ttyname_r): New declaration.
1572         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1573         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1574         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1575         HAVE_TTYNAME_R.
1576         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1577         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1578
1579 2010-03-20  Bruno Haible  <bruno@clisp.org>
1580
1581         signal: Undefine macro definitions in C++ mode.
1582         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1583         sigfillset): Undefine macro definitions from the system header in C++
1584         mode.
1585         Reported by John W. Eaton <jwe@gnu.org>.
1586
1587 2010-03-20  Bruno Haible  <bruno@clisp.org>
1588
1589         Ensure no #include statements inside extern "C" { ... }.
1590         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1591         contain #include statements.
1592         * lib/time.in.h: Likewise.
1593
1594 2010-03-20  Bruno Haible  <bruno@clisp.org>
1595
1596         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1597         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1598         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1599         Reported by John W. Eaton <jwe@gnu.org>.
1600
1601 2010-03-20  Bruno Haible  <bruno@clisp.org>
1602
1603         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1604         Reported by Jim Meyering.
1605
1606 2010-03-20  Bruno Haible  <bruno@clisp.org>
1607
1608         pipe: Set errno upon failure.
1609         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1610         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1611         errno value in error message.
1612
1613 2010-03-20  Bruno Haible  <bruno@clisp.org>
1614             Jim Meyering  <meyering@redhat.com>
1615
1616         lchown: Avoid "unused variable" warning.
1617         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1618
1619 2010-03-20  Bruno Haible  <bruno@clisp.org>
1620
1621         Work around unlink() bug on MacOS X 10.5.6.
1622         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1623         attempting to unlink a parent directory.
1624         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1625         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1626         activate for the replacement function.
1627         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1628
1629 2010-03-20  Bruno Haible  <bruno@clisp.org>
1630
1631         Fix link errors on Solaris 8.
1632         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1633         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1634
1635 2010-03-19  Jim Meyering  <meyering@redhat.com>
1636
1637         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1638         The _LIBC implementation of build_range_exp correctly honors the
1639         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1640         However, the non-_LIBC implementation would ignore that syntax-bit
1641         flag and return REG_ERANGE unconditionally.
1642         This change makes it honor that flag.
1643         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1644         Make two pointer parameters "const".
1645         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1646         (parse_bracket_exp): Update caller.
1647
1648         regex.m4: correct the reversed range endpoint ([b-a]) test
1649         * m4/regex.m4: When requiring that [b-a] evoke failure,
1650         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1651         test pass once again for x86-based systems.
1652
1653 2010-03-19  Bruno Haible  <bruno@clisp.org>
1654
1655         scandir: Fix link error on Solaris 8.
1656         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1657         macros.
1658
1659 2010-03-19  Bruno Haible  <bruno@clisp.org>
1660
1661         getusershell: Fix documentation.
1662         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1663         module.
1664         * doc/glibc-functions/setusershell.texi: Likewise.
1665
1666         getusershell: Provide declaration, missing on Solaris 9.
1667         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1668         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1669         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1670         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1672         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1673         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1674         HAVE_GETUSERSHELL.
1675         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1676
1677 2010-03-19  Bruno Haible  <bruno@clisp.org>
1678
1679         wctype: Provide iswblank function.
1680         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1681         exists and is fine.
1682         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1683         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1684         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1685         * doc/posix-functions/iswblank.texi: Update.
1686
1687 2010-03-19  Bruno Haible  <bruno@clisp.org>
1688
1689         Tests of module 'pty' in C++ mode.
1690         * modules/pty-tests: New file.
1691         * tests/test-pty-c++.cc: New file.
1692         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1693
1694 2010-03-19  Eric Blake  <eblake@redhat.com>
1695
1696         logb: fix documentation
1697         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1698         1.5 declaration bug.
1699
1700         forkpty, openpty: prefer glibc's const-safe prototype
1701         * lib/forkpty.c (rpl_forkpty): New file.
1702         * lib/openpty.c (rpl_openpty): Likewise.
1703         * modules/forkpty (Files): Distribute it.
1704         * modules/openpty (Files): Likewise.
1705         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1706         check...
1707         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1708         replacement for for non-const BSD signature.
1709         * modules/pty (Makefile.am): Substitute witnesses.
1710         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1711         * tests/test-forkpty.c: Update signature check.
1712         * tests/test-openpty.c: Likewise.
1713         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1714         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1715
1716         forkpty, openpty: split functions into new modules
1717         * modules/pty (Makefile.am): Substitute new witnesses.
1718         (Libraries): Move library detection...
1719         * modules/forkpty: ...into new module.
1720         * modules/openpty: Another new module.
1721         * modules/pty-tests: Rename and split...
1722         * modules/forkpty-tests: ...to this...
1723         * modules/openpty-tests: ...and this.
1724         * tests/test-pty.c: Rename and split...
1725         * tests/test-forkpty.c: ...to this...
1726         * tests/test-openpty.c: ...and this.
1727         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1728         (gl_PTY): Split library searching...
1729         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1730         (gl_FORKPTY, gl_OPENPTY): New macros.
1731         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1732         * NEWS: Mention the split.
1733         * MODULES.html.sh (Misc): Document the modules.
1734         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1735         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1736
1737         pty: improve replacement header
1738         * lib/pty.in.h: New file.
1739         * modules/pty (Files): Ship it.
1740         (Makefile.am): Always build replacement.
1741         * m4/pty.m4: Rename...
1742         * m4/pty_h.m4: ...to this.
1743         (gl_PTY): Modernize setting of witness macros; update check of
1744         forkpty to take proper advantage of cache.
1745         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1746
1747         getopt: avoid compiler warning
1748         * lib/getopt.c (attribute_hidden): Remove unused macro.
1749
1750 2010-03-18  Bruno Haible  <bruno@clisp.org>
1751
1752         Fix link errors on Solaris 8.
1753         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1754         * modules/search-tests (test_search_c___LDADD): Likewise.
1755         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1756         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1757         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1758         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1759         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1760         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1761         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1762
1763 2010-03-18  Bruno Haible  <bruno@clisp.org>
1764
1765         Fix bug introduced on 2010-03-14.
1766         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1767         (gl_SPAWN_H): Require it.
1768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1769         Reported by Simon Josefsson.
1770
1771 2010-03-18  Bruno Haible  <bruno@clisp.org>
1772
1773         Fix typo introduced on 2009-12-31.
1774         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1775         posix_spawn_file_actions_adddup2.
1776
1777 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1778         and Eric Blake  <eblake@redhat.com>
1779
1780         test-vc-list-files-git: make more robust
1781         * tests/test-vc-list-files-git.sh: Unset problematic environment
1782         variables.  Chain commands together.
1783
1784 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1785
1786         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1787         `AC_CHECK_DECL' invocation.
1788
1789 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1790
1791         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1792         appears before executable statements. Suggested by Petr Sumbera
1793         <Petr.Sumbera@Sun.COM>.
1794
1795 2010-03-14  Bruno Haible  <bruno@clisp.org>
1796
1797         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1798         portability problems. Instead use a simpler test.
1799         (main): Check that invalid arguments are rejected only on Linux.
1800
1801 2010-03-14  Bruno Haible  <bruno@clisp.org>
1802
1803         Fix bug introduced on 2009-12-31.
1804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1805         gl_PREREQ_SYS_H_WINSOCK2 always.
1806         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1807         SYS_SOCKET_H variable.
1808         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1809         Update comments.
1810         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1811         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1812         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1813         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1814         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1815
1816 2010-03-14  Bruno Haible  <bruno@clisp.org>
1817
1818         Fix values returned by sinl, cosl.
1819         * lib/trigl.h: Add specification comments.
1820         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1821         that combines the values from the precomputed table with the values of
1822         the Chebyshev polynomials.
1823
1824 2010-03-14  Bruno Haible  <bruno@clisp.org>
1825
1826         Fix compilation error when modules 'posix_spawn[p]' are not used.
1827         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1829
1830 2010-03-14  Bruno Haible  <bruno@clisp.org>
1831
1832         Fix compilation error on mingw when module 'time_r' is not used.
1833         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1834         is 1.
1835         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1836         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1837         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1838         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1839
1840 2010-03-14  Bruno Haible  <bruno@clisp.org>
1841
1842         Fix compilation error with Sun C.
1843         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1844         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1845         instead of GCC specific ULONG_LONG_MAX.
1846         * lib/xstrtoll.c: Likewise.
1847         * lib/xstrtoull.c: Likewise.
1848
1849 2010-03-13  Bruno Haible  <bruno@clisp.org>
1850
1851         Allow the user to disable C++ code and tests.
1852         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1853         (gl_PROG_ANSI_CXX): Require it.
1854
1855 2010-03-13  Bruno Haible  <bruno@clisp.org>
1856
1857         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1858         cases.
1859
1860 2010-03-13  Bruno Haible  <bruno@clisp.org>
1861
1862         Test that gnulib does not break the standard C++ headers.
1863         * tests/test-locale-c++2.cc: New file.
1864         * modules/locale-tests (Files): Add it.
1865         (Makefile.am): Compile it for test-locale-c++.
1866         * tests/test-math-c++2.cc: New file.
1867         * modules/math-tests (Files): Add it.
1868         (Makefile.am): Compile it for test-math-c++.
1869         * tests/test-signal-c++2.cc: New file.
1870         * modules/signal-tests (Files): Add it.
1871         (Makefile.am): Compile it for test-signal-c++.
1872         * tests/test-stdio-c++2.cc: New file.
1873         * modules/stdio-tests (Files): Add it.
1874         (Makefile.am): Compile it for test-stdio-c++.
1875         * tests/test-stdlib-c++2.cc: New file.
1876         * modules/stdlib-tests (Files): Add it.
1877         (Makefile.am): Compile it for test-stdlib-c++.
1878         * tests/test-string-c++2.cc: New file.
1879         * modules/string-tests (Files): Add it.
1880         (Makefile.am): Compile it for test-string-c++.
1881         * tests/test-time-c++2.cc: New file.
1882         * modules/time-tests (Files): Add it.
1883         (Makefile.am): Compile it for test-time-c++.
1884         Reported by John W. Eaton <jwe@gnu.org>.
1885
1886 2010-03-13  Bruno Haible  <bruno@clisp.org>
1887
1888         * gnulib-tool (func_usage): Clarify which options are available for
1889         --create-testdir and --create-megatestdir.
1890
1891 2010-03-13  Bruno Haible  <bruno@clisp.org>
1892
1893         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1894         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1895         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1896         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1897         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1898         when appropriate.
1899         Reported by Jim Meyering.
1900
1901 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1902
1903         * gnulib-tool (func_import): Explain origin of code.
1904
1905 2010-03-12  Bruno Haible  <bruno@clisp.org>
1906
1907         Fix problem with automake's definition of CXXLINK.
1908         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1909         Reported by Simon Josefsson and Ludovic Courtès.
1910
1911 2010-03-12  Bruno Haible  <bruno@clisp.org>
1912
1913         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1914         stable releases.
1915
1916 2010-03-11  Bruno Haible  <bruno@clisp.org>
1917
1918         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1919         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1920         whether the system provides one variant or multiple variants of the
1921         function.
1922         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1923         C++ compilers.
1924         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1925         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1926         Reported by Jim Meyering.
1927
1928 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1929
1930         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1931
1932 2010-03-08  Bruno Haible  <bruno@clisp.org>
1933
1934         gnulib-tool: Add support for --libtool in --create-testdir.
1935         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1936         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1937
1938 2010-03-08  Eric Blake  <eblake@redhat.com>
1939
1940         gnulib-tool.texi: mention possibility of git submodule
1941         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1942         submodules.
1943         * doc/.gitignore: Ignore another generated file.
1944
1945 2010-03-08  Karl Berry  <karl@gnu.org>
1946
1947         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1948         of committing gnulib files while skipping others.
1949
1950 2010-03-07  Bruno Haible  <bruno@clisp.org>
1951
1952         Tests of module 'wctype' in C++ mode.
1953         * tests/test-wctype-c++.cc: New file.
1954         * modules/wctype-tests (Files): Add it and tests/signature.h.
1955         (Depends-on): Add ansi-c++-opt.
1956         (Makefile.am): Arrange to compile and run test-wctype-c++.
1957
1958         Tests of module 'wchar' in C++ mode.
1959         * tests/test-wchar-c++.cc: New file.
1960         * modules/wchar-tests (Files): Add it and tests/signature.h.
1961         (Depends-on): Add ansi-c++-opt.
1962         (Makefile.am): Arrange to compile and run test-wchar-c++.
1963         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1964         gl_MODULE_INDICATOR.
1965
1966         Tests of module 'unistd' in C++ mode.
1967         * tests/test-unistd-c++.cc: New file.
1968         * modules/unistd-tests (Files): Add it and tests/signature.h.
1969         (Depends-on): Add ansi-c++-opt.
1970         (Makefile.am): Arrange to compile and run test-unistd-c++.
1971         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1972         gl_MODULE_INDICATOR.
1973
1974         Tests of module 'time' in C++ mode.
1975         * tests/test-time-c++.cc: New file.
1976         * modules/time-tests (Files): Add it and tests/signature.h.
1977         (Depends-on): Add ansi-c++-opt.
1978         (Makefile.am): Arrange to compile and run test-time-c++.
1979         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1980
1981         Tests of module 'sys_time' in C++ mode.
1982         * tests/test-sys_time-c++.cc: New file.
1983         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1984         (Depends-on): Add ansi-c++-opt.
1985         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1986         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1987         gl_MODULE_INDICATOR.
1988
1989         Tests of module 'sys_stat' in C++ mode.
1990         * tests/test-sys_stat-c++.cc: New file.
1991         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1992         (Depends-on): Add ansi-c++-opt.
1993         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1994         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1995         gl_MODULE_INDICATOR.
1996
1997         Tests of module 'sys_socket' in C++ mode.
1998         * tests/test-sys_socket-c++.cc: New file.
1999         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2000         (Depends-on): Add ansi-c++-opt.
2001         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2002         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2003         gl_MODULE_INDICATOR.
2004
2005         Tests of module 'sys_select' in C++ mode.
2006         * tests/test-sys_select-c++.cc: New file.
2007         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2008         (Depends-on): Add ansi-c++-opt.
2009         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2010         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2011         gl_MODULE_INDICATOR.
2012
2013         Tests of module 'sys_ioctl' in C++ mode.
2014         * tests/test-sys_ioctl-c++.cc: New file.
2015         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2016         (Depends-on): Add ansi-c++-opt.
2017         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2018         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2019         gl_MODULE_INDICATOR.
2020
2021         Tests of module 'string' in C++ mode.
2022         * tests/test-string-c++.cc: New file.
2023         * modules/string-tests (Files): Add it and tests/signature.h.
2024         (Depends-on): Add ansi-c++-opt.
2025         (Makefile.am): Arrange to compile and run test-string-c++.
2026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2027         gl_MODULE_INDICATOR.
2028
2029         Tests of module 'stdlib' in C++ mode.
2030         * tests/test-stdlib-c++.cc: New file.
2031         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2032         (Depends-on): Add ansi-c++-opt.
2033         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2034         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2035         gl_MODULE_INDICATOR.
2036
2037         Tests of module 'stdio' in C++ mode.
2038         * tests/test-stdio-c++.cc: New file.
2039         * modules/stdio-tests (Files): Add it and tests/signature.h.
2040         (Depends-on): Add ansi-c++-opt.
2041         (Makefile.am): Arrange to compile and run test-stdio-c++.
2042         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2043         gl_MODULE_INDICATOR.
2044
2045         Tests of module 'spawn' in C++ mode.
2046         * tests/test-spawn-c++.cc: New file.
2047         * modules/spawn-tests (Files): Add it and tests/signature.h.
2048         (Depends-on): Add ansi-c++-opt.
2049         (Makefile.am): Arrange to compile and run test-spawn-c++.
2050         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2051         gl_MODULE_INDICATOR.
2052
2053         Tests of module 'signal' in C++ mode.
2054         * tests/test-signal-c++.cc: New file.
2055         * modules/signal-tests (Files): Add it and tests/signature.h.
2056         (Depends-on): Add ansi-c++-opt.
2057         (Makefile.am): Arrange to compile and run test-signal-c++.
2058         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2059         gl_MODULE_INDICATOR.
2060
2061         Tests of module 'search' in C++ mode.
2062         * tests/test-search-c++.cc: New file.
2063         * modules/search-tests (Files): Add it and tests/signature.h.
2064         (Depends-on): Add ansi-c++-opt.
2065         (Makefile.am): Arrange to compile and run test-search-c++.
2066         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2067         gl_MODULE_INDICATOR.
2068
2069         Tests of module 'math' in C++ mode.
2070         * tests/test-math-c++.cc: New file.
2071         * modules/math-tests (Files): Add it and tests/signature.h.
2072         (Depends-on): Add ansi-c++-opt.
2073         (Makefile.am): Arrange to compile and run test-math-c++.
2074         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2075
2076         Tests of module 'locale' in C++ mode.
2077         * tests/test-locale-c++.cc: New file.
2078         * modules/locale-tests (Files): Add it and tests/signature.h.
2079         (Depends-on): Add ansi-c++-opt.
2080         (Makefile.am): Arrange to compile and run test-locale-c++.
2081         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2082         gl_MODULE_INDICATOR.
2083
2084         Tests of module 'langinfo' in C++ mode.
2085         * tests/test-langinfo-c++.cc: New file.
2086         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2087         (Depends-on): Add ansi-c++-opt.
2088         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2089         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2090         gl_MODULE_INDICATOR.
2091
2092         Tests of module 'iconv-h' in C++ mode.
2093         * tests/test-iconv-h-c++.cc: New file.
2094         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2095         (Depends-on): Add ansi-c++-opt.
2096         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2097
2098         Tests of module 'glob' in C++ mode.
2099         * tests/test-glob-c++.cc: New file.
2100         * modules/glob-tests (Files): Add it.
2101         (Depends-on): Add ansi-c++-opt.
2102         (Makefile.am): Arrange to compile and run test-glob-c++.
2103
2104         Tests of module 'fcntl-h' in C++ mode.
2105         * tests/test-fcntl-h-c++.cc: New file.
2106         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2107         (Depends-on): Add ansi-c++-opt.
2108         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2109         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2110         gl_MODULE_INDICATOR.
2111
2112         Tests of module 'dirent' in C++ mode.
2113         * tests/test-dirent-c++.cc: New file.
2114         * modules/dirent-tests (Files): Add it and tests/signature.h.
2115         (Depends-on): Add ansi-c++-opt.
2116         (Makefile.am): Arrange to compile and run test-dirent-c++.
2117         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2118         gl_MODULE_INDICATOR.
2119
2120         New module 'ansi-c++-opt'.
2121         * modules/ansi-c++-opt: New file.
2122         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2123
2124         Document C++ namespace mode.
2125         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2126
2127         wctype: Avoid #define replacements in C++ mode.
2128         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2129         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2130         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2131         In C++, define a namespaced alias symbol.
2132         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2133         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2134         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2135         rule.
2136
2137         wchar: Avoid #define replacements in C++ mode.
2138         * lib/wchar.in.h: Include c++defs.h.
2139         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2140         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2141         symbol.
2142         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2143         * modules/wchar (Depends-on): Add c++defs.
2144         (Makefile.am): Update wchar.h rule.
2145
2146         unistd: Avoid #define replacements in C++ mode.
2147         * lib/unistd.in.h: Include c++defs.h.
2148         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2149         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2150         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2151         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2152         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2153         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2154         symbol.
2155         (environ): Update.
2156         * modules/unistd (Depends-on): Add c++defs.
2157         (Makefile.am): Update unistd.h rule.
2158
2159         time: Avoid #define replacements in C++ mode.
2160         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2161         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2162         define a namespaced alias symbol.
2163         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2164         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2165         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2166         * modules/time (Depends-on): Add c++defs, warn-on-use.
2167         (Makefile.am): Update time.h rule.
2168         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2169         * modules/nanosleep (configure.ac): Likewise.
2170         * modules/strptime (configure.ac): Likewise.
2171         * modules/timegm (configure.ac): Likewise.
2172
2173         sys_time: Avoid #define replacements in C++ mode.
2174         * lib/sys_time.in.h: Include c++defs.h.
2175         (gettimeofday): In C++, define a namespaced alias symbol.
2176         * modules/sys_time (Depends-on): Add c++defs.
2177         (Makefile.am): Update sys/time.h rule.
2178
2179         sys_stat: Avoid #define replacements in C++ mode.
2180         * lib/sys_stat.in.h: Include c++defs.h.
2181         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2182         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2183         namespaced alias symbol.
2184         In C++, define a namespaced alias symbol.
2185         * modules/sys_stat (Depends-on): Add c++defs.
2186         (Makefile.am): Update sys/stat.h rule.
2187
2188         sys_socket: Avoid #define replacements in C++ mode.
2189         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2190         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2191         definitions also when the system has a <sys/socket.h>.
2192         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2193         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2194         In C++, define a namespaced alias symbol.
2195         * modules/sys_socket (Depends-on): Add c++defs.
2196         (Makefile.am): Update sys/socket.h rule.
2197
2198         sys_select: Avoid #define replacements in C++ mode.
2199         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2200         definitions also when the system has a <sys/select.h>.
2201         (select): In C++, define a namespaced alias symbol.
2202         * modules/sys_select (Depends-on): Add c++defs.
2203         (Makefile.am): Update sys/select.h rule.
2204
2205         sys_ioctl: Avoid #define replacements in C++ mode.
2206         * lib/sys_ioctl.in.h: Include c++defs.h.
2207         (ioctl): In C++, define a namespaced alias symbol.
2208         * modules/sys_ioctl (Depends-on): Add c++defs.
2209         (Makefile.am): Update sys/ioctl.h rule.
2210
2211         string: Avoid #define replacements in C++ mode.
2212         * lib/string.in.h: Include c++defs.h.
2213         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2214         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2215         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2216         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2217         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2218         * modules/string (Depends-on): Add c++defs.
2219         (Makefile.am): Update string.h rule.
2220
2221         stdlib: Avoid #define replacements in C++ mode.
2222         * lib/stdlib.in.h: Include c++defs.h.
2223         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2224         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2225         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2226         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2227         symbol.
2228         * modules/stdlib (Depends-on): Add c++defs.
2229         (Makefile.am): Update stdlib.h rule.
2230
2231         stdio: Avoid #define replacements in C++ mode.
2232         * lib/stdio.in.h: Include c++defs.h.
2233         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2234         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2235         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2236         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2237         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2238         namespaced alias symbol.
2239         * modules/stdio (Depends-on): Add c++defs.
2240         (Makefile.am): Update stdio.h rule.
2241
2242         spawn: Avoid #define replacements in C++ mode.
2243         * lib/spawn.in.h: Include c++defs.h.
2244         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2245         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2246         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2247         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2248         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2249         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2250         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2251         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2252         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2253         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2254         In C++, define a namespaced alias symbol.
2255         * modules/spawn (Depends-on): Add c++defs.
2256         (Makefile.am): Update spawn.h rule.
2257
2258         signal: Avoid #define replacements in C++ mode.
2259         * lib/signal.in.h: Include c++defs.h.
2260         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2261         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2262         namespaced alias symbol.
2263         * modules/signal (Depends-on): Add c++defs.
2264         (Makefile.am): Update signal.h rule.
2265
2266         search: Avoid #define replacements in C++ mode.
2267         * lib/search.in.h: Include c++defs.h.
2268         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2269         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2270         symbol.
2271         * modules/search (Depends-on): Add c++defs.
2272         (Makefile.am): Update search.h rule.
2273
2274         math: Avoid #define replacements in C++ mode.
2275         * lib/math.in.h: Include c++defs.h.
2276         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2277         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2278         trunc, truncl): In C++, define a namespaced alias symbol.
2279         * modules/math (Depends-on): Add c++defs.
2280         (Makefile.am): Update math.h rule.
2281
2282         locale: Avoid #define replacements in C++ mode.
2283         * lib/locale.in.h: Include c++defs.h.
2284         (duplocale): In C++, define a namespaced alias symbol.
2285         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2286         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2287         * modules/locale (Depends-on): Add c++defs.
2288         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2289
2290         langinfo: Avoid #define replacements in C++ mode.
2291         * lib/langinfo.in.h: Include c++defs.h.
2292         (nl_langinfo): In C++, define a namespaced alias symbol.
2293         * modules/langinfo (Depends-on): Add c++defs.
2294         (Makefile.am): Update langinfo.h rule.
2295
2296         iconv-h: Avoid #define replacements in C++ mode.
2297         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2298         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2299         symbol.
2300         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2301         whenever iconv is present.
2302         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2303         (Makefile.am): Update iconv.h rule.
2304
2305         glob: Avoid #define replacements in C++ mode.
2306         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2307         (_gl_glob_errfunc_fn): New type.
2308         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2309         symbol.
2310         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2311         (Makefile.am): Update glob.h rule.
2312
2313         fcntl-h: Avoid #define replacements in C++ mode.
2314         * lib/fcntl.in.h: Include c++defs.h.
2315         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2316         * modules/fcntl-h (Depends-on): Add c++defs.
2317         (Makefile.am): Update fcntl.h rule.
2318
2319         dirent: Avoid #define replacements in C++ mode.
2320         * lib/dirent.in.h: Include c++defs.h.
2321         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2322         namespaced alias symbol.
2323         (dirfd): Update declaration.
2324         * modules/dirent (Depends-on): Add c++defs.
2325         (Makefile.am): Update dirent.h rule.
2326
2327         ctype: Make it usable in C++ code.
2328         * lib/ctype.in.h: Include c++defs.h.
2329         (isblank): Declare as extern "C".
2330         * modules/ctype (Depends-on): Add c++defs.
2331         (Makefile.am): Update ctype.h rule.
2332
2333         New module 'c++defs'.
2334         * modules/c++defs: New file.
2335         * build-aux/c++defs.h: New file.
2336         Reported by John W. Eaton <jwe@gnu.org>.
2337
2338 2010-03-07  Bruno Haible  <bruno@clisp.org>
2339
2340         logb: Provide missing declaration for Cygwin.
2341         * lib/math.in.h (logb): New declaration.
2342         * m4/logb.m4: New file.
2343         * modules/logb (Files): Add m4/logb.m4.
2344         (Depends-on): Add math.
2345         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2346         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2348         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2349         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2350
2351 2010-03-07  Bruno Haible  <bruno@clisp.org>
2352
2353         Fix test-cond link error.
2354         * tests/test-cond.c: Include <stdio.h>.
2355
2356 2010-03-07  Bruno Haible  <bruno@clisp.org>
2357
2358         Fix test-dirent-safer link error.
2359         * modules/dirent-safer-tests (Makefile.am): Define
2360         test_dirent_safer_LDADD.
2361
2362 2010-03-07  Bruno Haible  <bruno@clisp.org>
2363
2364         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2365         among default module list.
2366
2367 2010-03-07  Bruno Haible  <bruno@clisp.org>
2368
2369         Fix link error on platforms with GNU libiconv.
2370         * modules/unistr/u8-strcoll-tests (Makefile): Define
2371         test_u8_strcoll_LDADD.
2372         * modules/unistr/u16-strcoll-tests (Makefile): Define
2373         test_u16_strcoll_LDADD.
2374         * modules/unistr/u32-strcoll-tests (Makefile): Define
2375         test_u32_strcoll_LDADD.
2376
2377 2010-03-07  Bruno Haible  <bruno@clisp.org>
2378
2379         Use POSIX declarations for socket functions.
2380         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2381         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2382         rpl_sendto): Change declaration to match POSIX.
2383         * lib/connect.c (rpl_connect): Likewise.
2384         * lib/accept.c (rpl_accept): Likewise.
2385         * lib/bind.c (rpl_bind): Likewise.
2386         * lib/getpeername.c (rpl_getpeername): Likewise.
2387         * lib/getsockname.c (rpl_getsockname): Likewise.
2388         * lib/recv.c (rpl_recv): Likewise.
2389         * lib/send.c (rpl_send): Likewise.
2390         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2391         * lib/sendto.c (rpl_sendto): Likewise.
2392
2393 2010-03-06  Bruno Haible  <bruno@clisp.org>
2394
2395         Clarify access, euidaccess, faccessat.
2396         * doc/posix-functions/faccessat.texi: Mention security problem under
2397         "Other problems", not "Portability problems".
2398         * doc/posix-functions/access.texi: Likewise. Mention a related security
2399         problem.
2400         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2401         * lib/euidaccess.c: Add comments about platforms.
2402         * lib/unistd.in.h (access, euidaccess): Add warnings.
2403
2404 2010-03-07  Bruno Haible  <bruno@clisp.org>
2405
2406         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2407         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2408         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2409         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2410         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2411         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2412         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2413         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2414         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2415         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2416         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2417         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2418         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2419         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2420         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2421         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2422         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2423         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2424         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2425         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2426         Likewise.
2427         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2428         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2429         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2430         Likewise.
2431         * tests/test-spawn.c (main): Make it work when
2432         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2433
2434 2010-03-07  Bruno Haible  <bruno@clisp.org>
2435
2436         Fix incorrect Makefile.am generation in German locale.
2437         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2438         Execute sed command with character range in C locale.
2439
2440 2010-03-06  Bruno Haible  <bruno@clisp.org>
2441
2442         Tests for module 'iconv-h'.
2443         * modules/iconv-h-tests: New file.
2444         * tests/test-iconv-h.c: New file.
2445
2446         New module 'iconv-h'.
2447         * modules/iconv-h: New file.
2448         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2449         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2450         (configure.ac): Remove gl_ICONV_H.
2451         (Makefile.am): Remove rule for iconv.h.
2452
2453 2010-03-06  Bruno Haible  <bruno@clisp.org>
2454
2455         More consistent naming of *.m4 files.
2456         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2457         * modules/wctype (Files): Update.
2458
2459         More consistent naming of *.m4 files.
2460         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2461         * modules/wchar (Files): Update.
2462
2463 2010-03-06  Jim Meyering  <meyering@redhat.com>
2464
2465         euidaccess: relax license to LGPLv2+
2466         * modules/euidaccess (License): Relax to LGPLv2+.
2467
2468 2010-03-06  Bruno Haible  <bruno@clisp.org>
2469
2470         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2471         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2472         (Makefile.am): Augment lib_SOURCES instead.
2473
2474 2010-03-04  Jim Meyering  <meyering@redhat.com>
2475
2476         utime: remove obsolete module
2477         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2478         unnecessary for years, and has been marked as obsolete for 10 months.
2479         * modules/utime: Remove file.
2480         * lib/utime.c: Remove file.
2481         * m4/utime.m4: Remove file.
2482         * m4/utimes-null.m4: Remove file.
2483         * doc/posix-functions/utime.texi (utime): Remove reference to
2484         the module.  Move the sole "fixed by gnulib" item into the
2485         "problems not fixed by Gnulib" list.
2486         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2487
2488 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2489
2490         * modules/exit (License): Relax license to LGPLv2+.
2491         (Status): Mark as obsolete.
2492         * NEWS: Mention deprecated 'exit' module.
2493         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2494         of now obsolete 'exit'.
2495
2496 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2497
2498         fts-lgpl: remove unused module
2499         * modules/fts-lgpl: Remove.
2500         * MODULES.html.sh (func_all_modules): Adjust.
2501         * check-module (find_included_lib_files): Adjust.
2502         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2503
2504 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2505
2506         copy-acl: enhance Solaris ACL error handling
2507         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2508         * lib/set-mode-acl.c (qset_acl): Likewise.
2509
2510 2010-03-02  Bruno Haible  <bruno@clisp.org>
2511
2512         spawn: Don't override the system defined values on FreeBSD 8.
2513         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2514         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2515         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2516         if HAVE_POSIX_SPAWN is 1.
2517         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2518
2519 2010-03-01  Bruno Haible  <bruno@clisp.org>
2520
2521         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2522         regarding Automake.
2523
2524 2010-02-25  Bruno Haible  <bruno@clisp.org>
2525
2526         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2527         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2528         setting, not afterwards.
2529         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2530
2531 2010-02-24  Eric Blake  <eblake@redhat.com>
2532
2533         bootstrap, git-version-gen: use timestamp
2534         * build-aux/git-version-gen (scriptversion): Force UTC.
2535         * build-aux/bootstrap (scriptversion): New variable.
2536
2537         bootstrap: allow older git
2538         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2539         older than 1.6.4.  Requested by the libvirt project.
2540
2541 2010-02-23  Eric Blake  <eblake@redhat.com>
2542
2543         warn-on-use: work with old autoconf
2544         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2545         AS_VAR semantics of autoconf 2.60.
2546         Reported by Bruno Haible.
2547
2548         bootstrap: improve some comments
2549         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2550         clarification comments.
2551
2552         gettimeofday: provide correct function
2553         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2554         when replacement is declared, otherwise provide gettimeofday.
2555         Reported by Michael Goffioul.
2556
2557 2010-02-23  Jim Meyering  <meyering@redhat.com>
2558
2559         lib-ignore: relax license to "unlimited", not LGPLv2+
2560         * modules/lib-ignore (License): Relax to "unlimited".
2561
2562 2010-02-23  Jim Meyering  <meyering@redhat.com>
2563
2564         lib-ignore: relax license to LGPLv2+
2565         * modules/lib-ignore (License): Relax to LGPLv2+.
2566
2567 2010-02-22  Eric Blake  <eblake@redhat.com>
2568
2569         lseek: avoid bash 3.2 broken pipe bug
2570         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2571         warning from bash 3.2.
2572         Reported by Ben Pfaff, with analysis from Bruno Haible.
2573
2574         bootstrap: support non-FSF copyright holder
2575         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2576         bootstrap.conf override of COPYRIGHT_HOLDER.
2577         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2578
2579         bootstrap: interoperate with gettext 0.14.1
2580         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2581
2582         bootstrap: allow for alternate submodule location
2583         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2584         hardcoding submodule location.
2585         (gnulib_mk): Allow direct use of Makefile.am.
2586
2587         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2588         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2589         rather than reconfiguring where the submodule points.
2590
2591         gettimeofday: restore support for platforms that lack function
2592         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2593         replacement if function is missing.
2594         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2595         * modules/sys_time (Makefile.am): Substitute it.
2596         * lib/sys_time.in.h (gettimeofday): Check it.
2597         Reported by Michael Goffioul.
2598
2599 2010-02-21  Bruno Haible  <bruno@clisp.org>
2600
2601         * lib/stdio.in.h (obstack_printf): Fix typo.
2602
2603 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2604
2605         vc-list-files: use bzr ls's -R option
2606         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2607         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2608
2609 2010-02-21  Jim Meyering  <meyering@redhat.com>
2610
2611         init.sh: fix EXEEXT shims to work also for names like test-prog
2612         * tests/init.sh: Re-exec a better shell, when needed.
2613         If the current shell lacks support for posix $(...), an init.sh-using
2614         test will now try to find a shell that supports that.  If EXEEXT is
2615         nonempty, we also require support for hyphen-in-alias-name and shell
2616         substitutions like ${var#glob}.  Failure to find such a shell results
2617         in a skipped test.
2618
2619 2010-02-21  Bruno Haible  <bruno@clisp.org>
2620
2621         Really work around around "broken pipe" error message from bash 3.2.
2622         * gnulib-tool (func_reset_sigpipe): Remove function.
2623         (echo): In bash 3.2, define to a function that uses printf.
2624         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2625
2626 2010-02-20  Bruno Haible  <bruno@clisp.org>
2627
2628         Restore support for automake 1.9.6 with autoconf 2.61.
2629         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2630         Reported by James Youngman <jay@gnu.org>.
2631
2632 2010-02-20  Bruno Haible  <bruno@clisp.org>
2633
2634         Improve *printf warning condition.
2635         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2636         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2637         and the function is overridden due to SIGPIPE emulation.
2638
2639 2010-02-20  Bruno Haible  <bruno@clisp.org>
2640
2641         * lib/stdio.in.h: Tweak comments.
2642
2643 2010-02-19  Bruno Haible  <bruno@clisp.org>
2644
2645         Make it easier to find modules. New gnulib-tool option '--find'.
2646         * gnulib-tool: New option --find.
2647         (func_usage): Document it.
2648         (func_sanitize_modulelist): New function, extracted from
2649         func_all_modules.
2650         (func_all_modules): Invoke it.
2651         * doc/gnulib-tool.texi (Which modules?): New node.
2652
2653 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2654
2655         * lib/sys_select.in.h: Provide select replacement even if
2656         sys/select.h exists on a system, for Interix.
2657
2658 2010-02-18  Jim Meyering  <meyering@redhat.com>
2659
2660         init.sh: don't use $(...) just yet
2661         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2662         to accommodate e.g., Solaris' /bin/sh.
2663
2664 2010-02-17  Bruno Haible  <bruno@clisp.org>
2665
2666         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2667         Reported by Ludovic Courtès <ludo@gnu.org>.
2668
2669 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2670
2671         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2672         linking with -lintl.
2673
2674 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2675
2676         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2677         if not provided by the system's netdb.h.  Reported by
2678         ludo@gnu.org (Ludovic Courtès).
2679
2680 2010-02-15  Jim Meyering  <meyering@redhat.com>
2681
2682         init.sh: improve portability and efficiency
2683         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2684         "dummy" in a for loop.
2685         Use '!', not '^' to select the complement of a character set used
2686         in a "case" statement.
2687         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2688         Suggestions from Eric Blake.
2689
2690         init.sh: automatically accommodate programs with the .exe suffix
2691         Automatically arrange for an invocation of "prog" to execute the
2692         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2693         may use the simpler "prog", yet still work when built on a system
2694         that requires specifying the added suffix.
2695         Do this by constructing a function named "prog" that invokes
2696         "prog.exe" for each .exe file in selected directories.
2697         * tests/init.sh (find_exe_basenames_): New function.
2698         (create_exe_shim_functions_): New function.
2699         (path_prepend_): Use it.
2700
2701         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2702         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2703         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2704
2705 2010-02-14  Jim Meyering  <meyering@redhat.com>
2706
2707         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2708         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2709         (sc_prohibit_hash_pjw_without_use): New rule.
2710
2711         maint.mk: allow the default upload destination dir to be overridden
2712         * top/maint.mk (upload_dest_dir_): Define with a default that
2713         preserves the status quo.
2714         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2715         Reported by Peter Simons.
2716
2717         maint.mk: prohibit inclusion of "hash.h" without_use
2718         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2719
2720 2010-02-10  Jim Meyering  <meyering@redhat.com>
2721
2722         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2723         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2724
2725 2010-02-09  Eric Blake  <ebb9@byu.net>
2726         and Bruno Haible  <bruno@clisp.org>
2727
2728         obstack-printf-posix: ensure declaration
2729         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2730         extracted from gl_FUNC_OBSTACK_PRINTF.
2731         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2732         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2733         Likewise.
2734         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2735         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2736         0.
2737
2738 2010-02-08  Bruno Haible  <bruno@clisp.org>
2739
2740         gnulib-tool: Fix typo in 2010-02-07 commit.
2741         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2742         Reported by Eric Blake.
2743
2744 2010-02-07  Bruno Haible  <bruno@clisp.org>
2745
2746         gnulib-tool: Fix up caching patches.
2747         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2748         option --no-cache. Use associative arrays when supported by the shell.
2749         (sed_comments): New variable.
2750         (modcache): Renamed from do_cache.
2751         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2752         abbreviate unnecessarily.
2753         (have_associative): New variable.
2754         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2755         way also for ksh and zsh.
2756         (func_init_sed_convert_to_cache_statements): New function, extracted
2757         from func_cache_lookup_module. Add support for associative arrays.
2758         Don't set the c_MODULE_cached variable here. Ignore all lines before
2759         the first field header. Remove only the final newline, not all trailing
2760         newlines. Support empty fields correctly. Limit the use of 'eval' to
2761         assignments.
2762         (func_get_description, func_get_status, func_get_notice,
2763         func_get_applicability, func_get_filelist, func_get_dependencies,
2764         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2765         func_get_automake_snippet, func_get_include_directive,
2766         func_get_link_directive, func_get_license, func_get_maintainer):
2767         Update documentation. List the unoptimized code first. Add support for
2768         associative arrays. Limit the use of 'eval' to assignments.
2769         (func_get_applicability): Undo stylistic pessimisations.
2770         (func_get_automake_snippet, func_get_include_directive): Reduce code
2771         duplication.
2772         (func_modules_transitive_closure, func_modules_add_dummy,
2773         func_modules_notice, func_modules_to_filelist, func_add_file,
2774         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2775         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2776         func_create_testdir, func_create_megatestdir): Update documentation.
2777
2778 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2779
2780         * gnulib-tool (func_cache_lookup_module): Store the module name
2781         belonging to the cache variable; error out if two different
2782         module names map to the same cache variable name.
2783
2784 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2785
2786         gnulib-tool: Make caching optional.
2787         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2788         Update matching short versions of --no-changelog.
2789         (func_usage): Update.
2790         (sed_extract_cache_prog): Renamed from ...
2791         (sed_extract_prog): ... this; revert to old extraction script.
2792         (func_get_description, func_get_status)
2793         (func_get_notice, func_get_applicability, func_get_filelist)
2794         (func_get_dependencies, func_get_autoconf_early_snippet)
2795         (func_get_autoconf_snippet, func_get_automake_snippet)
2796         (func_get_include_directive, func_get_link_directive)
2797         (func_get_license, func_get_maintainer): If $do_cache is false,
2798         use old, non-caching extraction scripts.
2799         Suggestion by Bruno Haible.
2800
2801 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2802
2803         gnulib-tool: cache module metainformation.
2804         * gnulib-tool (sed_extract_prog): Match newline before each
2805         header, and rewrite header to a shell variable suffix.
2806         (func_cache_var, func_cache_lookup_module): New functions,
2807         to turn a module name into a cache variable prefix, and to
2808         look up and cache module metainformation.
2809         (func_get_description, func_get_status)
2810         (func_get_notice, func_get_applicability, func_get_filelist)
2811         (func_get_dependencies, func_get_autoconf_early_snippet)
2812         (func_get_autoconf_snippet, func_get_automake_snippet)
2813         (func_get_include_directive, func_get_link_directive)
2814         (func_get_license, func_get_maintainer): Use
2815         func_cache_lookup_module.
2816
2817 2010-02-07  Bruno Haible  <bruno@clisp.org>
2818
2819         fnctl: Fix missing dependency.
2820         * modules/fcntl (Depends-on): Add getdtablesize.
2821         Reported by John W. Eaton <jwe@gnu.org>.
2822
2823 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2824
2825         Argp: fix recognition of short alias options.
2826
2827         * lib/argp-parse.c (convert_options): Fix improper use of
2828         `|' between character values.
2829         * tests/test-argp.c (group1_option): New alias option
2830         --read (-r).
2831         (group1_parser): Special handling for 'r'.
2832         (test15): New test case.
2833         (test_fun): Add test15.
2834         * tests/test-argp-2.sh: Update expected --help and --usage
2835         outputs.
2836
2837 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2838
2839         * tests/test-argp.c: Fix indentation.
2840
2841 2010-02-04  Eric Blake  <ebb9@byu.net>
2842
2843         gettimeofday: expose type of second argument
2844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2845         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2846         * tests/test-gettimeofday.c: Use it to silence warning.
2847         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2848         the issue.
2849
2850 2010-02-03  Jim Meyering  <meyering@redhat.com>
2851
2852         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2853         * lib/regcomp.c (TYPE_SIGNED): Define.
2854         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2855
2856         regcomp.c: avoid a new -Wshadow warning
2857         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2858
2859 2010-02-01  Jim Meyering  <meyering@redhat.com>
2860
2861         removing useless parentheses in cpp #define directives
2862         For motivation, see commit c0221df4, "define STREQ(a,b)
2863         consistently, removing useless parentheses"
2864         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2865         * lib/mountlist.c (MNT_IGNORE): Likewise.
2866         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2867
2868 2010-02-01  Eric Blake  <ebb9@byu.net>
2869
2870         sys_time: use link-warning
2871         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2872         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2873         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2874         * modules/sys_time (Depends-on): Add warn-on-use.
2875         (Makefile.am): Always build replacement.
2876         (configure.ac): Update substitutions.
2877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2878         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2879         bother with SYS_TIME_H.
2880         * modules/gettimeofday (configure.ac): Declare indicator.
2881         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2882         in use.
2883
2884         closein-tests: silence compiler warning
2885         * tests/test-closein.c (main): Ignore fread result.
2886         * modules/closein-tests (Depends-on): Add ignore-value.
2887
2888         tests: silence warning about system return
2889         * tests/test-areadlink-with-size.c (main): Ignore system result.
2890         * tests/test-areadlink.c (main): Likewise.
2891         * tests/test-areadlinkat-with-size.c (main): Likewise.
2892         * tests/test-areadlinkat.c (main): Likewise.
2893         * tests/test-canonicalize-lgpl.c (main): Likewise.
2894         * tests/test-canonicalize.c (main): Likewise.
2895         * tests/test-chown.c (main): Likewise.
2896         * tests/test-fchownat.c (main): Likewise.
2897         * tests/test-fdutimensat.c (main): Likewise.
2898         * tests/test-fstatat.c (main): Likewise.
2899         * tests/test-futimens.c (main): Likewise.
2900         * tests/test-lchown.c (main): Likewise.
2901         * tests/test-link.c (main): Likewise.
2902         * tests/test-linkat.c (main): Likewise.
2903         * tests/test-lstat.c (main): Likewise.
2904         * tests/test-mkdir.c (main): Likewise.
2905         * tests/test-mkdirat.c (main): Likewise.
2906         * tests/test-mkfifo.c (main): Likewise.
2907         * tests/test-mkfifoat.c (main): Likewise.
2908         * tests/test-mknod.c (main): Likewise.
2909         * tests/test-readlink.c (main): Likewise.
2910         * tests/test-remove.c (main): Likewise.
2911         * tests/test-rename.c (main): Likewise.
2912         * tests/test-renameat.c (main): Likewise.
2913         * tests/test-rmdir.c (main): Likewise.
2914         * tests/test-symlink.c (main): Likewise.
2915         * tests/test-symlinkat.c (main): Likewise.
2916         * tests/test-unlink.c (main): Likewise.
2917         * tests/test-unlinkat.c (main): Likewise.
2918         * tests/test-utimens.c (main): Likewise.
2919         * tests/test-utimensat.c (main): Likewise.
2920         * modules/areadlink-tests (Depends-on): Add ignore-value.
2921         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2922         * modules/areadlinkat-tests (Depends-on): Likewise.
2923         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2924         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2925         * modules/canonicalize-tests (Depends-on): Likewise.
2926         * modules/chown-tests (Depends-on): Likewise.
2927         * modules/fdutimensat-tests (Depends-on): Likewise.
2928         * modules/futimens-tests (Depends-on): Likewise.
2929         * modules/lchown-tests (Depends-on): Likewise.
2930         * modules/link-tests (Depends-on): Likewise.
2931         * modules/linkat-tests (Depends-on): Likewise.
2932         * modules/lstat-tests (Depends-on): Likewise.
2933         * modules/mkdir-tests (Depends-on): Likewise.
2934         * modules/mkfifo-tests (Depends-on): Likewise.
2935         * modules/mkfifoat-tests (Depends-on): Likewise.
2936         * modules/mknod-tests (Depends-on): Likewise.
2937         * modules/openat-tests (Depends-on): Likewise.
2938         * modules/readlink-tests (Depends-on): Likewise.
2939         * modules/remove-tests (Depends-on): Likewise.
2940         * modules/rename-tests (Depends-on): Likewise.
2941         * modules/renameat-tests (Depends-on): Likewise.
2942         * modules/rmdir-tests (Depends-on): Likewise.
2943         * modules/symlink-tests (Depends-on): Likewise.
2944         * modules/symlinkat-tests (Depends-on): Likewise.
2945         * modules/unlink-tests (Depends-on): Likewise.
2946         * modules/utimens-tests (Depends-on): Likewise.
2947         * modules/utimensat-tests (Depends-on): Likewise.
2948
2949 2010-01-31  Bruno Haible  <bruno@clisp.org>
2950
2951         Perform the same test for many <math.h> functions.
2952         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2953         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2954         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2955         of gl_MATHFUNC.
2956         * modules/acos (configure.ac): Likewise.
2957         * modules/asin (configure.ac): Likewise.
2958         * modules/atan (configure.ac): Likewise.
2959         * modules/atan2 (configure.ac): Likewise.
2960         * modules/cbrt (configure.ac): Likewise.
2961         * modules/copysign (configure.ac): Likewise.
2962         * modules/cos (configure.ac): Likewise.
2963         * modules/cosh (configure.ac): Likewise.
2964         * modules/erf (configure.ac): Likewise.
2965         * modules/erfc (configure.ac): Likewise.
2966         * modules/exp (configure.ac): Likewise.
2967         * modules/fmod (configure.ac): Likewise.
2968         * modules/hypot (configure.ac): Likewise.
2969         * modules/j0 (configure.ac): Likewise.
2970         * modules/j1 (configure.ac): Likewise.
2971         * modules/jn (configure.ac): Likewise.
2972         * modules/lgamma (configure.ac): Likewise.
2973         * modules/log (configure.ac): Likewise.
2974         * modules/log10 (configure.ac): Likewise.
2975         * modules/log1p (configure.ac): Likewise.
2976         * modules/pow (configure.ac): Likewise.
2977         * modules/remainder (configure.ac): Likewise.
2978         * modules/sin (configure.ac): Likewise.
2979         * modules/sinh (configure.ac): Likewise.
2980         * modules/tan (configure.ac): Likewise.
2981         * modules/tanh (configure.ac): Likewise.
2982         * modules/y0 (configure.ac): Likewise.
2983         * modules/y1 (configure.ac): Likewise.
2984         * modules/yn (configure.ac): Likewise.
2985         Suggested by Paolo Bonzini.
2986
2987 2010-01-31  Bruno Haible  <bruno@clisp.org>
2988
2989         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2990
2991 2010-01-31  Bruno Haible  <bruno@clisp.org>
2992
2993         Work around getdelim() bug on FreeBSD 8.0.
2994         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2995         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2996         not work.
2997         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2998         is 1.
2999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3000         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3001         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3002         a non-zero size.
3003         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3004
3005 2010-01-31  Bruno Haible  <bruno@clisp.org>
3006
3007         Work around getline() bug on FreeBSD 8.0.
3008         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3009         and a non-zero size.
3010         * tests/test-getline.c (main): Likewise.
3011         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3012         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3013
3014 2010-01-28  Eric Blake  <ebb9@byu.net>
3015
3016         regex: fix build failure
3017         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3018         platforms.
3019
3020 2010-01-28  Jim Meyering  <meyering@redhat.com>
3021
3022         regex: do not ignore memory allocation failure
3023         * lib/regex_internal.c (create_cd_newstate): Detect
3024         re_node_set_init_copy failure.   Extracted from glibc commit
3025         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3026
3027         regex: sync more white-space changes from libc
3028         * lib/regex_internal.c: White-space only changes.
3029         * lib/regexec.c: Likewise.
3030
3031         regex: add many uses of __attribute_warn_unused_result__
3032         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3033         * lib/regexec.c: Likewise.
3034         Extracted from a messy glibc commit.
3035
3036         regcomp.c: spelling and merge-artifact from glibc
3037         * lib/regcomp.c: Merge remainder of glibc's
3038         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3039
3040         regcomp.c: sync white-space changes from glibc
3041         * lib/regcomp.c: Merge to accommodate white space
3042         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3043
3044         regcomp.c: do not ignore internal return values
3045         * lib/regcomp.c: Do not ignore internal return values.
3046         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3047         but without its white-space changes and spelling fixes.
3048
3049         regex_internal.h: define __attribute_warn_unused_result__
3050         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3051
3052         maint: add a syntax-check rule to check for vulnerable Makefile.in
3053         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3054
3055 2010-01-27  Jim Meyering  <meyering@redhat.com>
3056
3057         ncftpput-ftp: clean up spaces
3058         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3059         Remove trailing blanks.
3060
3061 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3062
3063         * build-aux/git-version-gen: Fix copyright statement.
3064         * build-aux/gnupload: Likewise.
3065         * tests/test-arcfour.c: Likewise.
3066         * tests/test-arctwo.c: Likewise.
3067         * tests/test-count-one-bits.c: Likewise.
3068         * tests/test-crc.c: Likewise.
3069         * tests/test-des.c: Likewise.
3070         * tests/test-gc-arcfour.c: Likewise.
3071         * tests/test-gc-arctwo.c: Likewise.
3072         * tests/test-gc-des.c: Likewise.
3073         * tests/test-gc-hmac-md5.c: Likewise.
3074         * tests/test-gc-hmac-sha1.c: Likewise.
3075         * tests/test-gc-md2.c: Likewise.
3076         * tests/test-gc-md4.c: Likewise.
3077         * tests/test-gc-md5.c: Likewise.
3078         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3079         * tests/test-gc-rijndael.c: Likewise.
3080         * tests/test-gc-sha1.c: Likewise.
3081         * tests/test-gc.c: Likewise.
3082         * tests/test-gethostname.c: Likewise.
3083         * tests/test-gettimeofday.c: Likewise.
3084         * tests/test-hash.c: Likewise.
3085         * tests/test-hmac-md5.c: Likewise.
3086         * tests/test-hmac-sha1.c: Likewise.
3087         * tests/test-md2.c: Likewise.
3088         * tests/test-md4.c: Likewise.
3089         * tests/test-md5.c: Likewise.
3090         * tests/test-memchr.c: Likewise.
3091         * tests/test-memchr2.c: Likewise.
3092         * tests/test-memcmp.c: Likewise.
3093         * tests/test-memmem.c: Likewise.
3094         * tests/test-memrchr.c: Likewise.
3095         * tests/test-rawmemchr.c: Likewise.
3096         * tests/test-read-file.c: Likewise.
3097         * tests/test-rijndael.c: Likewise.
3098         * tests/test-sockets.c: Likewise.
3099         * tests/test-strchrnul.c: Likewise.
3100         * tests/test-strstr.c: Likewise.
3101         * tests/test-strtod.c: Likewise.
3102         * build-aux/ncftpput-ftp: Likewise.
3103
3104 2010-01-26  Eric Blake  <ebb9@byu.net>
3105
3106         ignore-value: update recommended header name
3107         * modules/ignore-value (Include): Only use <> for headers that
3108         exist in glibc.
3109
3110 2010-01-26  Jim Meyering  <meyering@redhat.com>
3111
3112         test-userspec.c: avoid compiler warnings
3113         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3114         and "initialization discards qualifiers..." warnings.
3115         Put the first "uid" in its own scope, and make char* members "const".
3116
3117 2010-01-25  Bruno Haible  <bruno@clisp.org>
3118
3119         gnulib-tool: Make warning diagnostics consistent.
3120         * gnulib-tool (func_warning): New function.
3121         Use it everywhere where gnulib-tool produces output to stderr and it is
3122         not a fatal error.
3123
3124 2010-01-25  Bruno Haible  <bruno@clisp.org>
3125
3126         Fix test dependencies.
3127         * modules/xstrtol-tests (Depends-on): Add inttypes.
3128         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3129
3130 2010-01-25 Pádraig Brady <P@draigBrady.com>
3131
3132         syntax-check: detect incorrect boolean macro values in config.h
3133         * modules/maintainer-makefile (configure.ac): Parameterize the location
3134         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3135         The logic is from Eric Blake and the location indicated by Jim Meyering.
3136         Note the more natural CONFIG_HEADER name is prohibited by automake
3137         for backwards compatibility reasons.
3138         * top/maint.mk (sc_Wundef_boolean): New rule.
3139
3140 2010-01-25  Jim Meyering  <meyering@redhat.com>
3141
3142         bootstrap: detect MacOS 10.6's shasum, too
3143         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3144         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3145
3146 2010-01-23  Jim Meyering  <meyering@redhat.com>
3147
3148         xstrtoll: new module
3149         * modules/xstrtoll: New file.
3150         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3151         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3152         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3153         ./configure fails if you use this module and lack "long long".
3154         * modules/xstrtoll-tests: New module.
3155         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3156         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3157         new init.sh-based test framework.
3158
3159 2010-01-24  Bruno Haible  <bruno@clisp.org>
3160
3161         Tests for module 'yn'.
3162         * modules/yn-tests: New file.
3163         * tests/test-yn.c: New file.
3164
3165         Tests for module 'y1'.
3166         * modules/y1-tests: New file.
3167         * tests/test-y1.c: New file.
3168
3169         Tests for module 'y0'.
3170         * modules/y0-tests: New file.
3171         * tests/test-y0.c: New file.
3172
3173         Tests for module 'tanh'.
3174         * modules/tanh-tests: New file.
3175         * tests/test-tanh.c: New file.
3176
3177         Tests for module 'tan'.
3178         * modules/tan-tests: New file.
3179         * tests/test-tan.c: New file.
3180
3181         Tests for module 'sqrt'.
3182         * modules/sqrt-tests: New file.
3183         * tests/test-sqrt.c: New file.
3184
3185         Tests for module 'sinh'.
3186         * modules/sinh-tests: New file.
3187         * tests/test-sinh.c: New file.
3188
3189         Tests for module 'sin'.
3190         * modules/sin-tests: New file.
3191         * tests/test-sin.c: New file.
3192
3193         Tests for module 'rint'.
3194         * modules/rint-tests: New file.
3195         * tests/test-rint.c: New file.
3196
3197         Tests for module 'remainder'.
3198         * modules/remainder-tests: New file.
3199         * tests/test-remainder.c: New file.
3200
3201         Tests for module 'pow'.
3202         * modules/pow-tests: New file.
3203         * tests/test-pow.c: New file.
3204
3205         Tests for module 'nextafter'.
3206         * modules/nextafter-tests: New file.
3207         * tests/test-nextafter.c: New file.
3208
3209         Tests for module 'modf'.
3210         * modules/modf-tests: New file.
3211         * tests/test-modf.c: New file.
3212
3213         Tests for module 'logb'.
3214         * modules/logb-tests: New file.
3215         * tests/test-logb.c: New file.
3216
3217         Tests for module 'log1p'.
3218         * modules/log1p-tests: New file.
3219         * tests/test-log1p.c: New file.
3220
3221         Tests for module 'log10'.
3222         * modules/log10-tests: New file.
3223         * tests/test-log10.c: New file.
3224
3225         Tests for module 'log'.
3226         * modules/log-tests: New file.
3227         * tests/test-log.c: New file.
3228
3229         Tests for module 'lgamma'.
3230         * modules/lgamma-tests: New file.
3231         * tests/test-lgamma.c: New file.
3232
3233         Tests for module 'ldexp'.
3234         * modules/ldexp-tests: New file.
3235         * tests/test-ldexp.c: New file.
3236
3237         Tests for module 'jn'.
3238         * modules/jn-tests: New file.
3239         * tests/test-jn.c: New file.
3240
3241         Tests for module 'j1'.
3242         * modules/j1-tests: New file.
3243         * tests/test-j1.c: New file.
3244
3245         Tests for module 'j0'.
3246         * modules/j0-tests: New file.
3247         * tests/test-j0.c: New file.
3248
3249         Tests for module 'hypot'.
3250         * modules/hypot-tests: New file.
3251         * tests/test-hypot.c: New file.
3252
3253         Tests for module 'fmod'.
3254         * modules/fmod-tests: New file.
3255         * tests/test-fmod.c: New file.
3256
3257         Tests for module 'fabs'.
3258         * modules/fabs-tests: New file.
3259         * tests/test-fabs.c: New file.
3260
3261         Tests for module 'exp'.
3262         * modules/exp-tests: New file.
3263         * tests/test-exp.c: New file.
3264
3265         Tests for module 'erfc'.
3266         * modules/erfc-tests: New file.
3267         * tests/test-erfc.c: New file.
3268
3269         Tests for module 'erf'.
3270         * modules/erf-tests: New file.
3271         * tests/test-erf.c: New file.
3272
3273         Tests for module 'cosh'.
3274         * modules/cosh-tests: New file.
3275         * tests/test-cosh.c: New file.
3276
3277         Tests for module 'cos'.
3278         * modules/cos-tests: New file.
3279         * tests/test-cos.c: New file.
3280
3281         Tests for module 'copysign'.
3282         * modules/copysign-tests: New file.
3283         * tests/test-copysign.c: New file.
3284
3285         Tests for module 'cbrt'.
3286         * modules/cbrt-tests: New file.
3287         * tests/test-cbrt.c: New file.
3288
3289         Tests for module 'atan2'.
3290         * modules/atan2-tests: New file.
3291         * tests/test-atan2.c: New file.
3292
3293         Tests for module 'atan'.
3294         * modules/atan-tests: New file.
3295         * tests/test-atan.c: New file.
3296
3297         Tests for module 'asin'.
3298         * modules/asin-tests: New file.
3299         * tests/test-asin.c: New file.
3300
3301         Tests for module 'acos'.
3302         * modules/acos-tests: New file.
3303         * tests/test-acos.c: New file.
3304
3305 2010-01-24  Bruno Haible  <bruno@clisp.org>
3306
3307         Fix tests for common <math.h> functions.
3308         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3309         code snippet that references the function pointer, rather than merely
3310         calling the function. Substitute the FUNC_LIBM variable.
3311         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3312         * modules/acos (configure.ac): Likewise.
3313         * modules/asin (configure.ac): Likewise.
3314         * modules/atan (configure.ac): Likewise.
3315         * modules/atan2 (configure.ac): Likewise.
3316         * modules/cbrt (configure.ac): Likewise.
3317         * modules/copysign (configure.ac): Likewise.
3318         * modules/cos (configure.ac): Likewise.
3319         * modules/cosh (configure.ac): Likewise.
3320         * modules/erf (configure.ac): Likewise.
3321         * modules/erfc (configure.ac): Likewise.
3322         * modules/exp (configure.ac): Likewise.
3323         * modules/fabs (configure.ac): Likewise.
3324         * modules/fmod (configure.ac): Likewise.
3325         * modules/hypot (configure.ac): Likewise.
3326         * modules/j0 (configure.ac): Likewise.
3327         * modules/j1 (configure.ac): Likewise.
3328         * modules/jn (configure.ac): Likewise.
3329         * modules/ldexp (configure.ac): Likewise.
3330         * modules/lgamma (configure.ac): Likewise.
3331         * modules/log (configure.ac): Likewise.
3332         * modules/log10 (configure.ac): Likewise.
3333         * modules/log1p (configure.ac): Likewise.
3334         * modules/logb (configure.ac): Likewise.
3335         * modules/modf (configure.ac): Likewise.
3336         * modules/nextafter (configure.ac): Likewise.
3337         * modules/pow (configure.ac): Likewise.
3338         * modules/remainder (configure.ac): Likewise.
3339         * modules/rint (configure.ac): Likewise.
3340         * modules/sin (configure.ac): Likewise.
3341         * modules/sinh (configure.ac): Likewise.
3342         * modules/tan (configure.ac): Likewise.
3343         * modules/tanh (configure.ac): Likewise.
3344         * modules/y0 (configure.ac): Likewise.
3345         * modules/y1 (configure.ac): Likewise.
3346         * modules/yn (configure.ac): Likewise.
3347
3348 2010-01-24  Bruno Haible  <bruno@clisp.org>
3349
3350         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3351         * tests/test-acosl.c (x): New variable.
3352         (main): Store argument in x and fetch it from x.
3353         * tests/test-asinl.c (x): New variable.
3354         (main): Store argument in x and fetch it from x.
3355         * tests/test-atanl.c (x): New variable.
3356         (main): Store argument in x and fetch it from x.
3357         * tests/test-cosl.c (x): New variable.
3358         (main): Store argument in x and fetch it from x.
3359         * tests/test-expl.c (x): New variable.
3360         (main): Store argument in x and fetch it from x.
3361         * tests/test-logl.c (x): New variable.
3362         (main): Store argument in x and fetch it from x.
3363         * tests/test-sinl.c (x): New variable.
3364         (main): Store argument in x and fetch it from x.
3365         * tests/test-sqrtl.c (x): New variable.
3366         (main): Store argument in x and fetch it from x.
3367         * tests/test-tanl.c (x): New variable.
3368         (main): Store argument in x and fetch it from x.
3369
3370 2010-01-24  Bruno Haible  <bruno@clisp.org>
3371
3372         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3373         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3374         assignments to the initial TESTS_ENVIRONMENT.
3375         * doc/gnulib.texi (Unit test modules): Document it.
3376         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3377         TESTS_ENVIRONMENT.
3378         * modules/btowc-tests (Makefile.am): Likewise.
3379         * modules/c-stack-tests (Makefile.am): Likewise.
3380         * modules/c-strcase-tests (Makefile.am): Likewise.
3381         * modules/copy-file-tests (Makefile.am): Likewise.
3382         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3383         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3384         * modules/mbrtowc-tests (Makefile.am): Likewise.
3385         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3386         * modules/mbscasestr-tests (Makefile.am): Likewise.
3387         * modules/mbschr-tests (Makefile.am): Likewise.
3388         * modules/mbscspn-tests (Makefile.am): Likewise.
3389         * modules/mbsinit-tests (Makefile.am): Likewise.
3390         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3391         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3392         * modules/mbspbrk-tests (Makefile.am): Likewise.
3393         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3394         * modules/mbsrchr-tests (Makefile.am): Likewise.
3395         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3396         * modules/mbsspn-tests (Makefile.am): Likewise.
3397         * modules/mbsstr-tests (Makefile.am): Likewise.
3398         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3399         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3400         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3401         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3402         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3403         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3404         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3405         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3406         * modules/wcrtomb-tests (Makefile.am): Likewise.
3407         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3408         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3409         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3410         assignments from TESTS_ENVIRONMENT.
3411         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3412         augmentation.
3413         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3414         * modules/atexit-tests (Makefile.am): Likewise.
3415         * modules/binary-io-tests (Makefile.am): Likewise.
3416         * modules/closein-tests (Makefile.am): Likewise.
3417         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3418         * modules/exclude-tests (Makefile.am): Likewise.
3419         * modules/fflush-tests (Makefile.am): Likewise.
3420         * modules/fpending-tests (Makefile.am): Likewise.
3421         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3422         * modules/freadahead-tests (Makefile.am): Likewise.
3423         * modules/freadptr-tests (Makefile.am): Likewise.
3424         * modules/freadseek-tests (Makefile.am): Likewise.
3425         * modules/fseek-tests (Makefile.am): Likewise.
3426         * modules/fseeko-tests (Makefile.am): Likewise.
3427         * modules/ftell-tests (Makefile.am): Likewise.
3428         * modules/ftello-tests (Makefile.am): Likewise.
3429         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3430         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3431         * modules/lseek-tests (Makefile.am): Likewise.
3432         * modules/parse-duration-tests (Makefile.am): Likewise.
3433         * modules/perror-tests (Makefile.am): Likewise.
3434         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3435         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3436         * modules/pipe-tests (Makefile.am): Likewise.
3437         * modules/pread-tests (Makefile.am): Likewise.
3438         * modules/printf-posix-tests (Makefile.am): Likewise.
3439         * modules/select-tests (Makefile.am): Likewise.
3440         * modules/sigpipe-tests (Makefile.am): Likewise.
3441         * modules/tsearch-tests (Makefile.am): Likewise.
3442         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3443         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3444         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3445         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3446         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3447         * modules/version-etc-tests (Makefile.am): Likewise.
3448         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3449         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3450         * modules/xalloc-die-tests (Makefile.am): Likewise.
3451         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3452         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3453         * modules/xstrtol-tests (Makefile.am): Likewise.
3454         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3455         * modules/yesno-tests (Makefile.am): Likewise.
3456         Suggested by Jim Meyering.
3457
3458 2010-01-24  Bruno Haible  <bruno@clisp.org>
3459
3460         More documentation.
3461         * doc/gnulib.texi (Writing modules): New chapter.
3462         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3463         the new chapter.
3464
3465 2010-01-24  Jim Meyering  <meyering@redhat.com>
3466
3467         maint.mk: do not prepend "./" after filtering
3468         * top/maint.mk (_prepend_srcdir_prefix): New variable
3469         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3470         "./" when $(srcdir) is ".".
3471
3472         define STREQ(a,b) consistently, removing useless parentheses
3473         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3474         since the only risk is that "a" or "b" contains an unparenthesized
3475         comma, but if either did that, STREQ would have 3 or more arguments.
3476         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3477         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3478         * lib/hash-triple.c (STREQ): Likewise.
3479         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3480         * lib/getugroups.c (STREQ): Likewise.
3481
3482 2010-01-23  Jim Meyering  <meyering@redhat.com>
3483
3484         maint.mk: fix syntax-check in a non-srcdir build directory
3485         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3486         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3487
3488 2010-01-22  Jim Meyering  <meyering@redhat.com>
3489
3490         userspec: add unit tests
3491         * tests/test-userspec.c: New file.
3492         * modules/userspec-tests: Likewise.
3493
3494 2010-01-21  Jim Meyering  <meyering@redhat.com>
3495
3496         maint.mk: handle source file names containing "." robustly
3497         * top/maint.mk (_dot_escaped_srcdir): Define.
3498         (VC_LIST): Use it in LHS of sed substitution.
3499
3500 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3501
3502         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3503         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3504         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3505         from a non-srcdir build.
3506
3507 2010-01-20  Eric Blake  <ebb9@byu.net>
3508
3509         warn-on-use: use instead of link-warning
3510         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3511         * modules/unistd (Depends-on, Makefile.am): Likewise.
3512         * modules/arpa_inet (Depends-on): Replace link-warning with
3513         warn-on-use.
3514         (Makefile.am): Update rules accordingly.
3515         * modules/ctype (Depends-on, Makefile.am): Likewise.
3516         * modules/dirent (Depends-on, Makefile.am): Likewise.
3517         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3518         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3519         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3520         * modules/locale (Depends-on, Makefile.am): Likewise.
3521         * modules/math (Depends-on, Makefile.am): Likewise.
3522         * modules/search (Depends-on, Makefile.am): Likewise.
3523         * modules/signal (Depends-on, Makefile.am): Likewise.
3524         * modules/spawn (Depends-on, Makefile.am): Likewise.
3525         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3526         * modules/string (Depends-on, Makefile.am): Likewise.
3527         * modules/strings (Depends-on, Makefile.am): Likewise.
3528         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3529         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3530         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3531         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3532         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3533         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3534         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3535         * modules/wchar (Depends-on, Makefile.am): Likewise.
3536         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3537         should be poisoned.
3538         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3539         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3540         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3541         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3542         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3543         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3544         * m4/math_h.m4 (gl_MATH_H): Likewise.
3545         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3546         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3547         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3548         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3549         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3550         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3551         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3552         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3553         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3554         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3555         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3557         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3559         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3560         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3561         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3562         GL_LINK_WARNING.
3563         * lib/ctype.in.h: Likewise.
3564         * lib/dirent.in.h: Likewise.
3565         * lib/fcntl.in.h: Likewise.
3566         * lib/inttypes.in.h: Likewise.
3567         * lib/langinfo.in.h: Likewise.
3568         * lib/locale.in.h: Likewise.
3569         * lib/math.in.h: Likewise.
3570         * lib/search.in.h: Likewise.
3571         * lib/signal.in.h: Likewise.
3572         * lib/spawn.in.h: Likewise.
3573         * lib/stdio.in.h: Likewise.
3574         * lib/stdlib.in.h: Likewise.
3575         * lib/string.in.h: Likewise.
3576         * lib/strings.in.h: Likewise.
3577         * lib/sys_file.in.h: Likewise.
3578         * lib/sys_ioctl.in.h: Likewise.
3579         * lib/sys_select.in.h: Likewise.
3580         * lib/sys_socket.in.h: Likewise.
3581         * lib/sys_stat.in.h: Likewise.
3582         * lib/sys_times.in.h: Likewise.
3583         * lib/sys_utsname.in.h: Likewise.
3584         * lib/unistd.in.h: Likewise.
3585         * lib/wchar.in.h: Likewise.
3586
3587 2010-01-20  Bruno Haible  <bruno@clisp.org>
3588
3589         Avoid duplicate -lm.
3590         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3591         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3593         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3594         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3595         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3596         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3597         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3598         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3599         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3600         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3601         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3602         Reported by Paolo Bonzini.
3603
3604 2010-01-19  Bruno Haible  <bruno@clisp.org>
3605
3606         langinfo, nl_langinfo: Relicense under LGPLv2+.
3607         * modules/langinfo (License): Change to LGPLv2+.
3608         * modules/nl_langinfo (License): Likewise.
3609         Patch by David Lutterkort <lutter@redhat.com>.
3610
3611 2010-01-19  Bruno Haible  <bruno@clisp.org>
3612
3613         Avoid compilation error with cc on OSF/1 5.1.
3614         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3615         statement, not before.
3616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3617
3618 2010-01-18  Bruno Haible  <bruno@clisp.org>
3619
3620         Avoid a link error due to the __printf__ symbol.
3621         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3622         and 2.6.x.
3623         (__format__, __printf__): Remove definitions.
3624         * lib/argp-fmtstream.h: Likewise.
3625         * lib/argp.h: Likewise.
3626         * lib/error.h: Likewise.
3627         * lib/vasnprintf.h: Likewise.
3628         * lib/xprintf.h: Likewise.
3629         * lib/xvasprintf.h: Likewise.
3630         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3631
3632 2010-01-18  Bruno Haible  <bruno@clisp.org>
3633
3634         Tests for module 'tanl'.
3635         * modules/tanl-tests: New file.
3636         * tests/test-tanl.c: New file.
3637
3638         Tests for module 'sqrtl'.
3639         * modules/sqrtl-tests: New file.
3640         * tests/test-sqrtl.c: New file.
3641
3642         Tests for module 'sinl'.
3643         * modules/sinl-tests: New file.
3644         * tests/test-sinl.c: New file.
3645
3646         Tests for module 'logl'.
3647         * modules/logl-tests: New file.
3648         * tests/test-logl.c: New file.
3649
3650         Tests for module 'expl'.
3651         * modules/expl-tests: New file.
3652         * tests/test-expl.c: New file.
3653
3654         Tests for module 'cosl'.
3655         * modules/cosl-tests: New file.
3656         * tests/test-cosl.c: New file.
3657
3658         Tests for module 'atanl'.
3659         * modules/atanl-tests: New file.
3660         * tests/test-atanl.c: New file.
3661
3662         Tests for module 'asinl'.
3663         * modules/asinl-tests: New file.
3664         * tests/test-asinl.c: New file.
3665
3666         Tests for module 'acosl'.
3667         * modules/acosl-tests: New file.
3668         * tests/test-acosl.c: New file.
3669
3670         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3671         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3672         tanl): Use the standard gnulib idiom.
3673         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3674         * lib/sinl.c: Likewise.
3675         * lib/tanl.c: Don't include trigl.c.
3676         (kernel_tanl): Make static.
3677         * lib/sincosl.c: Include trigl.h first.
3678         * lib/trigl.c: Likewise.
3679         * m4/acosl.m4: New file.
3680         * m4/asinl.m4: New file.
3681         * m4/atanl.m4: New file.
3682         * m4/cosl.m4: New file.
3683         * m4/expl.m4: New file.
3684         * m4/logl.m4: New file.
3685         * m4/sinl.m4: New file.
3686         * m4/sqrtl.m4: New file.
3687         * m4/tanl.m4: New file.
3688         * m4/mathl.m4: Remove file.
3689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3690         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3691         Don't initialize GNULIB_MATHL.
3692         * modules/acosl: New file.
3693         * modules/asinl: New file.
3694         * modules/atanl: New file.
3695         * modules/cosl: New file.
3696         * modules/expl: New file.
3697         * modules/logl: New file.
3698         * modules/sinl: New file.
3699         * modules/sqrtl: New file.
3700         * modules/tanl: New file.
3701         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3702         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3703         substitute GNULIB_MATHL.
3704         * modules/mathl: Rewritten.
3705         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3706         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3707         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3708         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3709         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3710         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3711         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3712         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3713         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3714
3715 2010-01-18  Bruno Haible  <bruno@clisp.org>
3716
3717         sqrt: Make gl_FUNC_SQRT requirable.
3718         * m4/sqrt.m4: New file.
3719         * modules/sqrt (Files): Add it.
3720         (configure.ac): Invoke gl_FUNC_SQRT.
3721
3722 2010-01-18  Bruno Haible  <bruno@clisp.org>
3723
3724         New modules for common <math.h> functions.
3725         * m4/mathfunc.m4: New file.
3726         * modules/acos: New file.
3727         * modules/asin: New file.
3728         * modules/atan: New file.
3729         * modules/atan2: New file.
3730         * modules/cbrt: New file.
3731         * modules/copysign: New file.
3732         * modules/cos: New file.
3733         * modules/cosh: New file.
3734         * modules/erf: New file.
3735         * modules/erfc: New file.
3736         * modules/exp: New file.
3737         * modules/fabs: New file.
3738         * modules/fmod: New file.
3739         * modules/hypot: New file.
3740         * modules/j0: New file.
3741         * modules/j1: New file.
3742         * modules/jn: New file.
3743         * modules/ldexp: New file.
3744         * modules/lgamma: New file.
3745         * modules/log: New file.
3746         * modules/log10: New file.
3747         * modules/log1p: New file.
3748         * modules/logb: New file.
3749         * modules/modf: New file.
3750         * modules/nextafter: New file.
3751         * modules/pow: New file.
3752         * modules/remainder: New file.
3753         * modules/rint: New file.
3754         * modules/sin: New file.
3755         * modules/sinh: New file.
3756         * modules/sqrt: New file.
3757         * modules/tan: New file.
3758         * modules/tanh: New file.
3759         * modules/y0: New file.
3760         * modules/y1: New file.
3761         * modules/yn: New file.
3762         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3763         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3764         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3765         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3766         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3767         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3768         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3769         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3770         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3771         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3772         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3773         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3774         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3775         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3776         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3777         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3778         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3779         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3780         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3781         * doc/posix-functions/log.texi: Mention the 'log' module.
3782         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3783         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3784         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3785         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3786         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3787         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3788         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3789         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3790         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3791         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3792         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3793         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3794         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3795         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3796         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3797         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3798
3799 2010-01-18  Jim Meyering  <meyering@redhat.com>
3800
3801         ignore-value: relax license to LGPLv2+
3802         * modules/ignore-value (License): Relax to LGPLv2+.
3803
3804         getdate: don't leak when TZ contains two or more '"'s
3805         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3806         double quote in TZ after the first one.
3807
3808         readtokens: do not leak internal token_lengths buffer
3809         * lib/readtokens.c (readtokens): Free the local, lengths,
3810         when the supplied "token_lengths" parameter is NULL.
3811
3812 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3813
3814         Fix a couple of missing LIBTHREAD link failures on AIX.
3815         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3816         $(LIBTHREAD).
3817         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3818
3819         Link test-poll against INET_PTON_LIB.
3820         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3821         for inet_pton on Solaris 10.
3822
3823 2010-01-17  Bruno Haible  <bruno@clisp.org>
3824
3825         unistdio/*-sprintf: Fix typo in module description.
3826         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3827         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3828         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3829         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3830         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3831         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3832         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3834
3835 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3836
3837         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3838         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3839         variables in shell case patterns, for AIX and HP-UX ksh.
3840
3841         Split large sed scripts, for HP-UX sed.
3842         * modules/stdio: Split sed scripts around 50 sed commands,
3843         to avoid HP-UX limit of 99 commands, in the near future.
3844         * modules/string: Likewise.
3845         * modules/unistd: Likewise.
3846
3847         gnulib-tool: avoid writing in the current directory.
3848         * gnulib-tool (func_emit_lib_Makefile_am)
3849         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3850         not in the current directory, so concurrent gnulib-tool
3851         instances do not interfere.
3852
3853 2010-01-16  Jim Meyering  <meyering@redhat.com>
3854
3855         doc: update users.txt
3856         * users.txt: Add grep.
3857         (diffutils, gzip): Update URLs.
3858
3859 2010-01-12  Bruno Haible  <bruno@clisp.org>
3860
3861         posix_spawn: Avoid test failure on Cygwin.
3862         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3863         characters.
3864         Reported by Simon Josefsson.
3865
3866 2010-01-12  Bruno Haible  <bruno@clisp.org>
3867
3868         * tests/test-cond.c (main): When skipping the test, show the reason.
3869
3870 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3871
3872         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3873
3874 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3875
3876         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3877         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3878
3879 2010-01-12  Eric Blake  <ebb9@byu.net>
3880
3881         build: guarantee AS_VAR_IF
3882         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3883         (gl_AS_VAR_IF): Move...
3884         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3885         Reported by Simon Josefsson.
3886
3887 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3888
3889         * lib/stdio.in.h: Fix typo.
3890
3891 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3892
3893         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3894         libgpg-error.
3895
3896 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3897
3898         * tests/test-xalloc-die.sh: Use $EXEEXT.
3899
3900 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3901             Bruno Haible  <bruno@clisp.org>
3902
3903         getlogin, getlogin_r: Avoid test failure.
3904         * tests/test-getlogin.c: Include <stdio.h>.
3905         (main): Skip the test when the function fails because stdin is not a
3906         tty.
3907         * tests/test-getlogin_r.c: Include <stdio.h>.
3908         (main): Skip the test when the function fails because stdin is not a
3909         tty.
3910
3911 2010-01-11  Eric Blake  <ebb9@byu.net>
3912
3913         tests: avoid more large file warnings
3914         * tests/test-fflush.c: Avoid warning about ftell use.
3915         * tests/test-fseek.c: Avoid warning about fseek use.
3916
3917 2010-01-10  Bruno Haible  <bruno@clisp.org>
3918
3919         nproc: Work better on Linux when /proc and /sys are not mounted.
3920         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3921         as lower bound when, on glibc/Linux systems,
3922         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3923         Suggested by Pádraig Brady <P@draigbrady.com>.
3924         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3925
3926         nproc: Refactor.
3927         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3928         extracted from num_processors.
3929         (num_processors): Call it.
3930
3931 2010-01-11  Jim Meyering  <meyering@redhat.com>
3932
3933         utimecmp: avoid new warning from upcoming gcc-4.5.0
3934         * lib/utimecmp.c (BILLION): Define using #define rather than an
3935         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3936
3937 2010-01-11  Eric Blake  <ebb9@byu.net>
3938
3939         math: add portability warnings for classification macros
3940         * modules/math (Depends-on): Add warn-on-use.
3941         (Makefile.am): Provide new substitutions.
3942         * m4/math_h.m4 (gl_MATH_H): Require inline.
3943         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3944         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3945         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3946         implement warnings.
3947
3948         unistd: warn on use of environ without module
3949         * modules/unistd (Depends-on): Add warn-on-use.
3950         (Makefile.am): Provide new substitutions.
3951         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3952         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3953
3954         stdio: warn on suspicious uses
3955         * modules/stdio (Depends-on): Add warn-on-use.
3956         (Makefile.am): Provide new substitutions.
3957         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3958         fseeko.
3959         * lib/stdio.in.h (gets): Always warn on use.
3960         (fseek, ftell): Adjust when warnings are issued, and honor
3961         _GL_NO_LARGE_FILES as a way to silence the warning.
3962         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3963         any warning about large file offsets.
3964         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3965         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3966         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3967         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3968         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3969         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3970         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3971         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3972
3973         warn-on-use: new module
3974         * modules/warn-on-use: New file.
3975         * build-aux/warn-on-use.h: Likewise.
3976         * m4/warn-on-use.m4: Likewise.
3977         * MODULES.html.sh (Support for building): Mention it.
3978
3979 2010-01-10  Bruno Haible  <bruno@clisp.org>
3980
3981         Tests for module 'unistr/u32-strdup'.
3982         * modules/unistr/u32-strdup-tests: New file.
3983         * tests/unistr/test-u32-strdup.c: New file.
3984
3985         Tests for module 'unistr/u16-strdup'.
3986         * modules/unistr/u16-strdup-tests: New file.
3987         * tests/unistr/test-u16-strdup.c: New file.
3988
3989         Tests for module 'unistr/u8-strdup'.
3990         * modules/unistr/u8-strdup-tests: New file.
3991         * tests/unistr/test-u8-strdup.c: New file.
3992         * tests/unistr/test-strdup.h: New file.
3993
3994         Tests for module 'unistr/u32-strncmp'.
3995         * modules/unistr/u32-strncmp-tests: New file.
3996         * tests/unistr/test-u32-strncmp.c: New file.
3997
3998         Tests for module 'unistr/u16-strncmp'.
3999         * modules/unistr/u16-strncmp-tests: New file.
4000         * tests/unistr/test-u16-strncmp.c: New file.
4001
4002         Tests for module 'unistr/u8-strncmp'.
4003         * modules/unistr/u8-strncmp-tests: New file.
4004         * tests/unistr/test-u8-strncmp.c: New file.
4005         * tests/unistr/test-strncmp.h: New file.
4006
4007         Tests for module 'unistr/u32-strcoll'.
4008         * modules/unistr/u32-strcoll-tests: New file.
4009         * tests/unistr/test-u32-strcoll.c: New file.
4010
4011         Tests for module 'unistr/u16-strcoll'.
4012         * modules/unistr/u16-strcoll-tests: New file.
4013         * tests/unistr/test-u16-strcoll.c: New file.
4014
4015         Tests for module 'unistr/u8-strcoll'.
4016         * modules/unistr/u8-strcoll-tests: New file.
4017         * tests/unistr/test-u8-strcoll.c: New file.
4018
4019         Tests for module 'unistr/u32-strcmp'.
4020         * modules/unistr/u32-strcmp-tests: New file.
4021         * tests/unistr/test-u32-strcmp.c: New file.
4022         * tests/unistr/test-u32-strcmp.h: New file.
4023
4024         Tests for module 'unistr/u16-strcmp'.
4025         * modules/unistr/u16-strcmp-tests: New file.
4026         * tests/unistr/test-u16-strcmp.c: New file.
4027         * tests/unistr/test-u16-strcmp.h: New file.
4028
4029         Tests for module 'unistr/u8-strcmp'.
4030         * modules/unistr/u8-strcmp-tests: New file.
4031         * tests/unistr/test-u8-strcmp.c: New file.
4032         * tests/unistr/test-u8-strcmp.h: New file.
4033         * tests/unistr/test-strcmp.h: New file.
4034
4035         Tests for module 'unistr/u32-strncat'.
4036         * modules/unistr/u32-strncat-tests: New file.
4037         * tests/unistr/test-u32-strncat.c: New file.
4038
4039         Tests for module 'unistr/u16-strncat'.
4040         * modules/unistr/u16-strncat-tests: New file.
4041         * tests/unistr/test-u16-strncat.c: New file.
4042
4043         Tests for module 'unistr/u8-strncat'.
4044         * modules/unistr/u8-strncat-tests: New file.
4045         * tests/unistr/test-u8-strncat.c: New file.
4046         * tests/unistr/test-strncat.h: New file.
4047
4048         Tests for module 'unistr/u32-strcat'.
4049         * modules/unistr/u32-strcat-tests: New file.
4050         * tests/unistr/test-u32-strcat.c: New file.
4051
4052         Tests for module 'unistr/u16-strcat'.
4053         * modules/unistr/u16-strcat-tests: New file.
4054         * tests/unistr/test-u16-strcat.c: New file.
4055
4056         Tests for module 'unistr/u8-strcat'.
4057         * modules/unistr/u8-strcat-tests: New file.
4058         * tests/unistr/test-u8-strcat.c: New file.
4059         * tests/unistr/test-strcat.h: New file.
4060
4061         Tests for module 'unistr/u32-stpncpy'.
4062         * modules/unistr/u32-stpncpy-tests: New file.
4063         * tests/unistr/test-u32-stpncpy.c: New file.
4064
4065         Tests for module 'unistr/u16-stpncpy'.
4066         * modules/unistr/u16-stpncpy-tests: New file.
4067         * tests/unistr/test-u16-stpncpy.c: New file.
4068
4069         Tests for module 'unistr/u8-stpncpy'.
4070         * modules/unistr/u8-stpncpy-tests: New file.
4071         * tests/unistr/test-u8-stpncpy.c: New file.
4072         * tests/unistr/test-stpncpy.h: New file.
4073
4074         Tests for module 'unistr/u32-strncpy'.
4075         * modules/unistr/u32-strncpy-tests: New file.
4076         * tests/unistr/test-u32-strncpy.c: New file.
4077
4078         Tests for module 'unistr/u16-strncpy'.
4079         * modules/unistr/u16-strncpy-tests: New file.
4080         * tests/unistr/test-u16-strncpy.c: New file.
4081
4082         Tests for module 'unistr/u8-strncpy'.
4083         * modules/unistr/u8-strncpy-tests: New file.
4084         * tests/unistr/test-u8-strncpy.c: New file.
4085         * tests/unistr/test-strncpy.h: New file.
4086
4087         Tests for module 'unistr/u32-stpcpy'.
4088         * modules/unistr/u32-stpcpy-tests: New file.
4089         * tests/unistr/test-u32-stpcpy.c: New file.
4090
4091         Tests for module 'unistr/u16-stpcpy'.
4092         * modules/unistr/u16-stpcpy-tests: New file.
4093         * tests/unistr/test-u16-stpcpy.c: New file.
4094
4095         Tests for module 'unistr/u8-stpcpy'.
4096         * modules/unistr/u8-stpcpy-tests: New file.
4097         * tests/unistr/test-u8-stpcpy.c: New file.
4098         * tests/unistr/test-stpcpy.h: New file.
4099
4100         Tests for module 'unistr/u32-strcpy'.
4101         * modules/unistr/u32-strcpy-tests: New file.
4102         * tests/unistr/test-u32-strcpy.c: New file.
4103
4104         Tests for module 'unistr/u16-strcpy'.
4105         * modules/unistr/u16-strcpy-tests: New file.
4106         * tests/unistr/test-u16-strcpy.c: New file.
4107
4108         Tests for module 'unistr/u8-strcpy'.
4109         * modules/unistr/u8-strcpy-tests: New file.
4110         * tests/unistr/test-u8-strcpy.c: New file.
4111         * tests/unistr/test-strcpy.h: New file.
4112
4113         Tests for module 'unistr/u32-strnlen'.
4114         * modules/unistr/u32-strnlen-tests: New file.
4115         * tests/unistr/test-u32-strnlen.c: New file.
4116
4117         Tests for module 'unistr/u16-strnlen'.
4118         * modules/unistr/u16-strnlen-tests: New file.
4119         * tests/unistr/test-u16-strnlen.c: New file.
4120
4121         Tests for module 'unistr/u8-strnlen'.
4122         * modules/unistr/u8-strnlen-tests: New file.
4123         * tests/unistr/test-u8-strnlen.c: New file.
4124         * tests/unistr/test-strnlen.h: New file.
4125
4126         Tests for module 'unistr/u32-strlen'.
4127         * modules/unistr/u32-strlen-tests: New file.
4128         * tests/unistr/test-u32-strlen.c: New file.
4129
4130         Tests for module 'unistr/u16-strlen'.
4131         * modules/unistr/u16-strlen-tests: New file.
4132         * tests/unistr/test-u16-strlen.c: New file.
4133
4134         Tests for module 'unistr/u8-strlen'.
4135         * modules/unistr/u8-strlen-tests: New file.
4136         * tests/unistr/test-u8-strlen.c: New file.
4137
4138         Tests for module 'unistr/u32-prev'.
4139         * modules/unistr/u32-prev-tests: New file.
4140         * tests/unistr/test-u32-prev.c: New file.
4141
4142         Tests for module 'unistr/u16-prev'.
4143         * modules/unistr/u16-prev-tests: New file.
4144         * tests/unistr/test-u16-prev.c: New file.
4145
4146         Tests for module 'unistr/u8-prev'.
4147         * modules/unistr/u8-prev-tests: New file.
4148         * tests/unistr/test-u8-prev.c: New file.
4149
4150         Tests for module 'unistr/u32-next'.
4151         * modules/unistr/u32-next-tests: New file.
4152         * tests/unistr/test-u32-next.c: New file.
4153
4154         Tests for module 'unistr/u16-next'.
4155         * modules/unistr/u16-next-tests: New file.
4156         * tests/unistr/test-u16-next.c: New file.
4157
4158         Tests for module 'unistr/u8-next'.
4159         * modules/unistr/u8-next-tests: New file.
4160         * tests/unistr/test-u8-next.c: New file.
4161
4162         Tests for module 'unistr/u32-strmbtouc'.
4163         * modules/unistr/u32-strmbtouc-tests: New file.
4164         * tests/unistr/test-u32-strmbtouc.c: New file.
4165
4166         Tests for module 'unistr/u16-strmbtouc'.
4167         * modules/unistr/u16-strmbtouc-tests: New file.
4168         * tests/unistr/test-u16-strmbtouc.c: New file.
4169
4170         Tests for module 'unistr/u8-strmbtouc'.
4171         * modules/unistr/u8-strmbtouc-tests: New file.
4172         * tests/unistr/test-u8-strmbtouc.c: New file.
4173
4174         Tests for module 'unistr/u32-strmblen'.
4175         * modules/unistr/u32-strmblen-tests: New file.
4176         * tests/unistr/test-u32-strmblen.c: New file.
4177
4178         Tests for module 'unistr/u16-strmblen'.
4179         * modules/unistr/u16-strmblen-tests: New file.
4180         * tests/unistr/test-u16-strmblen.c: New file.
4181
4182         Tests for module 'unistr/u8-strmblen'.
4183         * modules/unistr/u8-strmblen-tests: New file.
4184         * tests/unistr/test-u8-strmblen.c: New file.
4185
4186         Tests for module 'unistr/u32-cpy-alloc'.
4187         * modules/unistr/u32-cpy-alloc-tests: New file.
4188         * tests/unistr/test-u32-cpy-alloc.c: New file.
4189
4190         Tests for module 'unistr/u16-cpy-alloc'.
4191         * modules/unistr/u16-cpy-alloc-tests: New file.
4192         * tests/unistr/test-u16-cpy-alloc.c: New file.
4193
4194         Tests for module 'unistr/u8-cpy-alloc'.
4195         * modules/unistr/u8-cpy-alloc-tests: New file.
4196         * tests/unistr/test-u8-cpy-alloc.c: New file.
4197         * tests/unistr/test-cpy-alloc.h: New file.
4198
4199         Tests for module 'unistr/u32-mbsnlen'.
4200         * modules/unistr/u32-mbsnlen-tests: New file.
4201         * tests/unistr/test-u32-mbsnlen.c: New file.
4202
4203         Tests for module 'unistr/u16-mbsnlen'.
4204         * modules/unistr/u16-mbsnlen-tests: New file.
4205         * tests/unistr/test-u16-mbsnlen.c: New file.
4206
4207         Tests for module 'unistr/u8-mbsnlen'.
4208         * modules/unistr/u8-mbsnlen-tests: New file.
4209         * tests/unistr/test-u8-mbsnlen.c: New file.
4210
4211         Tests for module 'unistr/u32-chr'.
4212         * modules/unistr/u32-chr-tests: New file.
4213         * tests/unistr/test-u32-chr.c: New file.
4214
4215         Tests for module 'unistr/u16-chr'.
4216         * modules/unistr/u16-chr-tests: New file.
4217         * tests/unistr/test-u16-chr.c: New file.
4218
4219         Tests for module 'unistr/u8-chr'.
4220         * modules/unistr/u8-chr-tests: New file.
4221         * tests/unistr/test-u8-chr.c: New file.
4222         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4223
4224         Tests for module 'unistr/u32-cmp2'.
4225         * modules/unistr/u32-cmp2-tests: New file.
4226         * tests/unistr/test-u32-cmp2.c: New file.
4227
4228         Tests for module 'unistr/u16-cmp2'.
4229         * modules/unistr/u16-cmp2-tests: New file.
4230         * tests/unistr/test-u16-cmp2.c: New file.
4231
4232         Tests for module 'unistr/u8-cmp2'.
4233         * modules/unistr/u8-cmp2-tests: New file.
4234         * tests/unistr/test-u8-cmp2.c: New file.
4235         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4236
4237         Tests for module 'unistr/u32-cmp'.
4238         * modules/unistr/u32-cmp-tests: New file.
4239         * tests/unistr/test-u32-cmp.c: New file.
4240
4241         Tests for module 'unistr/u16-cmp'.
4242         * modules/unistr/u16-cmp-tests: New file.
4243         * tests/unistr/test-u16-cmp.c: New file.
4244
4245         Tests for module 'unistr/u8-cmp'.
4246         * modules/unistr/u8-cmp-tests: New file.
4247         * tests/unistr/test-u8-cmp.c: New file.
4248         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4249
4250         Tests for module 'unistr/u32-set'.
4251         * modules/unistr/u32-set-tests: New file.
4252         * tests/unistr/test-u32-set.c: New file.
4253
4254         Tests for module 'unistr/u16-set'.
4255         * modules/unistr/u16-set-tests: New file.
4256         * tests/unistr/test-u16-set.c: New file.
4257
4258         Tests for module 'unistr/u8-set'.
4259         * modules/unistr/u8-set-tests: New file.
4260         * tests/unistr/test-u8-set.c: New file.
4261         * tests/unistr/test-set.h: New file.
4262
4263         Tests for module 'unistr/u32-move'.
4264         * modules/unistr/u32-move-tests: New file.
4265         * tests/unistr/test-u32-move.c: New file.
4266
4267         Tests for module 'unistr/u16-move'.
4268         * modules/unistr/u16-move-tests: New file.
4269         * tests/unistr/test-u16-move.c: New file.
4270
4271         Tests for module 'unistr/u8-move'.
4272         * modules/unistr/u8-move-tests: New file.
4273         * tests/unistr/test-u8-move.c: New file.
4274         * tests/unistr/test-move.h: New file.
4275
4276         Tests for module 'unistr/u32-cpy'.
4277         * modules/unistr/u32-cpy-tests: New file.
4278         * tests/unistr/test-u32-cpy.c: New file.
4279
4280         Tests for module 'unistr/u16-cpy'.
4281         * modules/unistr/u16-cpy-tests: New file.
4282         * tests/unistr/test-u16-cpy.c: New file.
4283
4284         Tests for module 'unistr/u8-cpy'.
4285         * modules/unistr/u8-cpy-tests: New file.
4286         * tests/unistr/test-u8-cpy.c: New file.
4287         * tests/unistr/test-cpy.h: New file.
4288
4289 2010-01-09  Bruno Haible  <bruno@clisp.org>
4290
4291         Tests for module 'unistr/u32-uctomb'.
4292         * modules/unistr/u32-uctomb-tests: New file.
4293         * tests/unistr/test-u32-uctomb.c: New file.
4294
4295         Tests for module 'unistr/u16-uctomb'.
4296         * modules/unistr/u16-uctomb-tests: New file.
4297         * tests/unistr/test-u16-uctomb.c: New file.
4298
4299         Tests for module 'unistr/u8-uctomb'.
4300         * modules/unistr/u8-uctomb-tests: New file.
4301         * tests/unistr/test-u8-uctomb.c: New file.
4302
4303         Tests for module 'unistr/u32-mbtoucr'.
4304         * modules/unistr/u32-mbtoucr-tests: New file.
4305         * tests/unistr/test-u32-mbtoucr.c: New file.
4306
4307         Tests for module 'unistr/u16-mbtoucr'.
4308         * modules/unistr/u16-mbtoucr-tests: New file.
4309         * tests/unistr/test-u16-mbtoucr.c: New file.
4310
4311         Tests for module 'unistr/u8-mbtoucr'.
4312         * modules/unistr/u8-mbtoucr-tests: New file.
4313         * tests/unistr/test-u8-mbtoucr.c: New file.
4314
4315         Tests for module 'unistr/u32-mbtouc'.
4316         * modules/unistr/u32-mbtouc-tests: New file.
4317         * tests/unistr/test-u32-mbtouc.c: New file.
4318
4319         Tests for module 'unistr/u16-mbtouc'.
4320         * modules/unistr/u16-mbtouc-tests: New file.
4321         * tests/unistr/test-u16-mbtouc.c: New file.
4322
4323         Tests for module 'unistr/u8-mbtouc'.
4324         * modules/unistr/u8-mbtouc-tests: New file.
4325         * tests/unistr/test-u8-mbtouc.c: New file.
4326
4327         Tests for module 'unistr/u32-mbtouc-unsafe'.
4328         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4329         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4330         * tests/unistr/test-u32-mbtouc.h: New file.
4331
4332         Tests for module 'unistr/u16-mbtouc-unsafe'.
4333         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4334         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4335         * tests/unistr/test-u16-mbtouc.h: New file.
4336
4337         Tests for module 'unistr/u8-mbtouc-unsafe'.
4338         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4339         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4340         * tests/unistr/test-u8-mbtouc.h: New file.
4341
4342         Tests for module 'unistr/u32-mblen'.
4343         * modules/unistr/u32-mblen-tests: New file.
4344         * tests/unistr/test-u32-mblen.c: New file.
4345
4346         Tests for module 'unistr/u16-mblen'.
4347         * modules/unistr/u16-mblen-tests: New file.
4348         * tests/unistr/test-u16-mblen.c: New file.
4349
4350         Tests for module 'unistr/u8-mblen'.
4351         * modules/unistr/u8-mblen-tests: New file.
4352         * tests/unistr/test-u8-mblen.c: New file.
4353
4354         Tests for module 'unistr/u32-to-u16'.
4355         * modules/unistr/u32-to-u16-tests: New file.
4356         * tests/unistr/test-u32-to-u16.c: New file.
4357
4358         Tests for module 'unistr/u32-to-u8'.
4359         * modules/unistr/u32-to-u8-tests: New file.
4360         * tests/unistr/test-u32-to-u8.c: New file.
4361
4362         Tests for module 'unistr/u16-to-u32'.
4363         * modules/unistr/u16-to-u32-tests: New file.
4364         * tests/unistr/test-u16-to-u32.c: New file.
4365
4366         Tests for module 'unistr/u16-to-u8'.
4367         * modules/unistr/u16-to-u8-tests: New file.
4368         * tests/unistr/test-u16-to-u8.c: New file.
4369
4370         Tests for module 'unistr/u8-to-u32'.
4371         * modules/unistr/u8-to-u32-tests: New file.
4372         * tests/unistr/test-u8-to-u32.c: New file.
4373
4374         Tests for module 'unistr/u8-to-u16'.
4375         * modules/unistr/u8-to-u16-tests: New file.
4376         * tests/unistr/test-u8-to-u16.c: New file.
4377
4378         Tests for module 'unistr/u32-check'.
4379         * modules/unistr/u32-check-tests: New file.
4380         * tests/unistr/test-u32-check.c: New file.
4381
4382         Tests for module 'unistr/u16-check'.
4383         * modules/unistr/u16-check-tests: New file.
4384         * tests/unistr/test-u16-check.c: New file.
4385
4386         Tests for module 'unistr/u8-check'.
4387         * modules/unistr/u8-check-tests: New file.
4388         * tests/unistr/test-u8-check.c: New file.
4389
4390         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4391         (category_equals): New function.
4392         (main): Add more tests.
4393         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4394
4395         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4396
4397 2010-01-10  Bruno Haible  <bruno@clisp.org>
4398
4399         unistr/u*-strcoll: Try harder to distinguish different strings.
4400         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4401         compare s1 and s2 to see if they are different.
4402
4403 2010-01-10  Bruno Haible  <bruno@clisp.org>
4404
4405         unistr/u*-stpncpy: Fix the return value.
4406         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4407         description of the return value consistent with stpncpy in glibc.
4408         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4409         written non-NUL unit.
4410
4411 2010-01-10  Bruno Haible  <bruno@clisp.org>
4412
4413         unistr/u*-next: Add missing dependencies.
4414         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4415         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4416         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4417
4418 2010-01-10  Bruno Haible  <bruno@clisp.org>
4419
4420         unistr/u8-mbsnlen: Fix return value for incomplete character.
4421         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4422         u8_mblen.
4423         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4424         Remove unistr/u8-mblen.
4425         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4426         u16_mblen.
4427         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4428         Remove unistr/u16-mblen.
4429
4430 2010-01-10  Bruno Haible  <bruno@clisp.org>
4431
4432         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4433         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4434         Reported by Brian Gough <bjg@gnu.org> and
4435         Chris Clayton <chris2553@googlemail.com> via
4436         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4437
4438 2010-01-09  Bruno Haible  <bruno@clisp.org>
4439
4440         unistr/u16-to-u32: Reject invalid input.
4441         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4442         u16_mbtouc.
4443         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4444         Remove unistr/u16-mbtouc.
4445
4446         unistr/u16-to-u8: Reject invalid input.
4447         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4448         u16_mbtouc.
4449         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4450         Remove unistr/u16-mbtouc.
4451
4452         unistr/u8-to-u32: Reject invalid input.
4453         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4454         u8_mbtouc.
4455         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4456         Remove unistr/u8-mbtouc.
4457
4458         unistr/u8-to-u16: Reject invalid input.
4459         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4460         u8_mbtouc.
4461         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4462         Remove unistr/u8-mbtouc.
4463
4464 2010-01-09  Bruno Haible  <bruno@clisp.org>
4465
4466         Tests for module 'getlogin'.
4467         * modules/getlogin-tests: New file.
4468         * tests/test-getlogin.c: New file.
4469
4470         New module 'getlogin'.
4471         * lib/unistd.in.h (getlogin): New declaration.
4472         * lib/getlogin.c: New file.
4473         * m4/getlogin.m4: New file.
4474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4475         HAVE_GETLOGIN.
4476         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4477         HAVE_GETLOGIN.
4478         * modules/getlogin: New file.
4479         * doc/posix-functions/getlogin.texi: Mention the new module.
4480         Reported by John W. Eaton <jwe@gnu.org>.
4481
4482 2010-01-09  Bruno Haible  <bruno@clisp.org>
4483
4484         getlogin_r: Support for native Windows.
4485         * lib/getlogin_r.c: Include <windows.h>
4486         (getlogin_r): Implement for native Windows.
4487         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4488         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4489         via John W. Eaton <jwe@gnu.org>.
4490
4491 2010-01-09  Bruno Haible  <bruno@clisp.org>
4492
4493         getlogin_r: Small fixes.
4494         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4495         succeeds.
4496         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4497         before testing whether getlogin_r is declared. No need to set
4498         HAVE_DECL_GETLOGIN_R to 1.
4499         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4500
4501 2010-01-09  Bruno Haible  <bruno@clisp.org>
4502
4503         * lib/unistd.in.h (getlogin_r): Add comment.
4504
4505 2010-01-09  Bruno Haible  <bruno@clisp.org>
4506
4507         Tests for module 'getlogin_r'.
4508         * modules/getlogin_r-tests: New file.
4509         * tests/test-getlogin_r.c: New file.
4510
4511 2010-01-09  Jim Meyering  <meyering@redhat.com>
4512
4513         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4514         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4515         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4516
4517 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4518
4519         * lib/dup2.c (rpl_dup2): Improve comment.
4520
4521 2010-01-08  Eric Blake  <ebb9@byu.net>
4522
4523         maint.mk: allow packages to add makefile @@ exceptions
4524         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4525         (sc_makefile_check): Rename...
4526         (sc_makefile_at_at_check): ...to this, and use hook.
4527
4528         dup2: work around mingw bug
4529         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4530         Reported by Simon Josefsson.
4531
4532 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4533
4534         glob: Fix C++ compilation.
4535         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4536         C++.
4537
4538 2010-01-07  Bruno Haible  <bruno@clisp.org>
4539
4540         Fix indentation of wctype.in.h, broken since 2007-01-06.
4541         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4542
4543 2010-01-07  Bruno Haible  <bruno@clisp.org>
4544
4545         mbslen: Avoid collision with system function.
4546         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4547         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4548         * m4/mbslen.m4: New file.
4549         * modules/mbslen (Files): Add it.
4550         (configure.ac): Invoke gl_MBSLEN.
4551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4552         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4553         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4554         via Ian Beckwith <ianb@erislabs.net>.
4555
4556 2010-01-07  Bruno Haible  <bruno@clisp.org>
4557
4558         dirent: Document the last fix.
4559         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4560
4561 2010-01-07  Bruno Haible  <bruno@clisp.org>
4562
4563         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4564         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4565         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4566         va_list are defined.
4567         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4568         Reported by Eric Blake.
4569
4570 2010-01-07  Bruno Haible  <bruno@clisp.org>
4571
4572         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4573         * modules/xlist (Depends-on): Add 'list',
4574         * modules/xoset (Depends-on): Add 'oset'.
4575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4576
4577 2010-01-07  Bruno Haible  <bruno@clisp.org>
4578
4579         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4580         * doc/posix-functions/strncasecmp.texi: Likewise.
4581
4582 2010-01-07  Bruno Haible  <bruno@clisp.org>
4583
4584         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4585
4586 2010-01-07  John W. Eaton  <jwe@octave.org>
4587
4588         wctype: allow C++ use
4589         * lib/wctype.in.h: Add extern "C" block for C++.
4590
4591 2010-01-06  Eric Blake  <ebb9@byu.net>
4592
4593         maint.mk: detect incorrect GFDL usage
4594         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4595
4596 2010-01-06  Jim Meyering  <meyering@redhat.com>
4597         and Eric Blake  <ebb9@byu.net>
4598
4599         maint.mk: ignore multi-line copyright in NEWS
4600         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4601
4602 2010-01-06  Eric Blake  <ebb9@byu.net>
4603
4604         select: add missing dependency
4605         * modules/select-tests (Depends-on): Move sockets dependency...
4606         * modules/select (Depends-on): ...here.
4607         Reported by Ian Beckwith.
4608
4609         doc: regenerate INSTALL
4610         * doc/INSTALL: Reflect recent autoconf update.
4611         * doc/INSTALL.ISO: Likewise.
4612         * doc/INSTALL.UTF-8: Likewise.
4613
4614         pread: fix compilation on glibc
4615         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4616         Reported by Ralf Wildenhues.
4617
4618         dirent: fix test failure
4619         * lib/dirent.in.h (includes): Guarantee ino_t.
4620         Reported by Ralf Wildenhues.
4621
4622 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4623
4624         linkat, renameat: avoid bad free
4625         * lib/at-func2.c (at_func2): Fix typo.
4626         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4627
4628 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4629
4630         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4631         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4632         to avoid failure of symlink test later.
4633
4634 2010-01-06  Eric Blake  <ebb9@byu.net>
4635
4636         stdio, unistd: guarantee ssize_t
4637         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4638         2008 are exposed when needed.
4639         * lib/stdio.in.h (includes): Likewise.
4640         Reported by Ralf Wildenhues.
4641
4642 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4643
4644         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4645         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4646         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4647
4648 2010-01-06  Jim Meyering  <meyering@redhat.com>
4649
4650         readtokens: this module *does* require xalloc.h
4651         It uses only functions that were omitted by the old syntax-check rule.
4652         * lib/readtokens.c: Include "xalloc.h" once again.
4653         * modules/readtokens (Depends-on): Add xalloc.
4654         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4655
4656 2010-01-05  Eric Blake  <ebb9@byu.net>
4657
4658         maint: support 'make announcement' from a VPATH build
4659         * top/maint.mk (announcement): Look for correct NEWS file.
4660
4661 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4662
4663         utimens (fdutimens): ignore a negative FD, per contract
4664         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4665         when we have a valid file descriptor.  Otherwise, using a brand
4666         new glibc (with just-patched futimens that now fails with EBADF)
4667         would cause this function to fail with ENOSYS.
4668         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4669         See also http://bugzilla.redhat.com/552320.
4670
4671 2010-01-05  Eric Blake  <ebb9@byu.net>
4672
4673         strcase: document what it provides
4674         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4675         gnulib module.
4676         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4677         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4678
4679 2010-01-05  Jim Meyering  <meyering@redhat.com>
4680
4681         maint: remove useless inclusions of "xalloc.h"
4682         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4683         * lib/readtokens.c: Likewise.
4684         * lib/same.c: Likewise.
4685         * modules/getloadavg (Depends-on): Remove xalloc.
4686         * modules/readtokens: Likewise.
4687         * modules/same: Likewise.
4688
4689         maint.mk: include 4 more function names in alloca.h-checking regexp
4690         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4691         regexp.  Before, we would give a false-positive (saying alloca.h
4692         is included unnecessarily) when the only uses involved omitted symbols.
4693
4694         xalloc.h: use consistent formatting
4695         * lib/xalloc.h: Move declarations to start in the first column.
4696
4697 2010-01-05  Eric Blake  <ebb9@byu.net>
4698
4699         mkdir: avoid xalloc
4700         * lib/mkdir.c (includes): Drop unused header.
4701         Reported by John W. Eaton.
4702
4703 2010-01-04  Jim Meyering  <meyering@redhat.com>
4704
4705         nl_langinfo: avoid configure-time syntax error
4706         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4707         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4708         the empty string.  Don't let that provoke a shell syntax error.
4709
4710         regcomp, regexec, fnmatch: avoid array bounds read error
4711         * lib/regcomp.c (build_equiv_class): From glibc:
4712         Use only the low 24 bits of a findidx return value as an index
4713         into the weights array.  Patch by Ulrich Drepper:
4714         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4715         * lib/regexec.c (check_node_accept_bytes): Likewise.
4716         * lib/fnmatch_loop.c (FCT): Likewise.
4717
4718         regcomp: skip collseq lookup when there are no rules
4719         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4720         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4721
4722         regcomp: recognize ill-formed { } expressions
4723         * lib/regcomp.c (parse_dup_op): From glibc:
4724         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4725
4726         regcomp: fix typo in comment
4727         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4728         s/satisfy/satisfies/.
4729
4730         regcomp: sync from glibc: remove dead store
4731         * lib/regcomp.c (duplicate_node_closure): Remove useless
4732         search_duplicated_node call and dead store.
4733
4734         regcomp: sync from glibc; always use nl_langinfo
4735         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4736         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4737         * modules/regex (Depends-on): Add nl_langinfo.
4738
4739 2010-01-04  Eric Blake  <ebb9@byu.net>
4740
4741         fdopendir: fix configure test
4742         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4743
4744 2010-01-01  Bruno Haible  <bruno@clisp.org>
4745
4746         wchar: Remove unused configure check.
4747         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4748
4749 2010-01-01  Eric Blake  <ebb9@byu.net>
4750
4751         headers: make check of system header explicit
4752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4753         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4754         ourselves.
4755         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4757         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4758         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4759         internals.
4760         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4761         missing.
4762         Suggested by Bruno Haible.
4763
4764 2010-01-01  Jim Meyering  <meyering@redhat.com>
4765
4766         ChangeLog: tweak to eliminate unnecessary copyright line
4767         * ChangeLog: Remove a copyright line that was mistakenly updated
4768         by today's update-copyright run.  Reported by Eric Blake.
4769
4770         test-update-copyright: don't let envvar setting cause test failure
4771         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4772
4773 2010-01-01  Bruno Haible  <bruno@clisp.org>
4774
4775         localename: Avoid gcc warning.
4776         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4777         function if it is not used.
4778
4779 2010-01-01  Jim Meyering  <meyering@redhat.com>
4780
4781         update nearly all FSF copyright year lists to include 2010
4782         Use the same procedure as for 2009, outlined in
4783         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4784
4785         version-etc: set COPYRIGHT_YEAR to 2010
4786         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4787
4788 2009-12-31  Eric Blake  <ebb9@byu.net>
4789
4790         doc: correct availability of cygwin 1.5.x getopt
4791         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4792         variables.
4793         * doc/posix-functions/opterr.texi (opterr): Likewise.
4794         * doc/posix-functions/optind.texi (optind): Likewise.
4795         * doc/posix-functions/optopt.texi (optopt): Likewise.
4796         * doc/posix-functions/tzname.texi (tzname): Likewise.
4797
4798         openat: update maintainer
4799         * modules/openat (Maintainer): Add myself.
4800
4801         utimens: avoid shadowing warning
4802         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4803         buffers into one, to avoid shadowing, as well as avoiding a
4804         redundant stat.
4805         Reported by Jim Meyering.
4806
4807         test-dup2: avoid compiler warning
4808         * tests/test-dup2.c (is_inheritable): Only define if used.
4809
4810 2010-01-01  Bruno Haible  <bruno@clisp.org>
4811
4812         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4813         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4814         defined, use wctomb instead of wcrtomb.
4815
4816 2010-01-01  Bruno Haible  <bruno@clisp.org>
4817
4818         iconv: Reject native Solaris iconv.
4819         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4820         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4821
4822 2009-12-31  Bruno Haible  <bruno@clisp.org>
4823
4824         * tests/test-signal.c (main): Remove test of 'SIG'.
4825
4826 2009-12-31  Bruno Haible  <bruno@clisp.org>
4827
4828         spawn: Fix incomplete fix.
4829         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4830         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4831         warnings for GNULIB_POSIXCHECK again.
4832         Reported by Eric Blake.
4833
4834 2009-12-31  Bruno Haible  <bruno@clisp.org>
4835
4836         Avoid namespace pollution on glibc systems.
4837         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4838         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4839         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4840         glibc systems.
4841
4842 2009-12-31  Bruno Haible  <bruno@clisp.org>
4843
4844         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4845         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4846         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4847         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4848         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4849         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4850         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4851
4852 2009-12-31  Bruno Haible  <bruno@clisp.org>
4853
4854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4855         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4856         afterwards.
4857
4858 2009-12-31  Bruno Haible  <bruno@clisp.org>
4859
4860         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4861         SYS_UTSNAME_H.
4862
4863 2009-12-31  Bruno Haible  <bruno@clisp.org>
4864
4865         spawn: Fix misapplied patch.
4866         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4867         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4868         warnings for GNULIB_POSIXCHECK.
4869
4870 2009-12-31  Bruno Haible  <bruno@clisp.org>
4871
4872         times: Update after sys_times changed.
4873         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4874         * modules/times (Files): Add it.
4875         (configure.ac): Invoke gl_FUNC_TIMES.
4876
4877 2009-12-31  Bruno Haible  <bruno@clisp.org>
4878
4879         Use AC_C_INLINE where necessary.
4880         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4881         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4882         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4883         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4884         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4885         * m4/mbiter.m4 (gl_MBITER): Likewise.
4886         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4887         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4888         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4889         * modules/u64 (configure.ac): Likewise.
4890
4891 2009-12-31  Bruno Haible  <bruno@clisp.org>
4892
4893         Use AC_C_INLINE instead of module 'inline' where possible.
4894         * modules/inline (Description): Clarify purpose.
4895         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4896         * modules/count-one-bits (Depends-on): Remove inline.
4897         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4898         * modules/openat (Depends-on): Remove inline.
4899         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4900         instead of depending on module 'inline'.
4901         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4902         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4903         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4904         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4905         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4906         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4907         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4908         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4909         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4910         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4911         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4912         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4913         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4914         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4915         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4916         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4917         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4918         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4919         Likewise.
4920         * modules/unictype/property-ascii-hex-digit (Depends-on,
4921         configure.ac): Likewise.
4922         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4923         configure.ac): Likewise.
4924         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4925         configure.ac): Likewise.
4926         * modules/unictype/property-bidi-block-separator (Depends-on,
4927         configure.ac): Likewise.
4928         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4929         configure.ac): Likewise.
4930         * modules/unictype/property-bidi-common-separator (Depends-on,
4931         configure.ac): Likewise.
4932         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4933         Likewise.
4934         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4935         configure.ac): Likewise.
4936         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4937         configure.ac): Likewise.
4938         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4939         configure.ac): Likewise.
4940         * modules/unictype/property-bidi-european-digit (Depends-on,
4941         configure.ac): Likewise.
4942         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4943         configure.ac): Likewise.
4944         * modules/unictype/property-bidi-left-to-right (Depends-on,
4945         configure.ac): Likewise.
4946         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4947         configure.ac): Likewise.
4948         * modules/unictype/property-bidi-other-neutral (Depends-on,
4949         configure.ac): Likewise.
4950         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4951         Likewise.
4952         * modules/unictype/property-bidi-segment-separator (Depends-on,
4953         configure.ac): Likewise.
4954         * modules/unictype/property-bidi-whitespace (Depends-on,
4955         configure.ac): Likewise.
4956         * modules/unictype/property-combining (Depends-on, configure.ac):
4957         Likewise.
4958         * modules/unictype/property-composite (Depends-on, configure.ac):
4959         Likewise.
4960         * modules/unictype/property-currency-symbol (Depends-on,
4961         configure.ac): Likewise.
4962         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4963         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4964         Likewise.
4965         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4966         configure.ac): Likewise.
4967         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4968         Likewise.
4969         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4970         Likewise.
4971         * modules/unictype/property-extender (Depends-on, configure.ac):
4972         Likewise.
4973         * modules/unictype/property-format-control (Depends-on, configure.ac):
4974         Likewise.
4975         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4976         Likewise.
4977         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4978         Likewise.
4979         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4980         Likewise.
4981         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4982         Likewise.
4983         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4984         Likewise.
4985         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4986         Likewise.
4987         * modules/unictype/property-id-start (Depends-on, configure.ac):
4988         Likewise.
4989         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4990         Likewise.
4991         * modules/unictype/property-ids-binary-operator (Depends-on,
4992         configure.ac): Likewise.
4993         * modules/unictype/property-ids-trinary-operator (Depends-on,
4994         configure.ac): Likewise.
4995         * modules/unictype/property-ignorable-control (Depends-on,
4996         configure.ac): Likewise.
4997         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4998         Likewise.
4999         * modules/unictype/property-join-control (Depends-on, configure.ac):
5000         Likewise.
5001         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5002         Likewise.
5003         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5004         Likewise.
5005         * modules/unictype/property-logical-order-exception (Depends-on,
5006         configure.ac): Likewise.
5007         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5008         Likewise.
5009         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5010         * modules/unictype/property-non-break (Depends-on, configure.ac):
5011         Likewise.
5012         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5013         Likewise.
5014         * modules/unictype/property-numeric (Depends-on, configure.ac):
5015         Likewise.
5016         * modules/unictype/property-other-alphabetic (Depends-on,
5017         configure.ac): Likewise.
5018         * modules/unictype/property-other-default-ignorable-code-point
5019         (Depends-on, configure.ac): Likewise.
5020         * modules/unictype/property-other-grapheme-extend (Depends-on,
5021         configure.ac): Likewise.
5022         * modules/unictype/property-other-id-continue (Depends-on,
5023         configure.ac): Likewise.
5024         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5025         Likewise.
5026         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5027         Likewise.
5028         * modules/unictype/property-other-math (Depends-on, configure.ac):
5029         Likewise.
5030         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5031         Likewise.
5032         * modules/unictype/property-paired-punctuation (Depends-on,
5033         configure.ac): Likewise.
5034         * modules/unictype/property-paragraph-separator (Depends-on,
5035         configure.ac): Likewise.
5036         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5037         Likewise.
5038         * modules/unictype/property-pattern-white-space (Depends-on,
5039         configure.ac): Likewise.
5040         * modules/unictype/property-private-use (Depends-on, configure.ac):
5041         Likewise.
5042         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5043         Likewise.
5044         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5045         Likewise.
5046         * modules/unictype/property-radical (Depends-on, configure.ac):
5047         Likewise.
5048         * modules/unictype/property-sentence-terminal (Depends-on,
5049         configure.ac): Likewise.
5050         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5051         Likewise.
5052         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5053         * modules/unictype/property-terminal-punctuation (Depends-on,
5054         configure.ac): Likewise.
5055         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5056         Likewise.
5057         * modules/unictype/property-unassigned-code-value (Depends-on,
5058         configure.ac): Likewise.
5059         * modules/unictype/property-unified-ideograph (Depends-on,
5060         configure.ac): Likewise.
5061         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5062         Likewise.
5063         * modules/unictype/property-variation-selector (Depends-on,
5064         configure.ac): Likewise.
5065         * modules/unictype/property-white-space (Depends-on, configure.ac):
5066         Likewise.
5067         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5068         Likewise.
5069         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5070         Likewise.
5071         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5072         Likewise.
5073         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5074         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5075         Likewise.
5076
5077 2009-12-31  Bruno Haible  <bruno@clisp.org>
5078
5079         Remove unnecessary AC_C_INLINE invocation.
5080         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5081         since 2009-08-21.
5082
5083 2009-12-31  Jim Meyering  <meyering@redhat.com>
5084
5085         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5086         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5087         With this change, we can all remove the gpg_key_ID = ... definition
5088         from our respective cfg.mk files.
5089
5090         maint.mk: create announcement template in ~/, not in /tmp
5091         * top/maint.mk (emit_upload_commands): Adjust.
5092         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5093         Remove temporary file, .ci-msg.
5094
5095 2009-12-31  Eric Blake  <ebb9@byu.net>
5096
5097         link-warning: always build headers with link warnings
5098         * modules/arpa_inet (Makefile.am): Always build replacement
5099         header.
5100         * modules/ctype (Makefile.am): Likewise.
5101         * modules/dirent (Makefile.am): Likewise.
5102         * modules/inttypes (Makefile.am): Likewise.
5103         * modules/langinfo (Makefile.am): Likewise.
5104         * modules/locale (Makefile.am): Likewise.
5105         * modules/spawn (Makefile.am): Likewise.
5106         * modules/sys_file (Makefile.am): Likewise.
5107         * modules/sys_ioctl (Makefile.am): Likewise.
5108         * modules/sys_select (Makefile.am): Likewise.
5109         * modules/sys_socket (Makefile.am): Likewise.
5110         * modules/sys_times (Makefile.am): Likewise.
5111         * modules/sys_utsname (Makefile.am): Likewise.
5112         * modules/sys_wait (Makefile.am): Likewise.
5113         * modules/wchar (Makefile.am): Likewise.
5114         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5115         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5116         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5117         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5118         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5119         Likewise.
5120         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5121         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5122         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5123         Likewise.
5124         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5125         Likewise.
5126         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5127         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5128         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5130         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5131         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5132         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5133         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5134         (gl_WCHAR_H_DEFAULTS): Likewise.
5135
5136 2009-12-31  Eric Blake  <ebb9@byu.net>
5137
5138         signal, spawn: use link warnings
5139         * lib/signal.in.h (sigset_t): Make unconditional.
5140         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5141         (sigpending, sigprocmask, sigaction): Add link warnings.
5142         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5143         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5144         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5145         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5146         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5147         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5148         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5149         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5150         (posix_spawn_file_actions_destroy)
5151         (posix_spawn_file_actions_addopen)
5152         (posix_spawn_file_actions_addclose)
5153         (posix_spawn_file_actions_adddup2): Likewise.
5154         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5155         * tests/test-signal.c (main): Enhance test.
5156
5157         spawn: improve wrapper support
5158         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5159         (gl_SPAWN_H_DEFAULTS): New defaults.
5160         * modules/spawn (Makefile.am): Substitute them.
5161         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5162         Only declare if missing or broken.
5163
5164         sys_times, sys_utsname: use include_next
5165         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5166         header.
5167         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5168         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5169         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5170         * modules/sys_times (Depends-on): Add include_next.
5171         (Makefile.am): Substitute additional values.
5172         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5173         * lib/sys_times.in.h (includes): Include native header, if
5174         available.
5175         * lib/sys_utsname.in.h (includes): Likewise.
5176         * tests/test-sys_times.c (main): Enhance test.
5177
5178         fdutimensat: revert prior patch
5179         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5180         utimens.h.
5181         Reported by Bruno Haible.
5182
5183 2009-12-30  Eric Blake  <ebb9@byu.net>
5184
5185         sys_wait: drop link-warning dependency
5186         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5187         link-warning efforts.
5188         * lib/sys_wait.in.h: Likewise.
5189
5190         fdutimensat: remove bogus dependency
5191         * modules/fdutimensat (Depends-on): Drop inline.
5192
5193         unistd: fix typo
5194         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5195
5196 2009-12-30  Bruno Haible  <bruno@clisp.org>
5197
5198         Fix compilation error with Solaris cc.
5199         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5200         * lib/unicase/u16-is-invariant.c: Likewise.
5201         * lib/unicase/u32-is-invariant.c: Likewise.
5202         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5203
5204 2009-12-30  Bruno Haible  <bruno@clisp.org>
5205
5206         Fix test crash.
5207         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5208         locales.
5209         Reported by Simon Josefsson <simon@josefsson.org>.
5210
5211 2009-12-30  Bruno Haible  <bruno@clisp.org>
5212
5213         Fix compilation error on most platforms.
5214         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5215         Reported by Simon Josefsson <simon@josefsson.org>
5216         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5217
5218 2009-12-30  Eric Blake  <ebb9@byu.net>
5219
5220         futimens, utimensat: work around ntfs-3g bug
5221         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5222         a ctime bug is present, and expand workaround to cover ntfs-3g.
5223         * lib/utimens.c (fdutimens, lutimens): Likewise.
5224         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5225         (validate_timespec): Adjust return value.
5226         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5227         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5228         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5229
5230 2009-12-29  Eric Blake  <ebb9@byu.net>
5231
5232         link-warning: make usage consistent
5233         * modules/ctype (Depends-on): Add link-warning.
5234         (Makefile.am): Update rules accordingly.
5235         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5236         * modules/locale (Depends-on, Makefile.am): Likewise.
5237         * modules/sys_file (Makefile.am): Likewise.
5238         * modules/getopt-posix (Makefile.am): Delete unused link warning
5239         efforts.
5240         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5241         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5242         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5243         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5244
5245         stdio: remove unused variables
5246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5248         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5249
5250         tests: test more substitute headers
5251         * modules/ctype-tests: New file.
5252         * modules/dirent-tests: Likewise.
5253         * modules/spawn-tests: Likewise.
5254         * modules/sys_file-tests: Likewise.
5255         * modules/sys_ioctl-tests: Likewise.
5256         * modules/sys_wait-tests: Likewise.
5257         * tests/test-ctype.c: Likewise.
5258         * tests/test-dirent.c: Likewise.
5259         * tests/test-spawn.c: Likewise.
5260         * tests/test-sys_file.c: Likewise.
5261         * tests/test-sys_ioctl.c: Likewise.
5262         * tests/test-sys_wait.c: Likewise.
5263         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5264         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5265         whether or not flock is in use.
5266
5267         tests: remove License section from module
5268         * modules/arpa_inet-tests: Remove unneeded section.
5269         * modules/byteswap-tests: Likewise.
5270         * modules/ceilf-tests: Likewise.
5271         * modules/ceill-tests: Likewise.
5272         * modules/crypto/des-tests: Likewise.
5273         * modules/crypto/gc-arcfour-tests: Likewise.
5274         * modules/crypto/gc-arctwo-tests: Likewise.
5275         * modules/crypto/gc-des-tests: Likewise.
5276         * modules/crypto/gc-hmac-md5-tests: Likewise.
5277         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5278         * modules/crypto/gc-md2-tests: Likewise.
5279         * modules/crypto/gc-md4-tests: Likewise.
5280         * modules/crypto/gc-md5-tests: Likewise.
5281         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5282         * modules/crypto/gc-rijndael-tests: Likewise.
5283         * modules/crypto/gc-sha1-tests: Likewise.
5284         * modules/crypto/gc-tests: Likewise.
5285         * modules/crypto/md2-tests: Likewise.
5286         * modules/crypto/md4-tests: Likewise.
5287         * modules/fcntl-h-tests: Likewise.
5288         * modules/floorf-tests: Likewise.
5289         * modules/floorl-tests: Likewise.
5290         * modules/frexp-nolibm-tests: Likewise.
5291         * modules/frexp-tests: Likewise.
5292         * modules/frexpl-nolibm-tests: Likewise.
5293         * modules/frexpl-tests: Likewise.
5294         * modules/getaddrinfo-tests: Likewise.
5295         * modules/inttypes-tests: Likewise.
5296         * modules/isfinite-tests: Likewise.
5297         * modules/isinf-tests: Likewise.
5298         * modules/ldexpl-tests: Likewise.
5299         * modules/locale-tests: Likewise.
5300         * modules/math-tests: Likewise.
5301         * modules/netdb-tests: Likewise.
5302         * modules/netinet_in-tests: Likewise.
5303         * modules/printf-frexp-tests: Likewise.
5304         * modules/printf-frexpl-tests: Likewise.
5305         * modules/priv-set-tests: Likewise.
5306         * modules/random_r-tests: Likewise.
5307         * modules/round-tests: Likewise.
5308         * modules/roundf-tests: Likewise.
5309         * modules/roundl-tests: Likewise.
5310         * modules/search-tests: Likewise.
5311         * modules/select-tests: Likewise.
5312         * modules/signal-tests: Likewise.
5313         * modules/stdbool-tests: Likewise.
5314         * modules/stddef-tests: Likewise.
5315         * modules/stdint-tests: Likewise.
5316         * modules/stdio-tests: Likewise.
5317         * modules/stdlib-tests: Likewise.
5318         * modules/string-tests: Likewise.
5319         * modules/strings-tests: Likewise.
5320         * modules/sys_select-tests: Likewise.
5321         * modules/sys_socket-tests: Likewise.
5322         * modules/sys_stat-tests: Likewise.
5323         * modules/sys_time-tests: Likewise.
5324         * modules/sys_utsname-tests: Likewise.
5325         * modules/sysexits-tests: Likewise.
5326         * modules/time-tests: Likewise.
5327         * modules/trunc-tests: Likewise.
5328         * modules/truncf-tests: Likewise.
5329         * modules/truncl-tests: Likewise.
5330         * modules/tsearch-tests: Likewise.
5331         * modules/unistd-tests: Likewise.
5332         * modules/wchar-tests: Likewise.
5333         * modules/wctype-tests: Likewise.
5334
5335         tests: fix license on several tests
5336         * tests/test-des.c: Update to GPLv3+.
5337         * tests/test-flock.c: Likewise.
5338         * tests/test-fsync.c: Likewise.
5339         * tests/test-futimens.h: Likewise.
5340         * tests/test-gc-arcfour.c: Likewise.
5341         * tests/test-gc-arctwo.c: Likewise.
5342         * tests/test-gc-des.c: Likewise.
5343         * tests/test-gc-hmac-md5.c: Likewise.
5344         * tests/test-gc-hmac-sha1.c: Likewise.
5345         * tests/test-gc-md2.c: Likewise.
5346         * tests/test-gc-md4.c: Likewise.
5347         * tests/test-gc-md5.c: Likewise.
5348         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5349         * tests/test-gc-rijndael.c: Likewise.
5350         * tests/test-gc-sha1.c: Likewise.
5351         * tests/test-gc.c: Likewise.
5352         * tests/test-getcwd.c: Likewise.
5353         * tests/test-link.c: Likewise.
5354         * tests/test-link.h: Likewise.
5355         * tests/test-lutimens.h: Likewise.
5356         * tests/test-md2.c: Likewise.
5357         * tests/test-md4.c: Likewise.
5358         * tests/test-mkdir.h: Likewise.
5359         * tests/test-rename.c: Likewise.
5360         * tests/test-rename.h: Likewise.
5361         * tests/test-safe-alloc.c: Likewise.
5362         * tests/test-utimens-common.h: Likewise.
5363         * tests/test-utimens.h: Likewise.
5364
5365         maint: sync license texts
5366         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5367         * doc/gpl-3.0.texi: Revert copyright year update.
5368         * doc/lgpl-3.0.texi: Likewise.
5369
5370 2009-12-29  Jim Meyering  <meyering@redhat.com>
5371
5372         update nearly all FSF copyright year lists to include 2009
5373         The files named by the following are exempted:
5374             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5375               test -f "$dst" && { echo "$dst"; continue; }
5376               test -d "$dst" || continue
5377               echo "$dst"/$(basename "$src")
5378             done > exempt
5379             git ls-files tests/unictype >> exempt
5380         In the remaining files, convert to all-interval notation if
5381         - there is already at least one year interval like 2000-2003
5382         - the file is maintained by me
5383         - the file is in lib/uni*/, where that style already prevails
5384         Otherwise, use update-copyright's default.
5385
5386 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5387         and Eric Blake  <ebb9@byu.net>
5388
5389         tests: don't require debug system() to pass
5390         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5391         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5392         * tests/test-unlink.h (test_unlink_func): Likewise.
5393         * tests/test-fstatat.c (main): ...into callers.
5394         * tests/test-lstat.c (main): Likewise.
5395         * tests/test-rmdir.c (main): Likewise.
5396         * tests/test-unlink.c (main): Likewise.
5397         * tests/test-unlinkat.c (main): Likewise.
5398         * tests/test-areadlink-with-size.c (main): Don't require a
5399         debug-only system call to pass, aiding cross-testing to mingw.
5400         * tests/test-areadlink.c (main): Likewise.
5401         * tests/test-areadlinkat-with-size.c (main): Likewise.
5402         * tests/test-areadlinkat.c (main): Likewise.
5403         * tests/test-canonicalize-lgpl.c (main): Likewise.
5404         * tests/test-canonicalize.c (main): Likewise.
5405         * tests/test-chown.c (main): Likewise.
5406         * tests/test-fchownat.c (main): Likewise.
5407         * tests/test-lchown.c (main): Likewise.
5408         * tests/test-fdutimensat.c (main): Likewise.
5409         * tests/test-futimens.c (main): Likewise.
5410         * tests/test-link.c (main): Likewise.
5411         * tests/test-linkat.c (main): Likewise.
5412         * tests/test-mkdir.c (main): Likewise.
5413         * tests/test-mkdirat.c (main): Likewise.
5414         * tests/test-mkfifo.c (main): Likewise.
5415         * tests/test-mkfifoat.c (main): Likewise.
5416         * tests/test-mknod.c (main): Likewise.
5417         * tests/test-readlink.c (main): Likewise.
5418         * tests/test-remove.c (main): Likewise.
5419         * tests/test-rename.c (main): Likewise.
5420         * tests/test-renameat.c (main): Likewise.
5421         * tests/test-symlink.c (main): Likewise.
5422         * tests/test-symlinkat.c (main): Likewise.
5423         * tests/test-utimens.c (main): Likewise.
5424         * tests/test-utimensat.c (main): Likewise.
5425
5426 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5427
5428         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5429         on $(UNUSED_PARAMETER_H) to avoid build failure.
5430
5431 2009-12-28  Jim Meyering  <meyering@redhat.com>
5432
5433         update-copyright: you may specify a max. line length other than 72
5434         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5435
5436         maint: use consistent FSF copyright line syntax
5437         * lib/posixtm.c: Add missing comma in FSF copyright line.
5438         * lib/posixtm.h: Likewise.
5439         * lib/getugroups.c: Add missing ", Inc.".
5440
5441         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5442         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5443         FSF copyright line.  Remove trailing blanks.
5444
5445 2009-12-28  Eric Blake  <ebb9@byu.net>
5446
5447         test-dup2: reduce dependencies
5448         * modules/cloexec (Configure.ac): Set witness.
5449         * modules/dup2-tests (Depends-on): Drop cloexec.
5450         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5451         not present.
5452         Suggested by Bruno Haible.
5453
5454 2009-12-26  Bruno Haible  <bruno@clisp.org>
5455
5456         Remove an unneeded dependency.
5457         * modules/fseterr (Depends-on): Remove dup2.
5458
5459 2009-12-26  Eric Blake  <ebb9@byu.net>
5460
5461         tests: use macros.h in more places
5462         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5463         (ASSERT_STREAM): Provide default of stderr.
5464         * tests/test-dirent-safer.c: Include macros.h, using alternate
5465         stream for assertions.
5466         * tests/test-dup-safer.c: Likewise.
5467         * tests/test-freopen-safer.c: Likewise.
5468         * tests/test-getopt.c: Likewise.
5469         * tests/test-openat-safer.c: Likewise.
5470         * tests/test-pipe.c: Likewise.
5471         * tests/test-popen-safer.c: Likewise.
5472         * modules/dirent-safer-tests (Files): Include macros.h.
5473         * modules/unistd-safer-tests (Files): Likewise.
5474         * modules/freopen-safer-tests (Files): Likewise.
5475         * modules/getopt-posix-tests (Files): Likewise.
5476         * modules/openat-safer-tests (Files): Likewise.
5477         * modules/pipe-tests (Files): Likewise.
5478
5479 2009-12-26  Bruno Haible  <bruno@clisp.org>
5480
5481         javacomp: Portability fix.
5482         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5483         that it also works on Solaris.
5484
5485 2009-12-26  Bruno Haible  <bruno@clisp.org>
5486
5487         localename: Fix storage allocation of gl_locale_name_thread's result.
5488         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5489         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5490         all platforms that have 'uselocale'.
5491         (gl_locale_name_thread_unsafe): New function, extracted from
5492         gl_locale_name_thread.
5493         (gl_locale_name_thread): Call struniq on all platforms that have
5494         'uselocale'.
5495         * tests/test-localename.c (test_locale_name_thread): Check that the
5496         resulting strings are permanently allocated.
5497         * modules/localename-tests (Depends-on): Add strdup.
5498
5499 2009-12-26  Bruno Haible  <bruno@clisp.org>
5500
5501         * tests/test-localename.c (categories): Fill in the strings.
5502
5503 2009-12-26  Jim Meyering  <meyering@redhat.com>
5504
5505         isdir: complete the removal of m4/isdir.m4
5506         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5507
5508         isdir: clean up, since at least grep still uses it
5509         * lib/isdir.c: Include "isdir.h".
5510         (S_ISDIR): Remove now-unneeded definition.
5511         * modules/isdir (Files): Add lib/isdir.h.
5512         * lib/isdir.h: New file, with declaration.
5513         * m4/isdir.m4: Remove file -- unneeded.
5514
5515 2009-12-25  Bruno Haible  <bruno@clisp.org>
5516
5517         selinux-h: Make generated .h files standalone.
5518         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5519         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5520         * lib/se-selinux.in.h: Likewise.
5521         * modules/selinux-h (Depends-on): Add unused-parameter.
5522         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5523         selinux/selinux.h and selinux/context.h.
5524         Suggested by Eric Blake.
5525
5526 2009-12-25  Bruno Haible  <bruno@clisp.org>
5527
5528         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5529         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5530         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5531         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5532         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5533
5534 2009-12-24  Bruno Haible  <bruno@clisp.org>
5535
5536         openat: Fix warning.
5537         * lib/openat-proc.c: Include <unistd.h>.
5538
5539 2009-12-24  Bruno Haible  <bruno@clisp.org>
5540
5541         New module 'unused-parameter'.
5542         * build-aux/unused-parameter.h: New file, extracted from earlier
5543         gnulib-common.m4.
5544         * modules/unused-parameter: New file.
5545         * lib/unistr.h: Include unused-parameter.h.
5546         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5547         _GL_UNUSED.
5548         * modules/unistr/base (Depends-on): Add unused-parameter.
5549
5550 2009-12-24  Bruno Haible  <bruno@clisp.org>
5551
5552         Add missing dependencies to 'extensions' module.
5553         * m4/extensions.m4: Add comment.
5554         * modules/accept4 (Depends-on): Add extensions.
5555         * modules/dup3 (Depends-on): Likewise.
5556         * modules/fcntl (Depends-on): Likewise.
5557         * modules/futimens (Depends-on): Likewise.
5558         * modules/mknod (Depends-on): Likewise.
5559         * modules/pipe2 (Depends-on): Likewise.
5560         * modules/stat-time (Depends-on): Likewise.
5561         * modules/strcasestr-simple (Depends-on): Likewise.
5562         * modules/strsignal (Depends-on): Likewise.
5563         * modules/utimensat (Depends-on): Likewise.
5564         * modules/localcharset (Depends-on): Likewise. Needed because of
5565         gl_FCNTL_O_FLAGS.
5566         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5567         AC_TYPE_MBSTATE_T.
5568         * modules/wcsnrtombs (Depends-on): Likewise.
5569         * modules/wcsrtombs (Depends-on): Likewise.
5570
5571 2009-12-24  Bruno Haible  <bruno@clisp.org>
5572
5573         binary-io: Avoid gcc warning due to SET_BINARY.
5574         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5575         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5576
5577 2009-12-24  Bruno Haible  <bruno@clisp.org>
5578
5579         Avoid future namespace pollution on glibc systems.
5580         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5581         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5582         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5583         glibc systems.
5584
5585 2009-12-24  Bruno Haible  <bruno@clisp.org>
5586
5587         Refactor common macros used in tests.
5588         * tests/macros.h: New file.
5589         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5590         and/or <stdlib.h>, if appropriate.
5591         (ASSERT, SIZEOF): Remove macros.
5592         * tests/test-areadlink-with-size.c: Likewise.
5593         * tests/test-areadlinkat.c: Likewise.
5594         * tests/test-areadlinkat-with-size.c: Likewise.
5595         * tests/test-argmatch.c: Likewise.
5596         * tests/test-argv-iter.c: Likewise.
5597         * tests/test-array-mergesort.c: Likewise.
5598         * tests/test-array_list.c: Likewise.
5599         * tests/test-array_oset.c: Likewise.
5600         * tests/test-avltree_list.c: Likewise.
5601         * tests/test-avltree_oset.c: Likewise.
5602         * tests/test-avltreehash_list.c: Likewise.
5603         * tests/test-base64.c: Likewise.
5604         * tests/test-binary-io.c: Likewise.
5605         * tests/test-bitrotate.c: Likewise.
5606         * tests/test-btowc.c: Likewise.
5607         * tests/test-byteswap.c: Likewise.
5608         * tests/test-c-ctype.c: Likewise.
5609         * tests/test-c-stack.c: Likewise.
5610         * tests/test-c-strcasecmp.c: Likewise.
5611         * tests/test-c-strcasestr.c: Likewise.
5612         * tests/test-c-strncasecmp.c: Likewise.
5613         * tests/test-c-strstr.c: Likewise.
5614         * tests/test-canonicalize-lgpl.c: Likewise.
5615         * tests/test-canonicalize.c: Likewise.
5616         * tests/test-carray_list.c: Likewise.
5617         * tests/test-ceilf1.c: Likewise.
5618         * tests/test-ceilf2.c: Likewise.
5619         * tests/test-ceill.c: Likewise.
5620         * tests/test-chown.c: Likewise.
5621         * tests/test-cloexec.c: Likewise.
5622         * tests/test-copy-acl.c: Likewise.
5623         * tests/test-copy-file.c: Likewise.
5624         * tests/test-count-one-bits.c: Likewise.
5625         * tests/test-dprintf-posix.c: Likewise.
5626         * tests/test-dup2.c: Likewise.
5627         * tests/test-dup3.c: Likewise.
5628         * tests/test-duplocale.c: Likewise.
5629         * tests/test-fbufmode.c: Likewise.
5630         * tests/test-fchdir.c: Likewise.
5631         * tests/test-fchownat.c: Likewise.
5632         * tests/test-fcntl-safer.c: Likewise.
5633         * tests/test-fcntl.c: Likewise.
5634         * tests/test-fdopendir.c: Likewise.
5635         * tests/test-fdutimensat.c: Likewise.
5636         * tests/test-fflush2.c: Likewise.
5637         * tests/test-file-has-acl.c: Likewise.
5638         * tests/test-filevercmp.c: Likewise.
5639         * tests/test-flock.c: Likewise.
5640         * tests/test-floorf1.c: Likewise.
5641         * tests/test-floorf2.c: Likewise.
5642         * tests/test-floorl.c: Likewise.
5643         * tests/test-fnmatch.c: Likewise.
5644         * tests/test-fopen.h: Likewise.
5645         * tests/test-fpending.c: Likewise.
5646         * tests/test-fprintf-posix.c: Likewise.
5647         * tests/test-fpurge.c: Likewise.
5648         * tests/test-freadable.c: Likewise.
5649         * tests/test-freadahead.c: Likewise.
5650         * tests/test-freading.c: Likewise.
5651         * tests/test-freadptr.c: Likewise.
5652         * tests/test-freadptr2.c: Likewise.
5653         * tests/test-freadseek.c: Likewise.
5654         * tests/test-freopen.c: Likewise.
5655         * tests/test-frexp.c: Likewise.
5656         * tests/test-frexpl.c: Likewise.
5657         * tests/test-fseek.c: Likewise.
5658         * tests/test-fseeko.c: Likewise.
5659         * tests/test-fstatat.c: Likewise.
5660         * tests/test-fstrcmp.c: Likewise.
5661         * tests/test-fsync.c: Likewise.
5662         * tests/test-ftell.c: Likewise.
5663         * tests/test-ftello.c: Likewise.
5664         * tests/test-func.c: Likewise.
5665         * tests/test-futimens.c: Likewise.
5666         * tests/test-fwritable.c: Likewise.
5667         * tests/test-fwriting.c: Likewise.
5668         * tests/test-getcwd.c: Likewise.
5669         * tests/test-getdate.c: Likewise.
5670         * tests/test-getdelim.c: Likewise.
5671         * tests/test-getdtablesize.c: Likewise.
5672         * tests/test-getgroups.c: Likewise.
5673         * tests/test-getline.c: Likewise.
5674         * tests/test-getndelim2.c: Likewise.
5675         * tests/test-glob.c: Likewise.
5676         * tests/test-hash.c: Likewise.
5677         * tests/test-i-ring.c: Likewise.
5678         * tests/test-iconv-utf.c: Likewise.
5679         * tests/test-iconv.c: Likewise.
5680         * tests/test-idpriv-drop.c: Likewise.
5681         * tests/test-idpriv-droptemp.c: Likewise.
5682         * tests/test-inet_ntop.c: Likewise.
5683         * tests/test-inet_pton.c: Likewise.
5684         * tests/test-isblank.c: Likewise.
5685         * tests/test-isfinite.c: Likewise.
5686         * tests/test-isinf.c: Likewise.
5687         * tests/test-isnan.c: Likewise.
5688         * tests/test-isnand.h: Likewise.
5689         * tests/test-isnanf.h: Likewise.
5690         * tests/test-isnanl.h: Likewise.
5691         * tests/test-lchown.c: Likewise.
5692         * tests/test-ldexpl.c: Likewise.
5693         * tests/test-link.c: Likewise.
5694         * tests/test-linkat.c: Likewise.
5695         * tests/test-linked_list.c: Likewise.
5696         * tests/test-linkedhash_list.c: Likewise.
5697         * tests/test-localename.c: Likewise.
5698         * tests/test-lseek.c: Likewise.
5699         * tests/test-lstat.c: Likewise.
5700         * tests/test-mbmemcasecmp.c: Likewise.
5701         * tests/test-mbmemcasecoll.c: Likewise.
5702         * tests/test-mbrtowc.c: Likewise.
5703         * tests/test-mbscasecmp.c: Likewise.
5704         * tests/test-mbscasestr1.c: Likewise.
5705         * tests/test-mbscasestr2.c: Likewise.
5706         * tests/test-mbscasestr3.c: Likewise.
5707         * tests/test-mbscasestr4.c: Likewise.
5708         * tests/test-mbschr.c: Likewise.
5709         * tests/test-mbscspn.c: Likewise.
5710         * tests/test-mbsinit.c: Likewise.
5711         * tests/test-mbsncasecmp.c: Likewise.
5712         * tests/test-mbsnrtowcs.c: Likewise.
5713         * tests/test-mbspbrk.c: Likewise.
5714         * tests/test-mbspcasecmp.c: Likewise.
5715         * tests/test-mbsrchr.c: Likewise.
5716         * tests/test-mbsrtowcs.c: Likewise.
5717         * tests/test-mbsspn.c: Likewise.
5718         * tests/test-mbsstr1.c: Likewise.
5719         * tests/test-mbsstr2.c: Likewise.
5720         * tests/test-mbsstr3.c: Likewise.
5721         * tests/test-memchr.c: Likewise.
5722         * tests/test-memchr2.c: Likewise.
5723         * tests/test-memcmp.c: Likewise.
5724         * tests/test-memmem.c: Likewise.
5725         * tests/test-memrchr.c: Likewise.
5726         * tests/test-mkdir.c: Likewise.
5727         * tests/test-mkdirat.c: Likewise.
5728         * tests/test-mkfifo.c: Likewise.
5729         * tests/test-mkfifoat.c: Likewise.
5730         * tests/test-mknod.c: Likewise.
5731         * tests/test-nanosleep.c: Likewise.
5732         * tests/test-nl_langinfo.c: Likewise.
5733         * tests/test-obstack-printf.c: Likewise.
5734         * tests/test-open.c: Likewise.
5735         * tests/test-openat.c: Likewise.
5736         * tests/test-pipe-filter-gi1.c: Likewise.
5737         * tests/test-pipe-filter-gi2-main.c: Likewise.
5738         * tests/test-pipe-filter-ii1.c: Likewise.
5739         * tests/test-pipe-filter-ii2-main.c: Likewise.
5740         * tests/test-pipe2.c: Likewise.
5741         * tests/test-popen.h: Likewise.
5742         * tests/test-posixtm.c: Likewise.
5743         * tests/test-pread.c: Likewise.
5744         * tests/test-printf-frexp.c: Likewise.
5745         * tests/test-printf-frexpl.c: Likewise.
5746         * tests/test-printf-posix.c: Likewise.
5747         * tests/test-priv-set.c: Likewise.
5748         * tests/test-quotearg.c: Likewise.
5749         * tests/test-random_r.c: Likewise.
5750         * tests/test-rawmemchr.c: Likewise.
5751         * tests/test-rbtree_list.c: Likewise.
5752         * tests/test-rbtree_oset.c: Likewise.
5753         * tests/test-rbtreehash_list.c: Likewise.
5754         * tests/test-readlink.c: Likewise.
5755         * tests/test-remove.c: Likewise.
5756         * tests/test-rename.c: Likewise.
5757         * tests/test-renameat.c: Likewise.
5758         * tests/test-rmdir.c: Likewise.
5759         * tests/test-round1.c: Likewise.
5760         * tests/test-roundf1.c: Likewise.
5761         * tests/test-roundl.c: Likewise.
5762         * tests/test-safe-alloc.c: Likewise.
5763         * tests/test-sameacls.c: Likewise.
5764         * tests/test-set-mode-acl.c: Likewise.
5765         * tests/test-setenv.c: Likewise.
5766         * tests/test-sigaction.c: Likewise.
5767         * tests/test-signbit.c: Likewise.
5768         * tests/test-sleep.c: Likewise.
5769         * tests/test-snprintf-posix.c: Likewise.
5770         * tests/test-snprintf.c: Likewise.
5771         * tests/test-sprintf-posix.c: Likewise.
5772         * tests/test-stat-time.c: Likewise.
5773         * tests/test-stat.c: Likewise.
5774         * tests/test-strcasestr.c: Likewise.
5775         * tests/test-strchrnul.c: Likewise.
5776         * tests/test-strerror.c: Likewise.
5777         * tests/test-striconv.c: Likewise.
5778         * tests/test-striconveh.c: Likewise.
5779         * tests/test-striconveha.c: Likewise.
5780         * tests/test-strsignal.c: Likewise.
5781         * tests/test-strstr.c: Likewise.
5782         * tests/test-strtod.c: Likewise.
5783         * tests/test-strverscmp.c: Likewise.
5784         * tests/test-symlink.c: Likewise.
5785         * tests/test-symlinkat.c: Likewise.
5786         * tests/test-trunc1.c: Likewise.
5787         * tests/test-trunc2.c: Likewise.
5788         * tests/test-truncf1.c: Likewise.
5789         * tests/test-truncf2.c: Likewise.
5790         * tests/test-truncl.c: Likewise.
5791         * tests/test-uname.c: Likewise.
5792         * tests/test-unlink.c: Likewise.
5793         * tests/test-unlinkat.c: Likewise.
5794         * tests/test-unsetenv.c: Likewise.
5795         * tests/test-usleep.c: Likewise.
5796         * tests/test-utimens.c: Likewise.
5797         * tests/test-utimensat.c: Likewise.
5798         * tests/test-vasnprintf-posix.c: Likewise.
5799         * tests/test-vasnprintf-posix2.c: Likewise.
5800         * tests/test-vasnprintf.c: Likewise.
5801         * tests/test-vasprintf-posix.c: Likewise.
5802         * tests/test-vasprintf.c: Likewise.
5803         * tests/test-vdprintf-posix.c: Likewise.
5804         * tests/test-vfprintf-posix.c: Likewise.
5805         * tests/test-vprintf-posix.c: Likewise.
5806         * tests/test-vsnprintf-posix.c: Likewise.
5807         * tests/test-vsnprintf.c: Likewise.
5808         * tests/test-vsprintf-posix.c: Likewise.
5809         * tests/test-wcrtomb.c: Likewise.
5810         * tests/test-wcsnrtombs.c: Likewise.
5811         * tests/test-wcsrtombs.c: Likewise.
5812         * tests/test-wctype.c: Likewise.
5813         * tests/test-wcwidth.c: Likewise.
5814         * tests/test-xfprintf-posix.c: Likewise.
5815         * tests/test-xmemdup0.c: Likewise.
5816         * tests/test-xprintf-posix.c: Likewise.
5817         * tests/test-xvasprintf.c: Likewise.
5818         * tests/unicase/test-locale-language.c: Likewise.
5819         * tests/unicase/test-mapping-part1.h: Likewise.
5820         * tests/unicase/test-predicate-part1.h: Likewise.
5821         * tests/unicase/test-u8-casecmp.c: Likewise.
5822         * tests/unicase/test-u8-casecoll.c: Likewise.
5823         * tests/unicase/test-u8-casefold.c: Likewise.
5824         * tests/unicase/test-u8-is-cased.c: Likewise.
5825         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5826         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5827         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5828         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5829         * tests/unicase/test-u8-tolower.c: Likewise.
5830         * tests/unicase/test-u8-totitle.c: Likewise.
5831         * tests/unicase/test-u8-toupper.c: Likewise.
5832         * tests/unicase/test-u16-casecmp.c: Likewise.
5833         * tests/unicase/test-u16-casecoll.c: Likewise.
5834         * tests/unicase/test-u16-casefold.c: Likewise.
5835         * tests/unicase/test-u16-is-cased.c: Likewise.
5836         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5837         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5838         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5839         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5840         * tests/unicase/test-u16-tolower.c: Likewise.
5841         * tests/unicase/test-u16-totitle.c: Likewise.
5842         * tests/unicase/test-u16-toupper.c: Likewise.
5843         * tests/unicase/test-u32-casecmp.c: Likewise.
5844         * tests/unicase/test-u32-casecoll.c: Likewise.
5845         * tests/unicase/test-u32-casefold.c: Likewise.
5846         * tests/unicase/test-u32-is-cased.c: Likewise.
5847         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5848         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5849         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5850         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5851         * tests/unicase/test-u32-tolower.c: Likewise.
5852         * tests/unicase/test-u32-totitle.c: Likewise.
5853         * tests/unicase/test-u32-toupper.c: Likewise.
5854         * tests/unicase/test-ulc-casecmp.c: Likewise.
5855         * tests/unicase/test-ulc-casecoll.c: Likewise.
5856         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5857         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5858         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5859         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5860         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5861         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5862         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5863         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5864         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5865         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5866         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5867         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5868         * tests/unictype/test-bidi_byname.c: Likewise.
5869         * tests/unictype/test-bidi_name.c: Likewise.
5870         * tests/unictype/test-bidi_of.c: Likewise.
5871         * tests/unictype/test-bidi_test.c: Likewise.
5872         * tests/unictype/test-block_list.c: Likewise.
5873         * tests/unictype/test-block_of.c: Likewise.
5874         * tests/unictype/test-block_test.c: Likewise.
5875         * tests/unictype/test-categ_and.c: Likewise.
5876         * tests/unictype/test-categ_and_not.c: Likewise.
5877         * tests/unictype/test-categ_byname.c: Likewise.
5878         * tests/unictype/test-categ_name.c: Likewise.
5879         * tests/unictype/test-categ_none.c: Likewise.
5880         * tests/unictype/test-categ_of.c: Likewise.
5881         * tests/unictype/test-categ_or.c: Likewise.
5882         * tests/unictype/test-categ_test_withtable.c: Likewise.
5883         * tests/unictype/test-combining.c: Likewise.
5884         * tests/unictype/test-decdigit.c: Likewise.
5885         * tests/unictype/test-digit.c: Likewise.
5886         * tests/unictype/test-mirror.c: Likewise.
5887         * tests/unictype/test-numeric.c: Likewise.
5888         * tests/unictype/test-pr_byname.c: Likewise.
5889         * tests/unictype/test-pr_test.c: Likewise.
5890         * tests/unictype/test-predicate-part1.h: Likewise.
5891         * tests/unictype/test-scripts.c: Likewise.
5892         * tests/unictype/test-sy_c_ident.c: Likewise.
5893         * tests/unictype/test-sy_java_ident.c: Likewise.
5894         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5895         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5896         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5897         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5898         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5899         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5900         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5901         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5902         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5903         * tests/uninorm/test-compat-decomposition.c: Likewise.
5904         * tests/uninorm/test-composition.c: Likewise.
5905         * tests/uninorm/test-decomposing-form.c: Likewise.
5906         * tests/uninorm/test-decomposition.c: Likewise.
5907         * tests/uninorm/test-u8-nfc.c: Likewise.
5908         * tests/uninorm/test-u8-nfd.c: Likewise.
5909         * tests/uninorm/test-u8-nfkc.c: Likewise.
5910         * tests/uninorm/test-u8-nfkd.c: Likewise.
5911         * tests/uninorm/test-u8-normcmp.c: Likewise.
5912         * tests/uninorm/test-u8-normcoll.c: Likewise.
5913         * tests/uninorm/test-u16-nfc.c: Likewise.
5914         * tests/uninorm/test-u16-nfd.c: Likewise.
5915         * tests/uninorm/test-u16-nfkc.c: Likewise.
5916         * tests/uninorm/test-u16-nfkd.c: Likewise.
5917         * tests/uninorm/test-u16-normcmp.c: Likewise.
5918         * tests/uninorm/test-u16-normcoll.c: Likewise.
5919         * tests/uninorm/test-u32-nfc.c: Likewise.
5920         * tests/uninorm/test-u32-nfd.c: Likewise.
5921         * tests/uninorm/test-u32-nfkc.c: Likewise.
5922         * tests/uninorm/test-u32-nfkd.c: Likewise.
5923         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5924         * tests/uninorm/test-u32-normcmp.c: Likewise.
5925         * tests/uninorm/test-u32-normcoll.c: Likewise.
5926         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5927         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5928         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5929         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5930         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5931         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5932         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5933         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5934         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5935         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5936         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5937         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5938         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5939         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5940         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5941         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5942         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5943         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5944         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5945         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5946         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5947         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5948         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5949         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5950         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5951         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5952         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5953         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5954         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5955         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5956         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5957         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5958         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5959         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5960         * tests/uniwidth/test-u8-width.c: Likewise.
5961         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5962         * tests/uniwidth/test-u16-width.c: Likewise.
5963         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5964         * tests/uniwidth/test-u32-width.c: Likewise.
5965         * tests/uniwidth/test-uc_width.c: Likewise.
5966         * tests/uniwidth/test-uc_width2.c: Likewise.
5967         * modules/acl-tests (Files): Add tests/macros.h.
5968         * modules/areadlink-tests (Files): Likewise.
5969         * modules/areadlink-with-size-tests (Files): Likewise.
5970         * modules/areadlinkat-tests (Files): Likewise.
5971         * modules/areadlinkat-with-size-tests (Files): Likewise.
5972         * modules/argmatch-tests (Files): Likewise.
5973         * modules/argv-iter-tests (Files): Likewise.
5974         * modules/array-list-tests (Files): Likewise.
5975         * modules/array-mergesort-tests (Files): Likewise.
5976         * modules/array-oset-tests (Files): Likewise.
5977         * modules/avltree-list-tests (Files): Likewise.
5978         * modules/avltree-oset-tests (Files): Likewise.
5979         * modules/avltreehash-list-tests (Files): Likewise.
5980         * modules/base64-tests (Files): Likewise.
5981         * modules/binary-io-tests (Files): Likewise.
5982         * modules/bitrotate-tests (Files): Likewise.
5983         * modules/btowc-tests (Files): Likewise.
5984         * modules/byteswap-tests (Files): Likewise.
5985         * modules/c-ctype-tests (Files): Likewise.
5986         * modules/c-stack-tests (Files): Likewise.
5987         * modules/c-strcase-tests (Files): Likewise.
5988         * modules/c-strcasestr-tests (Files): Likewise.
5989         * modules/c-strstr-tests (Files): Likewise.
5990         * modules/canonicalize-lgpl-tests (Files): Likewise.
5991         * modules/canonicalize-tests (Files): Likewise.
5992         * modules/carray-list-tests (Files): Likewise.
5993         * modules/ceilf-tests (Files): Likewise.
5994         * modules/ceill-tests (Files): Likewise.
5995         * modules/chown-tests (Files): Likewise.
5996         * modules/cloexec-tests (Files): Likewise.
5997         * modules/copy-file-tests (Files): Likewise.
5998         * modules/count-one-bits-tests (Files): Likewise.
5999         * modules/dprintf-posix-tests (Files): Likewise.
6000         * modules/dup2-tests (Files): Likewise.
6001         * modules/dup3-tests (Files): Likewise.
6002         * modules/duplocale-tests (Files): Likewise.
6003         * modules/fbufmode-tests (Files): Likewise.
6004         * modules/fchdir-tests (Files): Likewise.
6005         * modules/fcntl-safer-tests (Files): Likewise.
6006         * modules/fcntl-tests (Files): Likewise.
6007         * modules/fdopendir-tests (Files): Likewise.
6008         * modules/fdutimensat-tests (Files): Likewise.
6009         * modules/fflush-tests (Files): Likewise.
6010         * modules/filevercmp-tests (Files): Likewise.
6011         * modules/flock-tests (Files): Likewise.
6012         * modules/floorf-tests (Files): Likewise.
6013         * modules/floorl-tests (Files): Likewise.
6014         * modules/fnmatch-tests (Files): Likewise.
6015         * modules/fopen-safer-tests (Files): Likewise.
6016         * modules/fopen-tests (Files): Likewise.
6017         * modules/fpending-tests (Files): Likewise.
6018         * modules/fprintf-posix-tests (Files): Likewise.
6019         * modules/fpurge-tests (Files): Likewise.
6020         * modules/freadable-tests (Files): Likewise.
6021         * modules/freadahead-tests (Files): Likewise.
6022         * modules/freading-tests (Files): Likewise.
6023         * modules/freadptr-tests (Files): Likewise.
6024         * modules/freadseek-tests (Files): Likewise.
6025         * modules/freopen-tests (Files): Likewise.
6026         * modules/frexp-nolibm-tests (Files): Likewise.
6027         * modules/frexp-tests (Files): Likewise.
6028         * modules/frexpl-nolibm-tests (Files): Likewise.
6029         * modules/frexpl-tests (Files): Likewise.
6030         * modules/fseek-tests (Files): Likewise.
6031         * modules/fseeko-tests (Files): Likewise.
6032         * modules/fstrcmp-tests (Files): Likewise.
6033         * modules/fsync-tests (Files): Likewise.
6034         * modules/ftell-tests (Files): Likewise.
6035         * modules/ftello-tests (Files): Likewise.
6036         * modules/func-tests (Files): Likewise.
6037         * modules/futimens-tests (Files): Likewise.
6038         * modules/fwritable-tests (Files): Likewise.
6039         * modules/fwriting-tests (Files): Likewise.
6040         * modules/getcwd-tests (Files): Likewise.
6041         * modules/getdate-tests (Files): Likewise.
6042         * modules/getdelim-tests (Files): Likewise.
6043         * modules/getdtablesize-tests (Files): Likewise.
6044         * modules/getgroups-tests (Files): Likewise.
6045         * modules/getline-tests (Files): Likewise.
6046         * modules/getndelim2-tests (Files): Likewise.
6047         * modules/glob-tests (Files): Likewise.
6048         * modules/hash-tests (Files): Likewise.
6049         * modules/i-ring-tests (Files): Likewise.
6050         * modules/iconv-tests (Files): Likewise.
6051         * modules/iconv_open-utf-tests (Files): Likewise.
6052         * modules/idpriv-drop-tests (Files): Likewise.
6053         * modules/idpriv-droptemp-tests (Files): Likewise.
6054         * modules/inet_ntop-tests (Files): Likewise.
6055         * modules/inet_pton-tests (Files): Likewise.
6056         * modules/isblank-tests (Files): Likewise.
6057         * modules/isfinite-tests (Files): Likewise.
6058         * modules/isinf-tests (Files): Likewise.
6059         * modules/isnan-tests (Files): Likewise.
6060         * modules/isnand-nolibm-tests (Files): Likewise.
6061         * modules/isnand-tests (Files): Likewise.
6062         * modules/isnanf-nolibm-tests (Files): Likewise.
6063         * modules/isnanf-tests (Files): Likewise.
6064         * modules/isnanl-nolibm-tests (Files): Likewise.
6065         * modules/isnanl-tests (Files): Likewise.
6066         * modules/lchown-tests (Files): Likewise.
6067         * modules/ldexpl-tests (Files): Likewise.
6068         * modules/link-tests (Files): Likewise.
6069         * modules/linkat-tests (Files): Likewise.
6070         * modules/linked-list-tests (Files): Likewise.
6071         * modules/linkedhash-list-tests (Files): Likewise.
6072         * modules/localename-tests (Files): Likewise.
6073         * modules/lseek-tests (Files): Likewise.
6074         * modules/lstat-tests (Files): Likewise.
6075         * modules/mbmemcasecmp-tests (Files): Likewise.
6076         * modules/mbmemcasecoll-tests (Files): Likewise.
6077         * modules/mbrtowc-tests (Files): Likewise.
6078         * modules/mbscasecmp-tests (Files): Likewise.
6079         * modules/mbscasestr-tests (Files): Likewise.
6080         * modules/mbschr-tests (Files): Likewise.
6081         * modules/mbscspn-tests (Files): Likewise.
6082         * modules/mbsinit-tests (Files): Likewise.
6083         * modules/mbsncasecmp-tests (Files): Likewise.
6084         * modules/mbsnrtowcs-tests (Files): Likewise.
6085         * modules/mbspbrk-tests (Files): Likewise.
6086         * modules/mbspcasecmp-tests (Files): Likewise.
6087         * modules/mbsrchr-tests (Files): Likewise.
6088         * modules/mbsrtowcs-tests (Files): Likewise.
6089         * modules/mbsspn-tests (Files): Likewise.
6090         * modules/mbsstr-tests (Files): Likewise.
6091         * modules/memchr-tests (Files): Likewise.
6092         * modules/memchr2-tests (Files): Likewise.
6093         * modules/memcmp-tests (Files): Likewise.
6094         * modules/memmem-tests (Files): Likewise.
6095         * modules/memrchr-tests (Files): Likewise.
6096         * modules/mkdir-tests (Files): Likewise.
6097         * modules/mkfifo-tests (Files): Likewise.
6098         * modules/mkfifoat-tests (Files): Likewise.
6099         * modules/mknod-tests (Files): Likewise.
6100         * modules/nanosleep-tests (Files): Likewise.
6101         * modules/nl_langinfo-tests (Files): Likewise.
6102         * modules/obstack-printf-tests (Files): Likewise.
6103         * modules/open-tests (Files): Likewise.
6104         * modules/openat-tests (Files): Likewise.
6105         * modules/pipe-filter-gi-tests (Files): Likewise.
6106         * modules/pipe-filter-ii-tests (Files): Likewise.
6107         * modules/pipe2-tests (Files): Likewise.
6108         * modules/popen-safer-tests (Files): Likewise.
6109         * modules/popen-tests (Files): Likewise.
6110         * modules/posixtm-tests (Files): Likewise.
6111         * modules/pread-tests (Files): Likewise.
6112         * modules/printf-frexp-tests (Files): Likewise.
6113         * modules/printf-frexpl-tests (Files): Likewise.
6114         * modules/printf-posix-tests (Files): Likewise.
6115         * modules/priv-set-tests (Files): Likewise.
6116         * modules/quotearg-tests (Files): Likewise.
6117         * modules/random_r-tests (Files): Likewise.
6118         * modules/rawmemchr-tests (Files): Likewise.
6119         * modules/rbtree-list-tests (Files): Likewise.
6120         * modules/rbtree-oset-tests (Files): Likewise.
6121         * modules/rbtreehash-list-tests (Files): Likewise.
6122         * modules/readlink-tests (Files): Likewise.
6123         * modules/remove-tests (Files): Likewise.
6124         * modules/rename-tests (Files): Likewise.
6125         * modules/renameat-tests (Files): Likewise.
6126         * modules/rmdir-tests (Files): Likewise.
6127         * modules/round-tests (Files): Likewise.
6128         * modules/roundf-tests (Files): Likewise.
6129         * modules/roundl-tests (Files): Likewise.
6130         * modules/safe-alloc-tests (Files): Likewise.
6131         * modules/setenv-tests (Files): Likewise.
6132         * modules/sigaction-tests (Files): Likewise.
6133         * modules/signbit-tests (Files): Likewise.
6134         * modules/sleep-tests (Files): Likewise.
6135         * modules/snprintf-posix-tests (Files): Likewise.
6136         * modules/snprintf-tests (Files): Likewise.
6137         * modules/sprintf-posix-tests (Files): Likewise.
6138         * modules/stat-tests (Files): Likewise.
6139         * modules/stat-time-tests (Files): Likewise.
6140         * modules/strcasestr-tests (Files): Likewise.
6141         * modules/strchrnul-tests (Files): Likewise.
6142         * modules/strerror-tests (Files): Likewise.
6143         * modules/striconv-tests (Files): Likewise.
6144         * modules/striconveh-tests (Files): Likewise.
6145         * modules/striconveha-tests (Files): Likewise.
6146         * modules/strsignal-tests (Files): Likewise.
6147         * modules/strstr-tests (Files): Likewise.
6148         * modules/strtod-tests (Files): Likewise.
6149         * modules/strverscmp-tests (Files): Likewise.
6150         * modules/symlink-tests (Files): Likewise.
6151         * modules/symlinkat-tests (Files): Likewise.
6152         * modules/trunc-tests (Files): Likewise.
6153         * modules/truncf-tests (Files): Likewise.
6154         * modules/truncl-tests (Files): Likewise.
6155         * modules/uname-tests (Files): Likewise.
6156         * modules/unicase/cased-tests (Files): Likewise.
6157         * modules/unicase/ignorable-tests (Files): Likewise.
6158         * modules/unicase/locale-language-tests (Files): Likewise.
6159         * modules/unicase/tolower-tests (Files): Likewise.
6160         * modules/unicase/totitle-tests (Files): Likewise.
6161         * modules/unicase/toupper-tests (Files): Likewise.
6162         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6163         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6164         * modules/unicase/u8-casefold-tests (Files): Likewise.
6165         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6166         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6167         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6168         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6169         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6170         * modules/unicase/u8-tolower-tests (Files): Likewise.
6171         * modules/unicase/u8-totitle-tests (Files): Likewise.
6172         * modules/unicase/u8-toupper-tests (Files): Likewise.
6173         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6174         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6175         * modules/unicase/u16-casefold-tests (Files): Likewise.
6176         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6177         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6178         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6179         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6180         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6181         * modules/unicase/u16-tolower-tests (Files): Likewise.
6182         * modules/unicase/u16-totitle-tests (Files): Likewise.
6183         * modules/unicase/u16-toupper-tests (Files): Likewise.
6184         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6185         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6186         * modules/unicase/u32-casefold-tests (Files): Likewise.
6187         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6188         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6189         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6190         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6191         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6192         * modules/unicase/u32-tolower-tests (Files): Likewise.
6193         * modules/unicase/u32-totitle-tests (Files): Likewise.
6194         * modules/unicase/u32-toupper-tests (Files): Likewise.
6195         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6196         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6197         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6198         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6199         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6200         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6201         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6202         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6203         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6204         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6205         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6206         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6207         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6208         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6209         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6210         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6211         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6212         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6213         * modules/unictype/block-list-tests (Files): Likewise.
6214         * modules/unictype/block-of-tests (Files): Likewise.
6215         * modules/unictype/block-test-tests (Files): Likewise.
6216         * modules/unictype/category-C-tests (Files): Likewise.
6217         * modules/unictype/category-Cc-tests (Files): Likewise.
6218         * modules/unictype/category-Cf-tests (Files): Likewise.
6219         * modules/unictype/category-Cn-tests (Files): Likewise.
6220         * modules/unictype/category-Co-tests (Files): Likewise.
6221         * modules/unictype/category-Cs-tests (Files): Likewise.
6222         * modules/unictype/category-L-tests (Files): Likewise.
6223         * modules/unictype/category-Ll-tests (Files): Likewise.
6224         * modules/unictype/category-Lm-tests (Files): Likewise.
6225         * modules/unictype/category-Lo-tests (Files): Likewise.
6226         * modules/unictype/category-Lt-tests (Files): Likewise.
6227         * modules/unictype/category-Lu-tests (Files): Likewise.
6228         * modules/unictype/category-M-tests (Files): Likewise.
6229         * modules/unictype/category-Mc-tests (Files): Likewise.
6230         * modules/unictype/category-Me-tests (Files): Likewise.
6231         * modules/unictype/category-Mn-tests (Files): Likewise.
6232         * modules/unictype/category-N-tests (Files): Likewise.
6233         * modules/unictype/category-Nd-tests (Files): Likewise.
6234         * modules/unictype/category-Nl-tests (Files): Likewise.
6235         * modules/unictype/category-No-tests (Files): Likewise.
6236         * modules/unictype/category-P-tests (Files): Likewise.
6237         * modules/unictype/category-Pc-tests (Files): Likewise.
6238         * modules/unictype/category-Pd-tests (Files): Likewise.
6239         * modules/unictype/category-Pe-tests (Files): Likewise.
6240         * modules/unictype/category-Pf-tests (Files): Likewise.
6241         * modules/unictype/category-Pi-tests (Files): Likewise.
6242         * modules/unictype/category-Po-tests (Files): Likewise.
6243         * modules/unictype/category-Ps-tests (Files): Likewise.
6244         * modules/unictype/category-S-tests (Files): Likewise.
6245         * modules/unictype/category-Sc-tests (Files): Likewise.
6246         * modules/unictype/category-Sk-tests (Files): Likewise.
6247         * modules/unictype/category-Sm-tests (Files): Likewise.
6248         * modules/unictype/category-So-tests (Files): Likewise.
6249         * modules/unictype/category-Z-tests (Files): Likewise.
6250         * modules/unictype/category-Zl-tests (Files): Likewise.
6251         * modules/unictype/category-Zp-tests (Files): Likewise.
6252         * modules/unictype/category-Zs-tests (Files): Likewise.
6253         * modules/unictype/category-and-not-tests (Files): Likewise.
6254         * modules/unictype/category-and-tests (Files): Likewise.
6255         * modules/unictype/category-byname-tests (Files): Likewise.
6256         * modules/unictype/category-name-tests (Files): Likewise.
6257         * modules/unictype/category-none-tests (Files): Likewise.
6258         * modules/unictype/category-of-tests (Files): Likewise.
6259         * modules/unictype/category-or-tests (Files): Likewise.
6260         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6261         * modules/unictype/combining-class-tests (Files): Likewise.
6262         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6263         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6264         * modules/unictype/ctype-blank-tests (Files): Likewise.
6265         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6266         * modules/unictype/ctype-digit-tests (Files): Likewise.
6267         * modules/unictype/ctype-graph-tests (Files): Likewise.
6268         * modules/unictype/ctype-lower-tests (Files): Likewise.
6269         * modules/unictype/ctype-print-tests (Files): Likewise.
6270         * modules/unictype/ctype-punct-tests (Files): Likewise.
6271         * modules/unictype/ctype-space-tests (Files): Likewise.
6272         * modules/unictype/ctype-upper-tests (Files): Likewise.
6273         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6274         * modules/unictype/decimal-digit-tests (Files): Likewise.
6275         * modules/unictype/digit-tests (Files): Likewise.
6276         * modules/unictype/mirror-tests (Files): Likewise.
6277         * modules/unictype/numeric-tests (Files): Likewise.
6278         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6279         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6280         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6281         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6282         Likewise.
6283         * modules/unictype/property-bidi-block-separator-tests (Files):
6284         Likewise.
6285         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6286         Likewise.
6287         * modules/unictype/property-bidi-common-separator-tests (Files):
6288         Likewise.
6289         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6290         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6291         Likewise.
6292         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6293         Likewise.
6294         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6295         Likewise.
6296         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6297         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6298         Likewise.
6299         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6300         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6301         Likewise.
6302         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6303         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6304         * modules/unictype/property-bidi-segment-separator-tests (Files):
6305         Likewise.
6306         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6307         * modules/unictype/property-byname-tests (Files): Likewise.
6308         * modules/unictype/property-combining-tests (Files): Likewise.
6309         * modules/unictype/property-composite-tests (Files): Likewise.
6310         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6311         * modules/unictype/property-dash-tests (Files): Likewise.
6312         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6313         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6314         Likewise.
6315         * modules/unictype/property-deprecated-tests (Files): Likewise.
6316         * modules/unictype/property-diacritic-tests (Files): Likewise.
6317         * modules/unictype/property-extender-tests (Files): Likewise.
6318         * modules/unictype/property-format-control-tests (Files): Likewise.
6319         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6320         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6321         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6322         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6323         * modules/unictype/property-hyphen-tests (Files): Likewise.
6324         * modules/unictype/property-id-continue-tests (Files): Likewise.
6325         * modules/unictype/property-id-start-tests (Files): Likewise.
6326         * modules/unictype/property-ideographic-tests (Files): Likewise.
6327         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6328         * modules/unictype/property-ids-trinary-operator-tests (Files):
6329         Likewise.
6330         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6331         * modules/unictype/property-iso-control-tests (Files): Likewise.
6332         * modules/unictype/property-join-control-tests (Files): Likewise.
6333         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6334         * modules/unictype/property-line-separator-tests (Files): Likewise.
6335         * modules/unictype/property-logical-order-exception-tests (Files):
6336         Likewise.
6337         * modules/unictype/property-lowercase-tests (Files): Likewise.
6338         * modules/unictype/property-math-tests (Files): Likewise.
6339         * modules/unictype/property-non-break-tests (Files): Likewise.
6340         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6341         * modules/unictype/property-numeric-tests (Files): Likewise.
6342         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6343         * modules/unictype/property-other-default-ignorable-code-point-tests
6344         (Files): Likewise.
6345         * modules/unictype/property-other-grapheme-extend-tests (Files):
6346         Likewise.
6347         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6348         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6349         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6350         * modules/unictype/property-other-math-tests (Files): Likewise.
6351         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6352         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6353         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6354         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6355         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6356         * modules/unictype/property-private-use-tests (Files): Likewise.
6357         * modules/unictype/property-punctuation-tests (Files): Likewise.
6358         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6359         * modules/unictype/property-radical-tests (Files): Likewise.
6360         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6361         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6362         * modules/unictype/property-space-tests (Files): Likewise.
6363         * modules/unictype/property-terminal-punctuation-tests (Files):
6364         Likewise.
6365         * modules/unictype/property-test-tests (Files): Likewise.
6366         * modules/unictype/property-titlecase-tests (Files): Likewise.
6367         * modules/unictype/property-unassigned-code-value-tests (Files):
6368         Likewise.
6369         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6370         * modules/unictype/property-uppercase-tests (Files): Likewise.
6371         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6372         * modules/unictype/property-white-space-tests (Files): Likewise.
6373         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6374         * modules/unictype/property-xid-start-tests (Files): Likewise.
6375         * modules/unictype/property-zero-width-tests (Files): Likewise.
6376         * modules/unictype/scripts-tests (Files): Likewise.
6377         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6378         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6379         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6380         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6381         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6382         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6383         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6384         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6385         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6386         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6387         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6388         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6389         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6390         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6391         * modules/uninorm/composition-tests (Files): Likewise.
6392         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6393         * modules/uninorm/decomposition-tests (Files): Likewise.
6394         * modules/uninorm/filter-tests (Files): Likewise.
6395         * modules/uninorm/nfc-tests (Files): Likewise.
6396         * modules/uninorm/nfd-tests (Files): Likewise.
6397         * modules/uninorm/nfkc-tests (Files): Likewise.
6398         * modules/uninorm/nfkd-tests (Files): Likewise.
6399         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6400         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6401         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6402         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6403         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6404         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6405         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6406         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6407         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6408         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6409         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6410         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6411         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6412         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6413         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6414         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6415         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6416         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6417         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6418         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6419         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6420         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6421         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6422         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6423         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6424         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6425         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6426         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6427         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6428         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6429         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6430         * modules/uniwidth/u8-width-tests (Files): Likewise.
6431         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6432         * modules/uniwidth/u16-width-tests (Files): Likewise.
6433         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6434         * modules/uniwidth/u32-width-tests (Files): Likewise.
6435         * modules/uniwidth/width-tests (Files): Likewise.
6436         * modules/unlink-tests (Files): Likewise.
6437         * modules/unsetenv-tests (Files): Likewise.
6438         * modules/usleep-tests (Files): Likewise.
6439         * modules/utimens-tests (Files): Likewise.
6440         * modules/utimensat-tests (Files): Likewise.
6441         * modules/vasnprintf-posix-tests (Files): Likewise.
6442         * modules/vasnprintf-tests (Files): Likewise.
6443         * modules/vasprintf-posix-tests (Files): Likewise.
6444         * modules/vasprintf-tests (Files): Likewise.
6445         * modules/vdprintf-posix-tests (Files): Likewise.
6446         * modules/vfprintf-posix-tests (Files): Likewise.
6447         * modules/vprintf-posix-tests (Files): Likewise.
6448         * modules/vsnprintf-posix-tests (Files): Likewise.
6449         * modules/vsnprintf-tests (Files): Likewise.
6450         * modules/vsprintf-posix-tests (Files): Likewise.
6451         * modules/wcrtomb-tests (Files): Likewise.
6452         * modules/wcsnrtombs-tests (Files): Likewise.
6453         * modules/wcsrtombs-tests (Files): Likewise.
6454         * modules/wctype-tests (Files): Likewise.
6455         * modules/wcwidth-tests (Files): Likewise.
6456         * modules/xmemdup0-tests (Files): Likewise.
6457         * modules/xprintf-posix-tests (Files): Likewise.
6458         * modules/xvasprintf-tests (Files): Likewise.
6459
6460 2009-12-24  Eric Blake  <ebb9@byu.net>
6461
6462         test-nanosleep: fix typo
6463         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6464         patch.
6465         Reported by Bruno Haible.
6466
6467 2009-12-24  Bruno Haible  <bruno@clisp.org>
6468
6469         Reduce namespace pollution on glibc systems.
6470         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6471         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6472         systems.
6473         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6474         <getopt.h> on glibc systems.
6475         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6476         systems.
6477         * lib/fcntl.c: Include <unistd.h> here instead.
6478
6479 2009-12-24  Bruno Haible  <bruno@clisp.org>
6480
6481         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6482
6483 2009-12-24  Eric Blake  <ebb9@byu.net>
6484
6485         tests: add signature checks
6486         * tests/signature.h (SIGNATURE_CHECK): New file.
6487         * modules/atexit-tests (Files): Use it.
6488         * modules/btowc-tests (Files): Likewise.
6489         * modules/canonicalize-lgpl-tests (Files): Likewise.
6490         * modules/ceilf-tests (Files): Likewise.
6491         * modules/ceill-tests (Files): Likewise.
6492         * modules/chown-tests (Files): Likewise.
6493         * modules/dprintf-posix-tests (Files): Likewise.
6494         * modules/dup2-tests (Files): Likewise.
6495         * modules/dup3-tests (Files): Likewise.
6496         * modules/duplocale-tests (Files): Likewise.
6497         * modules/fchdir-tests (Files): Likewise.
6498         * modules/fcntl-tests (Files): Likewise.
6499         * modules/fdopendir-tests (Files): Likewise.
6500         * modules/fflush-tests (Files): Likewise.
6501         * modules/flock-tests (Files): Likewise.
6502         * modules/floorf-tests (Files): Likewise.
6503         * modules/floorl-tests (Files): Likewise.
6504         * modules/fnmatch-tests (Files): Likewise.
6505         * modules/fopen-tests (Files): Likewise.
6506         * modules/fprintf-posix-tests (Files): Likewise.
6507         * modules/freopen-tests (Files): Likewise.
6508         * modules/frexp-nolibm-tests (Files): Likewise.
6509         * modules/frexp-tests (Files): Likewise.
6510         * modules/frexpl-nolibm-tests (Files): Likewise.
6511         * modules/frexpl-tests (Files): Likewise.
6512         * modules/fseek-tests (Files): Likewise.
6513         * modules/fseeko-tests (Files): Likewise.
6514         * modules/fsync-tests (Files): Likewise.
6515         * modules/ftell-tests (Files): Likewise.
6516         * modules/ftello-tests (Files): Likewise.
6517         * modules/futimens-tests (Files): Likewise.
6518         * modules/getaddrinfo-tests (Files): Likewise.
6519         * modules/getcwd-tests (Files): Likewise.
6520         * modules/getdelim-tests (Files): Likewise.
6521         * modules/getdtablesize-tests (Files): Likewise.
6522         * modules/getgroups-tests (Files): Likewise.
6523         * modules/gethostname-tests (Files): Likewise.
6524         * modules/getline-tests (Files): Likewise.
6525         * modules/getopt-posix-tests (Files): Likewise.
6526         * modules/gettimeofday-tests (Files): Likewise.
6527         * modules/glob-tests (Files): Likewise.
6528         * modules/iconv-tests (Files): Likewise.
6529         * modules/inet_ntop-tests (Files): Likewise.
6530         * modules/inet_pton-tests (Files): Likewise.
6531         * modules/isblank-tests (Files): Likewise.
6532         * modules/lchown-tests (Files): Likewise.
6533         * modules/ldexpl-tests (Files): Likewise.
6534         * modules/link-tests (Files): Likewise.
6535         * modules/linkat-tests (Files): Likewise.
6536         * modules/lseek-tests (Files): Likewise.
6537         * modules/lstat-tests (Files): Likewise.
6538         * modules/mbrtowc-tests (Files): Likewise.
6539         * modules/mbsinit-tests (Files): Likewise.
6540         * modules/mbsnrtowcs-tests (Files): Likewise.
6541         * modules/mbsrtowcs-tests (Files): Likewise.
6542         * modules/memchr-tests (Files): Likewise.
6543         * modules/memcmp-tests (Files): Likewise.
6544         * modules/memmem-tests (Files): Likewise.
6545         * modules/memrchr-tests (Files): Likewise.
6546         * modules/mkdir-tests (Files): Likewise.
6547         * modules/mkfifo-tests (Files): Likewise.
6548         * modules/mkfifoat-tests (Files): Likewise.
6549         * modules/mknod-tests (Files): Likewise.
6550         * modules/nanosleep-tests (Files): Likewise.
6551         * modules/nl_langinfo-tests (Files): Likewise.
6552         * modules/obstack-printf-tests (Files): Likewise.
6553         * modules/open-tests (Files): Likewise.
6554         * modules/openat-tests (Files): Likewise.
6555         * modules/perror-tests (Files): Likewise.
6556         * modules/pipe2-tests (Files): Likewise.
6557         * modules/poll-tests (Files): Likewise.
6558         * modules/popen-tests (Files): Likewise.
6559         * modules/posix_spawn-tests (Files): Likewise.
6560         * modules/posix_spawnp-tests (Files): Likewise.
6561         * modules/pread-tests (Files): Likewise.
6562         * modules/printf-posix-tests (Files): Likewise.
6563         * modules/pty-tests (Files): Likewise.
6564         * modules/random_r-tests (Files): Likewise.
6565         * modules/rawmemchr-tests (Files): Likewise.
6566         * modules/readlink-tests (Files): Likewise.
6567         * modules/remove-tests (Files): Likewise.
6568         * modules/rename-tests (Files): Likewise.
6569         * modules/renameat-tests (Files): Likewise.
6570         * modules/rmdir-tests (Files): Likewise.
6571         * modules/round-tests (Files): Likewise.
6572         * modules/roundf-tests (Files): Likewise.
6573         * modules/roundl-tests (Files): Likewise.
6574         * modules/select-tests (Files): Likewise.
6575         * modules/setenv-tests (Files): Likewise.
6576         * modules/sigaction-tests (Files): Likewise.
6577         * modules/sleep-tests (Files): Likewise.
6578         * modules/snprintf-posix-tests (Files): Likewise.
6579         * modules/snprintf-tests (Files): Likewise.
6580         * modules/sprintf-posix-tests (Files): Likewise.
6581         * modules/stat-tests (Files): Likewise.
6582         * modules/strcasestr-tests (Files): Likewise.
6583         * modules/strchrnul-tests (Files): Likewise.
6584         * modules/strerror-tests (Files): Likewise.
6585         * modules/strsignal-tests (Files): Likewise.
6586         * modules/strstr-tests (Files): Likewise.
6587         * modules/strtod-tests (Files): Likewise.
6588         * modules/strverscmp-tests (Files): Likewise.
6589         * modules/symlink-tests (Files): Likewise.
6590         * modules/symlinkat-tests (Files): Likewise.
6591         * modules/times-tests (Files): Likewise.
6592         * modules/trunc-tests (Files): Likewise.
6593         * modules/truncf-tests (Files): Likewise.
6594         * modules/truncl-tests (Files): Likewise.
6595         * modules/tsearch-tests (Files): Likewise.
6596         * modules/uname-tests (Files): Likewise.
6597         * modules/unlink-tests (Files): Likewise.
6598         * modules/unsetenv-tests (Files): Likewise.
6599         * modules/usleep-tests (Files): Likewise.
6600         * modules/utimensat-tests (Files): Likewise.
6601         * modules/vasprintf-tests (Files): Likewise.
6602         * modules/vdprintf-posix-tests (Files): Likewise.
6603         * modules/vfprintf-posix-tests (Files): Likewise.
6604         * modules/vprintf-posix-tests (Files): Likewise.
6605         * modules/vsnprintf-posix-tests (Files): Likewise.
6606         * modules/vsnprintf-tests (Files): Likewise.
6607         * modules/vsprintf-posix-tests (Files): Likewise.
6608         * modules/wcrtomb-tests (Files): Likewise.
6609         * modules/wcsnrtombs-tests (Files): Likewise.
6610         * modules/wcsrtombs-tests (Files): Likewise.
6611         * modules/wcwidth-tests (Files): Likewise.
6612         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6613         * tests/test-isinf.c (isinf): Likewise.
6614         * tests/test-isnan.c (isnan): Likewise.
6615         * tests/test-signbit.c (signbit): Likewise.
6616         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6617         declaration, either as macro or with correct signature.
6618         (select): Ensure function under test is declared with correct
6619         signature in correct header.
6620         * tests/test-atexit.c (atexit): Likewise.
6621         * tests/test-btowc.c (btowc): Likewise.
6622         * tests/test-canonicalize-lgpl.c (realpath)
6623         (canonicalize_file_name): Likewise.
6624         * tests/test-ceilf1.c (ceilf): Likewise.
6625         * tests/test-ceill.c (ceill): Likewise.
6626         * tests/test-chown.c (chown): Likewise.
6627         * tests/test-dprintf-posix.c (dprintf): Likewise.
6628         * tests/test-dup2.c (dup2): Likewise.
6629         * tests/test-dup3.c (dup3): Likewise.
6630         * tests/test-duplocale.c (duplocale): Likewise.
6631         * tests/test-fchdir.c (fchdir): Likewise.
6632         * tests/test-fchownat.c (fchownat): Likewise.
6633         * tests/test-fcntl.c (fcntl): Likewise.
6634         * tests/test-fdopendir.c (fdopendir): Likewise.
6635         * tests/test-fflush.c (fflush): Likewise.
6636         * tests/test-flock.c (flock): Likewise.
6637         * tests/test-floorf1.c (floorf): Likewise.
6638         * tests/test-floorl.c (floorl): Likewise.
6639         * tests/test-fnmatch.c (fnmatch): Likewise.
6640         * tests/test-fopen.c (fopen): Likewise.
6641         * tests/test-fprintf-posix.c (fprintf): Likewise.
6642         * tests/test-freopen.c (freopen): Likewise.
6643         * tests/test-frexp.c (frexp): Likewise.
6644         * tests/test-frexpl.c (frexpl): Likewise.
6645         * tests/test-fseek.c (fseek): Likewise.
6646         * tests/test-fseeko.c (fseeko): Likewise.
6647         * tests/test-fstatat.c (fstatat): Likewise.
6648         * tests/test-fsync.c (fsync): Likewise.
6649         * tests/test-ftell.c (ftell): Likewise.
6650         * tests/test-ftello.c (ftello): Likewise.
6651         * tests/test-futimens.c (futimens): Likewise.
6652         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6653         (gai_strerror): Likewise.
6654         * tests/test-getcwd.c (getcwd): Likewise.
6655         * tests/test-getdelim.c (getdelim): Likewise.
6656         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6657         * tests/test-getgroups.c (getgroups): Likewise.
6658         * tests/test-gethostname.c (gethostname): Likewise.
6659         * tests/test-getline.c (getline): Likewise.
6660         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6661         Likewise.
6662         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6663         * tests/test-glob.c (glob, globfree): Likewise.
6664         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6665         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6666         * tests/test-inet_pton.c (inet_pton): Likewise.
6667         * tests/test-isblank.c (isblank): Likewise.
6668         * tests/test-lchown.c (lchown): Likewise.
6669         * tests/test-ldexpl.c (ldexpl): Likewise.
6670         * tests/test-link.c (link): Likewise.
6671         * tests/test-linkat.c (linkat): Likewise.
6672         * tests/test-lseek.c (lseek): Likewise.
6673         * tests/test-lstat.c (lstat): Likewise.
6674         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6675         * tests/test-mbsinit.c (mbsinit): Likewise.
6676         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6677         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6678         * tests/test-memchr.c (memchr): Likewise.
6679         * tests/test-memcmp.c (memcmp): Likewise.
6680         * tests/test-memmem.c (memmem): Likewise.
6681         * tests/test-memrchr.c (memrchr): Likewise.
6682         * tests/test-mkdir.c (mkdir): Likewise.
6683         * tests/test-mkdirat.c (mkdirat): Likewise.
6684         * tests/test-mkfifo.c (mkfifo): Likewise.
6685         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6686         * tests/test-mknod.c (mknod): Likewise.
6687         * tests/test-nanosleep.c (nanosleep): Likewise.
6688         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6689         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6690         Likewise.
6691         * tests/test-open.c (open): Likewise.
6692         * tests/test-openat.c (openat): Likewise.
6693         * tests/test-perror.c (perror): Likewise.
6694         * tests/test-pipe2.c (pipe2): Likewise.
6695         * tests/test-poll.c (poll): Likewise.
6696         * tests/test-popen.c (popen, pclose): Likewise.
6697         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6698         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6699         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6700         (posix_spawn_file_actions_destroy)
6701         (posix_spawn_file_actions_addclose)
6702         (posix_spawn_file_actions_addopen)
6703         (posix_spawn_file_actions_adddup2): Likewise.
6704         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6705         * tests/test-pread.c (pread): Likewise.
6706         * tests/test-printf-posix.c (printf): Likewise.
6707         * tests/test-pty.c (openpty, forkpty): Likewise.
6708         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6709         (random_r): Likewise.
6710         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6711         * tests/test-readlink.c (readlink): Likewise.
6712         * tests/test-remove.c (remove): Likewise.
6713         * tests/test-rename.c (rename): Likewise.
6714         * tests/test-renameat.c (renameat): Likewise.
6715         * tests/test-rmdir.c (rmdir): Likewise.
6716         * tests/test-round1.c (round): Likewise.
6717         * tests/test-roundf1.c (roundf): Likewise.
6718         * tests/test-roundl.c (roundl): Likewise.
6719         * tests/test-setenv.c (setenv): Likewise.
6720         * tests/test-sigaction.c (sigaction): Likewise.
6721         * tests/test-sleep.c (sleep): Likewise.
6722         * tests/test-snprintf.c (snprintf): Likewise.
6723         * tests/test-sprintf-posix.c (sprintf): Likewise.
6724         * tests/test-stat.c (stat): Likewise.
6725         * tests/test-stpncpy.c (stpncpy): Likewise.
6726         * tests/test-strcasestr.c (strcasestr): Likewise.
6727         * tests/test-strchrnul.c (strchrnul): Likewise.
6728         * tests/test-strerror.c (strerror): Likewise.
6729         * tests/test-strsignal.c (strsignal): Likewise.
6730         * tests/test-strstr.c (strstr): Likewise.
6731         * tests/test-strtod.c (strtod): Likewise.
6732         * tests/test-strverscmp.c (strverscmp): Likewise.
6733         * tests/test-symlink.c (symlink): Likewise.
6734         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6735         * tests/test-times.c (times): Likewise.
6736         * tests/test-trunc1.c (trunc): Likewise.
6737         * tests/test-truncf1.c (truncf): Likewise.
6738         * tests/test-truncl.c (truncl): Likewise.
6739         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6740         Likewise.
6741         * tests/test-uname.c (uname): Likewise.
6742         * tests/test-unlink.c (unlink): Likewise.
6743         * tests/test-unlinkat.c (unlinkat): Likewise.
6744         * tests/test-unsetenv.c (unsetenv): Likewise.
6745         * tests/test-usleep.c (usleep): Likewise.
6746         * tests/test-utimensat.c (utimensat): Likewise.
6747         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6748         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6749         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6750         * tests/test-vprintf-posix.c (vprintf): Likewise.
6751         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6752         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6753         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6754         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6755         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6756         * tests/test-wcwidth.c (wcwidth): Likewise.
6757
6758         build: pull in conditional headers during GNULIB_POSIXCHECK
6759         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6760         definitions from any conditionally-included headers.
6761         * lib/stdlib.in.h (includes): Likewise.
6762         * lib/unistd.in.h (includes): Likewise.
6763
6764 2009-12-24  Bruno Haible  <bruno@clisp.org>
6765
6766         * tests/test-argv-iter.c: Include header file being tested immediately
6767         after config.h.
6768         * tests/test-base64.c: Likewise.
6769         * tests/test-flock.c: Likewise.
6770         * tests/test-fsync.c: Likewise.
6771         * tests/test-getdate.c: Likewise.
6772         * tests/test-getndelim2.c: Likewise.
6773         * tests/test-isfinite.c: Likewise.
6774         * tests/test-isinf.c: Likewise.
6775         * tests/test-strerror.c: Likewise.
6776         * tests/test-strsignal.c: Likewise.
6777
6778 2009-12-23  Eric Blake  <ebb9@byu.net>
6779
6780         unistd: work around cygwin bug
6781         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6782         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6783         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6784
6785 2009-12-23  Bruno Haible  <bruno@clisp.org>
6786
6787         localename: More tests.
6788         * tests/test-localename.c (SIZEOF): New macro.
6789         (categories): New variable.
6790         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6791         test_locale_name_default): Add test w.r.t. thread locale.
6792         (test_locale_name_thread): New function.
6793         (main): Invoke it.
6794
6795         localename: Make aware of thread locale.
6796         * lib/localename.h (gl_locale_name_thread): New declaration.
6797         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6798         behaviour with respect to thread locale.
6799         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6800         <langinfo.h>, glthread/lock.h.
6801         (SIZE_BITS): New macro.
6802         (string_hash): New function.
6803         (struct hash_node): New type.
6804         (HASH_TABLE_SIZE): New macro.
6805         (struniq_hash_table, struniq_lock): New variables.
6806         (struniq): New function.
6807         (gl_locale_name_thread): New function.
6808         (gl_locale_name): Invoke it.
6809         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6810         * modules/localename (Depends-on): Add lock.
6811         Reported by Mike Gran <spk121@yahoo.com>.
6812
6813 2009-12-23  Eric Blake  <ebb9@byu.net>
6814
6815         va-args: new module
6816         * modules/va-args: New file.
6817         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6818         * MODULES.html.sh (Core language properties): Mention it.
6819
6820         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6821         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6822         named alias for __attribute__((__unused__)).
6823         * lib/chown.c: Update client.
6824         * lib/fchmodat.c: Likewise.
6825         * lib/fts.c: Likewise.
6826         * lib/getdate.y: Likewise.
6827         * lib/getgroups.c: Likewise.
6828         * lib/getopt.c: Likewise.
6829         * lib/getugroups.c: Likewise.
6830         * lib/mkdir.c: Likewise.
6831         * lib/mkfifo.c: Likewise.
6832         * lib/mkfifoat.c: Likewise.
6833         * lib/mknod.c: Likewise.
6834         * lib/mknodat.c: Likewise.
6835         * lib/readlink.c: Likewise.
6836         * lib/se-context.in.h: Likewise.
6837         * lib/se-selinux.in.h: Likewise.
6838         * lib/sockets.c: Likewise.
6839         * lib/symlink.c: Likewise.
6840         * lib/symlinkat.c: Likewise.
6841         * lib/unicodeio.c: Likewise.
6842         * lib/unistr.h: Likewise.
6843         * tests/test-areadlink.c: Likewise.
6844         * tests/test-areadlinkat.c: Likewise.
6845         * tests/test-filenamecat.c: Likewise.
6846         * tests/test-fseeko.c: Likewise.
6847         * tests/test-ftello.c: Likewise.
6848         * tests/test-getdate.c: Likewise.
6849         * tests/test-getgroups.c: Likewise.
6850         * tests/test-gethostname.c: Likewise.
6851         * tests/test-quotearg.c: Likewise.
6852         * tests/test-version-etc.c: Likewise.
6853         * tests/test-xalloc-die.c: Likewise.
6854         * tests/test-xfprintf-posix.c: Likewise.
6855         * tests/test-xprintf-posix.c: Likewise.
6856         * tests/test-xvasprintf.c: Likewise.
6857
6858         tests: avoid compiler warnings
6859         * tests/test-fcntl.c (main): Delete unused parameters.
6860         * tests/test-freopen-safer.c (main): Likewise.
6861         * tests/test-xalloc-die.c (main): Mark unused parameters.
6862         * tests/test-fseeko.c (main): Likewise.
6863         * tests/test-ftello.c (main): Likewise.
6864         * tests/test-nanosleep.c (main): Avoid declaration warning.
6865         * tests/test-sleep.c (main): Likewise.
6866         * tests/test-unsetenv.c (main): Silence warning about string
6867         literal.
6868         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6869
6870 2009-12-23  Bruno Haible  <bruno@clisp.org>
6871
6872         * tests/test-localename.c (test_locale_name): New function, extracted
6873         from main. Also test mixed situations.
6874         (test_locale_name_posix, test_locale_name_environ,
6875         test_locale_name_default): New functions.
6876         (main): Invoke them all.
6877         * modules/localename-tests (configure.ac): Test for newlocale.
6878
6879 2009-12-23  Bruno Haible  <bruno@clisp.org>
6880
6881         unistd: Ensure getcwd gets declared before being overridden.
6882         * lib/unistd.in.h: Conditionally include <io.h>.
6883
6884 2009-12-22  Bruno Haible  <bruno@clisp.org>
6885
6886         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6887         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6888         (gl_WCHAR_H): Invoke it.
6889         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6890         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6891         Reported by Karl Berry <karl@freefriends.org>.
6892
6893 2009-12-22  Eric Blake  <ebb9@byu.net>
6894
6895         math, unistd: avoid redundant includes
6896         * lib/math.in.h (isnan): No need to re-include <math.h>.
6897         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6898
6899         getsubopt: work around cygwin bug
6900         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6901         avoid conflicting with system getsubopt.
6902         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6903         bug.
6904
6905         getopt: synchronize from glibc
6906         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6907         parameter order.  Adjust all callers.
6908         (_getopt_internal_r, main): Adjust quoting in error messages.
6909         Drop considerations for outdated POSIX 1003.2 error message.
6910         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6911         callers.
6912         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6913
6914         test-getopt: test stderr behavior
6915         * modules/getopt-posix-tests (Depends-on): Add dup2.
6916         * tests/test-getopt.c (ASSERT): Avoid stderr.
6917         (main): Move stderr to a temporary file.
6918         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6919         Instead, add parameter to inform caller if output occurred.
6920         (test_getopt): Adjust all existing tests to expect silence, and
6921         add new tests of leading ":".
6922         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6923         glibc shortcomings with leading "-:" or "+:" in optstring.
6924         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6925         Likewise.
6926         * doc/posix-functions/getopt.texi (getopt): Likewise.
6927
6928         test-getopt: enhance test
6929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6930         supports optind=0.
6931         * tests/test-getopt.c (OPTIND_MIN): Move...
6932         * tests/test-getopt.h (OPTIND_MIN): ...here.
6933         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6934         Require that optind=0 works, since modern BSD supports it in
6935         addition to optreset, and since coreutils expects it.
6936         (test_getopt_long_only): New test.
6937         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6938         glibc shortcomings with 'W;', and enforcement of optind=0.
6939         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6940         Likewise.
6941
6942 2009-12-21  Bruno Haible  <bruno@clisp.org>
6943
6944         localename: Improvements for MacOS X and Cygwin.
6945         * lib/localename.h (gl_locale_name_environ): New declaration.
6946         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6947         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6948         (gl_locale_name_posix): Invoke it.
6949         (gl_locale_name_default): Add comments. Use Windows native API also on
6950         Cygwin.
6951
6952 2009-12-21  Bruno Haible  <bruno@clisp.org>
6953
6954         Update list of Win32 locale ids.
6955         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6956         (LANG_SAMI): Renamed from LANG_SAAMI.
6957         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6958         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6959         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6960         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6961         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6962         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6963         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6964         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6965         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6966         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6967         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6968         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6969         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6970         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6971         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6972         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6973         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6974         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6975         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6976         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6977         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6978         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6979         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6980         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6981         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6982         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6983         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6984         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6985         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6986         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6987         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6988         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6989         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6990         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6991         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6992         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6993         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6994         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6995         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6996         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6997         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6998         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6999         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7000         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7001         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7002         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7003         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7004         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7005         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7006         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7007         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7008         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7009         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7010         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7011         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7012         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7013         Add more languages and countries for Sami, Sorbian. Add more countries
7014         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7015         for Pashto. Change country for Syriac, Tswana.
7016
7017 2009-12-21  Eric Blake  <ebb9@byu.net>
7018
7019         test-utimens: avoid spurious failure
7020         * tests/test-chown.h (nap): Factor...
7021         * tests/nap.h: ...into new file.
7022         * tests/test-lchown.h (nap): Avoid duplication.
7023         * tests/test-utimens-common.h (nap): Use shared implementation,
7024         necessary on file systems with 1-second resolution.
7025         * modules/chown-tests (Files): Include new file.
7026         * modules/fdutimensat-tests (Files): Likewise.
7027         * modules/futimens-tests (Files): Likewise.
7028         * modules/lchown-tests (Files): Likewise.
7029         * modules/openat-tests (Files): Likewise.
7030         * modules/utimens-tests (Files): Likewise.
7031         * modules/utimensat-tests (Files): Likewise.
7032
7033 2009-12-19  Eric Blake  <ebb9@byu.net>
7034
7035         futimens, utimensat: work around Linux bug
7036         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7037         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7038         * lib/utimensat.c (rpl_utimensat): Work around it.
7039         * lib/futimens.c (rpl_futimens): Adjust comment.
7040
7041         utimens: work around Linux ctime bug
7042         * lib/utimens.c (detect_ctime_bug): New helper function.
7043         (update_timespec): Differentiate between workaround needed for
7044         this bug vs. what is needed for systems that lack utimensat.
7045         (fdutimens, lutimens): Work around bug.
7046
7047         utimens: check for ctime update
7048         * tests/test-utimens-common.h (check_ctime): Define.
7049         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7050         * tests/test-futimens.h (test_futimens): Likewise.
7051         * tests/test-lutimens.h (test_lutimens): Likewise.
7052         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7053         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7054
7055 2009-12-19  Bruno Haible  <bruno@clisp.org>
7056
7057         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7058         * tests/test-dprintf-posix2.sh: New file.
7059         * tests/test-dprintf-posix2.c: New file.
7060         * modules/dprintf-posix-tests (Files): Add them.
7061         (configure.ac): Check for getrlimit and setrlimit.
7062         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7063
7064 2009-12-19  Bruno Haible  <bruno@clisp.org>
7065
7066         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7067         * tests/test-fprintf-posix3.sh: New file.
7068         * tests/test-fprintf-posix3.c: New file.
7069         * modules/fprintf-posix-tests (Files): Add them.
7070         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7071
7072 2009-12-19  Eric Blake  <ebb9@byu.net>
7073
7074         dirfd: fix prototype
7075         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7076         * lib/dirfd.c (dirfd): Likewise.
7077
7078         canonicalize: reduce memory usage
7079         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7080         allocation to size.
7081         Reported by Solar Designer <solar@openwall.com>.
7082
7083 2009-12-19  Bruno Haible  <bruno@clisp.org>
7084
7085         New module attribute 'Applicability'.
7086         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7087         * gnulib-tool: New option --extract-applicability.
7088         (func_usage): Document it.
7089         (sed_extract_prog): Recognize it.
7090         (func_get_applicability): New function.
7091         (func_import): Generalize handling of 'link-warning' module.
7092         * modules/link-warning (Applicability): New section.
7093         * modules/arg-nonnull (Applicability): New section.
7094         Repoted by Simon Josefsson <simon@josefsson.org>.
7095
7096 2009-12-19  Bruno Haible  <bruno@clisp.org>
7097
7098         fflush: tweak
7099         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7100         * lib/fseeko.c (rpl_fseeko): Likewise.
7101
7102 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7103
7104         * lib/gl_list.h: Fix typo in comment.
7105
7106 2009-12-16  Eric Blake  <ebb9@byu.net>
7107
7108         fcntl: use to simplify other modules
7109         * modules/cloexec (Depends-on): Add fcntl.
7110         * modules/fchdir (Depends-on): Likewise.
7111         * modules/fd-safer-flag (Depends-on): Likewise.
7112         * modules/unistd-safer (Depends-on): Likewise.
7113         * modules/dup3 (configure.ac): Set module indicator.
7114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7115         missing.
7116         * lib/fchdir.c (_gl_register_dup): Fix comment.
7117         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7118         * lib/dup-safer.c (dup_safer): Likewise.
7119         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7120         * lib/dup3.c (dup3): Likewise.
7121         * tests/test-fchdir.c (main): Enhance test.
7122         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7123
7124         fcntl: port portions of fcntl to mingw
7125         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7126         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7127         replacement for mingw.
7128         * modules/fcntl (Description): Update.
7129         (Depends-on): Add dup2.
7130         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7131         * modules/fcntl-h (Makefile.am): Substitute it.
7132         * lib/fcntl.in.h (fcntl): Update declaration.
7133         (F_DUPFD, F_GETFD): New macros, when needed.
7134         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7135         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7136         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7137         we now guarantee.
7138
7139         fcntl: work around cygwin bug in F_DUPFD
7140         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7141         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7142         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7143         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7144         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7145
7146         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7147         * modules/fcntl (Files): List new files.
7148         (configure.ac): Run a test.
7149         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7150         * lib/fcntl.c (rpl_fcntl): Likewise.
7151         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7152         (gl_FCNTL_H): Always replace fcntl.h.
7153         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7154         * lib/fcntl.in.h (fcntl): Declare replacement.
7155         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7156         needed, plus a witness.
7157         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7158         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7159         * tests/test-fcntl.c: New file.
7160         * modules/fcntl-tests: Likewise.
7161
7162         binary-io: avoid potential compilation warning
7163         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7164         directives.
7165
7166         fflush: avoid compilation error on NetBSD
7167         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7168         between off_t and fpos_t, since the latter is sometimes a struct.
7169         * lib/fseeko.c (rpl_fseeko): Likewise.
7170         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7171
7172 2009-12-15  Eric Blake  <ebb9@byu.net>
7173
7174         fcntl-h, stdio, sys_ioctl: fix declarations
7175         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7176         function must not take arguments.
7177         * lib/sys_ioctl.in.h (ioctl): Likewise.
7178         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7179         (open): Add a link warning.
7180
7181 2009-12-15  Jim Meyering  <meyering@redhat.com>
7182
7183         areadlink, areadlink-with-size: relax license to LGPLv2+
7184         * modules/areadlink (License): Relax to LGPLv2+.
7185         * modules/areadlink-with-size (License): Likewise.
7186
7187 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7188             Bruno Haible  <bruno@clisp.org>
7189
7190         *printf: Fix memory leak.
7191         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7192         * lib/vfprintf.c (vfprintf): Likewise.
7193         * lib/dprintf.c (dprintf): Likewise.
7194         * lib/vdprintf.c (vdprintf): Likewise.
7195
7196 2009-12-14  Eric Blake  <ebb9@byu.net>
7197
7198         accept4: adjust module dependencies
7199         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7200
7201         utimens: one more try at avoiding compiler warning
7202         * lib/utimens.c (lutimens): Lower scope of result.
7203
7204 2009-12-13  Bruno Haible  <bruno@clisp.org>
7205
7206         Move the malloc checking from module 'list' to new module 'xlist'.
7207         * modules/xlist: New file.
7208         * lib/gl_xlist.h: New file.
7209         * lib/gl_xlist.c: New file.
7210         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7211         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7212         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7213         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7214         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7215         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7216         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7217         gl_sortedlist_nx_add): New declarations.
7218         (struct gl_list_implementation): Rename and change methods accordingly.
7219         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7220         (gl_list_nx_create): Renamed from gl_list_create.
7221         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7222         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7223         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7224         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7225         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7226         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7227         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7228         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7229         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7230         gl_list_create_empty.
7231         (gl_list_nx_create): Renamed from gl_list_create.
7232         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7233         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7234         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7235         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7236         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7237         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7238         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7239         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7240         * lib/gl_array_list.c: Don't include xalloc.h.
7241         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7242         NULL upon out-of-memory.
7243         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7244         out-of-memory.
7245         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7246         Change return type to 'int'.
7247         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7248         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7249         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7250         upon out-of-memory.
7251         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7252         upon out-of-memory.
7253         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7254         upon out-of-memory.
7255         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7256         upon out-of-memory.
7257         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7258         out-of-memory.
7259         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7260         Update.
7261         (gl_array_list_implementation): Update.
7262         * lib/gl_carray_list.c: Don't include xalloc.h.
7263         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7264         Return NULL upon out-of-memory.
7265         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7266         out-of-memory.
7267         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7268         Change return type to 'int'.
7269         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7270         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7271         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7272         upon out-of-memory.
7273         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7274         upon out-of-memory.
7275         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7276         out-of-memory.
7277         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7278         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7279         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7280         Update.
7281         (gl_carray_list_implementation): Update.
7282         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7283         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7284         gl_linked_create_empty. Return NULL upon out-of-memory.
7285         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7286         out-of-memory.
7287         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7288         Change return type to 'int'. Return -1 upon out-of-memory.
7289         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7290         out-of-memory.
7291         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7292         upon out-of-memory.
7293         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7294         upon out-of-memory.
7295         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7296         NULL upon out-of-memory.
7297         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7298         upon out-of-memory.
7299         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7300         out-of-memory.
7301         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7302         Update.
7303         * lib/gl_linked_list.c: Don't include xalloc.h.
7304         (gl_linked_list_implementation): Update.
7305         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7306         (add_to_bucket): Change return type to 'int'.
7307         (gl_linkedhash_list_implementation): Update.
7308         * lib/gl_anytree_list1.h (free_subtree): New function.
7309         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7310         gl_tree_create_empty. Return NULL upon out-of-memory.
7311         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7312         Change return type to 'int'. Return -1 upon out-of-memory.
7313         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7314         out-of-memory.
7315         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7316         (gl_tree_remove_node): New function, moved here from
7317         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7318         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7319         Update.
7320         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7321         malloc, not xmalloc. Return NULL upon out-of-memory.
7322         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7323         out-of-memory.
7324         (gl_tree_remove_node_from_tree): New function, extracted from
7325         gl_tree_remove_node.
7326         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7327         upon out-of-memory.
7328         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7329         out-of-memory.
7330         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7331         upon out-of-memory.
7332         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7333         upon out-of-memory.
7334         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7335         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7336         not xmalloc. Return NULL upon out-of-memory.
7337         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7338         out-of-memory.
7339         (gl_tree_remove_node_from_tree): New function, extracted from
7340         gl_tree_remove_node.
7341         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7342         upon out-of-memory.
7343         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7344         out-of-memory.
7345         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7346         upon out-of-memory.
7347         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7348         upon out-of-memory.
7349         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7350         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7351         gl_anytree_list1.h before gl_anyavltree_list2.h.
7352         (gl_avltree_list_implementation): Update.
7353         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7354         gl_anytree_list1.h before gl_anyavltree_list2.h.
7355         (gl_rbtree_list_implementation): Update.
7356         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7357         Change return type to 'int'. Return -1 upon out-of-memory. Use
7358         __builtin_expect.
7359         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7360         (gl_avltreehash_list_implementation): Update.
7361         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7362         (gl_rbtreehash_list_implementation): Update.
7363         * modules/array-list (Depends-on): Remove xalloc.
7364         * modules/carray-list (Depends-on): Likewise.
7365         * modules/linked-list (Depends-on): Likewise.
7366         * modules/linkedhash-list (Depends-on): Likewise.
7367         * modules/avltree-list (Depends-on): Likewise.
7368         * modules/rbtree-list (Depends-on): Likewise.
7369         * modules/avltreehash-list (Depends-on): Likewise.
7370         * modules/rbtreehash-list (Depends-on): Likewise.
7371
7372         * modules/xsublist: New file.
7373         * lib/gl_xsublist.h: New file.
7374         * lib/gl_xsublist.c: New file.
7375         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7376         (gl_sublist_nx_create): New declaration.
7377         * lib/gl_sublist.c: Don't include xalloc.h.
7378         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7379         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7380         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7381         Change return type to 'int'. Return -1 upon out-of-memory.
7382         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7383         upon out-of-memory.
7384         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7385         NULL upon out-of-memory.
7386         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7387         upon out-of-memory.
7388         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7389         NULL upon out-of-memory.
7390         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7391         NULL upon out-of-memory.
7392         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7393         upon out-of-memory.
7394         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7395         (gl_sublist_list_implementation): Update.
7396         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7397         upon out-of-memory.
7398         * modules/sublist (Depends-on): Remove xalloc.
7399
7400         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7401         * tests/test-carray_list.c: Likewise.
7402         * tests/test-linked_list.c: Likewise.
7403         * tests/test-linkedhash_list.c: Likewise.
7404         * tests/test-avltree_list.c: Likewise.
7405         * tests/test-rbtree_list.c: Likewise.
7406         * tests/test-avltreehash_list.c: Likewise.
7407         * tests/test-rbtreehash_list.c: Likewise.
7408         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7409         * modules/carray-list-tests (Makefile.am): Likewise.
7410         * modules/linked-list-tests (Makefile.am): Likewise.
7411         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7412         * modules/avltree-list-tests (Makefile.am): Likewise.
7413         * modules/rbtree-list-tests (Makefile.am): Likewise.
7414         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7415         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7416
7417         * NEWS: Mention the changes.
7418
7419         * lib/clean-temp.c: Include gl_xlist.h.
7420         * modules/clean-temp (Depends-on): Add xlist.
7421
7422         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7423         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7424
7425         * tests/test-array_oset.c: Include gl_xlist.h.
7426         * modules/array-oset-tests (Depends-on): Add xlist.
7427
7428         Reported by José E. Marchesi <jemarch@gnu.org>.
7429
7430 2009-12-13  Bruno Haible  <bruno@clisp.org>
7431
7432         Move the malloc checking from module 'oset' to new module 'xoset'.
7433         * modules/xoset: New file.
7434         * lib/gl_xoset.h: New file.
7435         * lib/gl_xoset.c: New file.
7436         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7437         declarations.
7438         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7439         (struct gl_oset_implementation): Rename and change methods accordingly.
7440         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7441         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7442         'int'. Mark as __warn_unused_result__.
7443         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7444         gl_oset_create_empty.
7445         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7446         'int'.
7447         * lib/gl_array_oset.c: Don't include xalloc.h.
7448         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7449         malloc, not xmalloc.
7450         (grow): Change return type to 'int'. Don't call xalloc_die.
7451         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7452         to 'int'.
7453         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7454         'int'.
7455         (gl_array_oset_implementation): Update.
7456         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7457         gl_tree_create_empty.
7458         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7459         'int'.
7460         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7461         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7462         xmalloc.
7463         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7464         not xmalloc.
7465         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7466         xmalloc.
7467         (gl_avltree_oset_implementation): Update.
7468         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7469         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7470         xmalloc.
7471         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7472         not xmalloc.
7473         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7474         xmalloc.
7475         (gl_rbtree_oset_implementation): Update.
7476         * modules/array-oset (Depends-on): Remove xalloc.
7477         * modules/avltree-oset (Depends-on): Likewise.
7478         * modules/rbtree-oset (Depends-on): Likewise.
7479         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7480         * tests/test-avltree_oset.c: Likewise.
7481         * tests/test-rbtree_oset.c: Likewise.
7482         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7483         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7484         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7485         * NEWS: Mention the change.
7486
7487 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7488
7489         maint.mk: allow a project to override release-prep commands
7490         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7491         commands into a new rule.
7492         (release-prep): New rule.
7493         (release-prep-hook): New overridable variable.
7494
7495 2009-12-13  Bruno Haible  <bruno@clisp.org>
7496
7497         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7498
7499 2009-12-13  Jim Meyering  <meyering@redhat.com>
7500
7501         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7502         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7503
7504 2009-12-12  Bruno Haible  <bruno@clisp.org>
7505
7506         duplocale: Tweak.
7507         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7508
7509 2009-12-12  Karl Berry  <karl@gnu.org>
7510
7511         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7512
7513 2009-12-12  Bruno Haible  <bruno@clisp.org>
7514
7515         * m4/po.m4: Undo incorrect untabification.
7516
7517 2009-12-12  Bruno Haible  <bruno@clisp.org>
7518
7519         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7520         * modules/c-strtod (Depends-on): Add locale.
7521         * modules/c-strtold (Depends-on): Likewise.
7522
7523 2009-12-12  Bruno Haible  <bruno@clisp.org>
7524
7525         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7526
7527 2009-12-11  Eric Blake  <ebb9@byu.net>
7528
7529         setenv: relax requirement in light of POSIX ruling
7530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7531         not NULL.
7532         * tests/test-setenv.c (main): Relax test.
7533         * tests/test-unsetenv.c (main): Likewise.
7534         * doc/posix-functions/setenv.texi (setenv): Document this.
7535         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7536
7537 2009-12-11  Bruno Haible  <bruno@clisp.org>
7538
7539         New module 'fd-safer-flag'.
7540         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7541         * lib/dup-safer.c (dup_safer_flag): Remove function.
7542         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7543         * lib/fd-safer.c (fd_safer_flag): Remove function.
7544         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7545         * modules/cloexec (configure.ac): Drop indicator macro.
7546         * modules/fd-safer-flag: New file.
7547         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7548         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7549         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7550
7551 2009-12-11  Bruno Haible  <bruno@clisp.org>
7552
7553         Tests for module 'nl_langinfo'.
7554         * modules/nl_langinfo-tests: New file.
7555         * tests/test-nl_langinfo.sh: New file.
7556         * tests/test-nl_langinfo.c: New file.
7557
7558         New module 'nl_langinfo'.
7559         * lib/nl_langinfo.c: New file.
7560         * m4/nl_langinfo.m4: New file.
7561         * modules/nl_langinfo: New file.
7562         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7563
7564 2009-12-11  Bruno Haible  <bruno@clisp.org>
7565
7566         Tests for module 'langinfo'.
7567         * modules/langinfo-tests: New file.
7568         * tests/test-langinfo.c: New file.
7569
7570         New module 'langinfo'.
7571         * lib/langinfo.in.h: New file.
7572         * m4/langinfo_h.m4: New file.
7573         * modules/langinfo: New file.
7574         * doc/posix-headers/langinfo.texi: Mention the new module.
7575
7576 2009-12-11  Bruno Haible  <bruno@clisp.org>
7577
7578         * lib/config.charset: Untabify.
7579
7580 2009-12-11  Bruno Haible  <bruno@clisp.org>
7581
7582         * modules/unistd-safer (configure.ac): Drop indicator macro.
7583
7584 2009-12-11  Bruno Haible  <bruno@clisp.org>
7585
7586         Move pipe2-safer code to its own file.
7587         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7588         * lib/pipe-safer.c (pipe2_safer): Remove function.
7589         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7590         (Makefile.am): Add it to lib_SOURCES.
7591
7592 2009-12-10  Bruno Haible  <bruno@clisp.org>
7593
7594         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7595
7596 2009-12-10  Bruno Haible  <bruno@clisp.org>
7597
7598         Declare which arguments expect non-NULL values, for GCC and clang.
7599         * build-aux/arg-nonnull.h: New file.
7600         * modules/arg-nonnull: New file.
7601         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7602         (inet_ntop, inet_pton): Use it.
7603         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7604         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7605         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7606         (open, openat): Use it.
7607         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7608         (fnmatch): Use it.
7609         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7610         (getopt, getopt_long, getopt_long_only): Use it.
7611         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7612         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7613         Use it.
7614         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7615         (iconv_open): Use it.
7616         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7617         (strtoimax, strtoumax): Use it.
7618         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7619         (duplocale): Use it.
7620         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7621         (frexp, frexpl): Use it.
7622         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7623         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7624         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7625         (tsearch, tfind, tdelete, twalk): Use it.
7626         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7627         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7628         sigpending): Use it.
7629         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7630         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7631         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7632         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7633         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7634         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7635         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7636         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7637         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7638         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7639         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7640         Use it.
7641         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7642         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7643         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7644         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7645         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7646         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7647         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7648         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7649         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7650         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7651         strtoull, unsetenv): Use it.
7652         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7653         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7654         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7655         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7656         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7657         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7658         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7659         (strcasecmp, strncasecmp): Use it.
7660         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7661         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7662         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7663         rpl_setsockopt): Use it.
7664         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7665         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7666         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7667         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7668         (gettimeofday): Use it.
7669         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7670         (times): Use it.
7671         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7672         (uname): Use it.
7673         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7674         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7675         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7676         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7677         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7678         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7679         unlinkat, write): Use it.
7680         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7681         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7682         * lib/argv-iter.h: Include arg-nonnull.h.
7683         (_ATTRIBUTE_NONNULL_): Remove macro.
7684         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7685         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7686         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7687         optimization.
7688         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7689         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7690         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7691         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7692         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7693         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7694         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7695         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7696         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7697         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7698         * modules/dirent (Depends-on): Add arg-nonnull.
7699         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7700         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7701         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7702         * modules/fnmatch (Depends-on): Add arg-nonnull.
7703         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7704         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7705         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7706         * modules/glob (Depends-on): Add arg-nonnull.
7707         (Makefile.am): Insert arg-nonnull.h into glob.h.
7708         * modules/iconv_open (Depends-on): Add arg-nonnull.
7709         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7710         * modules/inttypes (Depends-on): Add arg-nonnull.
7711         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7712         * modules/locale (Depends-on): Add arg-nonnull.
7713         (Makefile.am): Insert arg-nonnull.h into locale.h.
7714         * modules/math (Depends-on): Add arg-nonnull.
7715         (Makefile.am): Insert arg-nonnull.h into math.h.
7716         * modules/netdb (Depends-on): Add arg-nonnull.
7717         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7718         * modules/search (Depends-on): Add arg-nonnull.
7719         (Makefile.am): Insert arg-nonnull.h into search.h.
7720         * modules/signal (Depends-on): Add arg-nonnull.
7721         (Makefile.am): Insert arg-nonnull.h into signal.h.
7722         * modules/spawn (Depends-on): Add arg-nonnull.
7723         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7724         * modules/stdio (Depends-on): Add arg-nonnull.
7725         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7726         * modules/stdlib (Depends-on): Add arg-nonnull.
7727         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7728         * modules/string (Depends-on): Add arg-nonnull.
7729         (Makefile.am): Insert arg-nonnull.h into string.h.
7730         * modules/strings (Depends-on): Add arg-nonnull.
7731         (Makefile.am): Insert arg-nonnull.h into strings.h.
7732         * modules/sys_socket (Depends-on): Add arg-nonnull.
7733         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7734         * modules/sys_stat (Depends-on): Add arg-nonnull.
7735         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7736         * modules/sys_time (Depends-on): Add arg-nonnull.
7737         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7738         * modules/sys_times (Depends-on): Add arg-nonnull.
7739         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7740         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7741         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7742         * modules/time (Depends-on): Add arg-nonnull.
7743         (Makefile.am): Insert arg-nonnull.h into time.h.
7744         * modules/unistd (Depends-on): Add arg-nonnull.
7745         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7746         * modules/wchar (Depends-on): Add arg-nonnull.
7747         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7748         * modules/argv-iter (Depends-on): Add arg-nonnull.
7749         * tests/test-canonicalize.c (null_ptr): New function.
7750         (main): Use it.
7751         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7752         (main): Use it.
7753         * tests/test-memmem.c (null_ptr): New function.
7754         (main): Use it.
7755         Reported by Jim Meyering.
7756
7757 2009-12-10  Bruno Haible  <bruno@clisp.org>
7758
7759         Use spaces for indentation, not tabs.
7760         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7761         * m4/*.m4: Untabify.
7762         * build-aux/*.h: Untabify.
7763         * tests/**/*.[hc]: Untabify.
7764         * README: New section "Indent with spaces, not TABs", based on
7765         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7766         * NEWS: Mention the change.
7767
7768 2009-12-10  Bruno Haible  <bruno@clisp.org>
7769
7770         pty test: Fix link error.
7771         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7772         test_pty_LDADD.
7773
7774 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7775
7776         * modules/pty: New file.
7777         * modules/pty-tests: New file.
7778         * m4/pty.m4: New file.
7779         * tests/test-pty.c: New file.
7780         * doc/glibc-headers/pty.texi: Modified.
7781         * doc/glibc-functions/forkpty.texi: Modified.
7782         * doc/glibc-functions/openpty.texi: Modified.
7783
7784 2009-12-10  Bruno Haible  <bruno@clisp.org>
7785
7786         Avoid syntax error in C++ mode.
7787         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7788
7789 2009-12-10  Bruno Haible  <bruno@clisp.org>
7790
7791         Use sed with option -e.
7792         * gnulib-tool (func_version, func_emit_copyright_notice,
7793         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7794         option -e to sed.
7795         * modules/link-warning (Makefile.am): Likewise.
7796
7797 2009-12-10  Jim Meyering  <meyering@redhat.com>
7798
7799         mgetgroups: do not write bytes beyond end of malloc'd buffer
7800         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7801         username, we call getgroups with a one-element-shorter buffer,
7802         but still told it the length was original, max_n_groups.
7803
7804 2009-12-09  Eric Blake  <ebb9@byu.net>
7805
7806         cloexec: relax license
7807         * modules/cloexec (Maintainer): Add myself.
7808         (License): Use LGPL, not GPL.
7809
7810         link-warning: optimize generation
7811         * modules/link-warning (Makefile.am): Reduce process usage.
7812
7813 2009-12-09  Bruno Haible  <bruno@clisp.org>
7814
7815         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7816         workaround was added on 2009-11-17.
7817
7818 2009-12-09  Jim Meyering  <meyering@redhat.com>
7819             Bruno Haible  <bruno@clisp.org>
7820
7821         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7822         * modules/link-warning (Makefile.am): Make the comment-removing sed
7823         command more robust in the face of bootstrap-prepended comment lines.
7824
7825 2009-12-09  Bruno Haible  <bruno@clisp.org>
7826
7827         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7828         most one group.
7829
7830 2009-12-09  Simon Josefsson <simon@josefsson.org>
7831             Bruno Haible  <bruno@clisp.org>
7832
7833         * build-aux/link-warning.h: Add copyright notice.
7834         * modules/link-warning (Makefile.am): Generate link-warning.h from
7835         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7836         * NEWS: Mention change in link-warning module.
7837         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7838         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7839         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7840         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7841         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7842         * modules/math (Makefile.am): Add dependency to math.h.
7843         * modules/search (Makefile.am): Add dependency to search.h.
7844         * modules/signal (Makefile.am): Add dependency to signal.h.
7845         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7846         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7847         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7848         * modules/string (Makefile.am): Add dependency to string.h.
7849         * modules/strings (Makefile.am): Add dependency to strings.h.
7850         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7851         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7852         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7853         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7854         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7855         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7856         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7857         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7858         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7859
7860 2009-12-09  Bruno Haible  <bruno@clisp.org>
7861
7862         fchdir: Optimize away rpl_fstat when possible.
7863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7864         REPLACE_OPEN_DIRECTORY.
7865         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7866
7867 2009-12-09  Bruno Haible  <bruno@clisp.org>
7868
7869         * lib/fchdir.c: Update comment.
7870
7871 2009-12-09  Bruno Haible  <bruno@clisp.org>
7872
7873         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7874
7875 2009-12-08  Eric Blake  <ebb9@byu.net>
7876
7877         fchdir: avoid memory leak on re-registration.
7878         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7879
7880 2009-12-08  Jim Meyering  <meyering@redhat.com>
7881
7882         init.sh: avoid Solaris 10 /bin/sh portability problem
7883         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7884         sourced script:
7885           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7886           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7887           bar
7888         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7889         and two tests used that idiom.
7890         * tests/init.sh: Update suggested usage comments.
7891         (path_prepend_): New function, to be used in place
7892         of the --src-path=DIR option.
7893         (setup_): Move PATH-prepending code into path_prepend_.
7894         * tests/test-pread.sh: Adapt to new usage.
7895         * tests/test-xalloc-die.sh: Likewise.
7896
7897 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7898
7899         * doc/gnulib.texi (Glibc pty.h): Add.
7900         * doc/glibc-functions/forkpty.texi: Add.
7901         * doc/glibc-functions/openpty.texi: Add.
7902         Suggested by Bruno Haible.
7903
7904 2009-12-08  Eric Blake  <ebb9@byu.net>
7905
7906         fchdir: fix logic bugs
7907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7908         * tests/test-fchdir.c (main): Enhance test.
7909         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7910         is in use.
7911
7912         dup2: fix logic bugs
7913         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7914         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7915         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7916         exists.
7917         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7918
7919 2009-12-07  Eric Blake  <ebb9@byu.net>
7920
7921         unlink: fix m4 detection
7922         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7923
7924         unistd-safer: add unit test
7925         * modules/unistd-safer-tests: New file.
7926         * tests/test-dup-safer.c: Likewise.
7927         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7928         * tests/test-dup2.c (setmode): Likewise.
7929         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7930
7931         cloexec: preserve text vs. binary across dup_cloexec
7932         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7933         mode.
7934         * modules/dup2-tests (Depends-on): Add binary-io.
7935         * modules/cloexec-tests (Depends-on): Likewise.
7936         * tests/test-dup2.c (setmode, is_mode): New helpers.
7937         (main): Add tests that translation mode is preserved.
7938         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7939         Reported by Bruno Haible.
7940
7941         mgetgroups: reduce duplicate listings
7942         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7943         resulting array.
7944         * tests/test-chown.h (test_chown): Simplify client.
7945         * tests/test-lchown.h (test_lchown): Likewise.
7946
7947 2009-12-06  Bruno Haible  <bruno@clisp.org>
7948
7949         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7950         value.
7951
7952 2009-12-06  Bruno Haible  <bruno@clisp.org>
7953
7954         * lib/progname.c: Include stdio.h, stdlib.h.
7955         (set_program_name): Reject a NULL argument.
7956
7957 2009-12-05  Eric Blake  <ebb9@byu.net>
7958
7959         pipe2-safer: new module
7960         * modules/pipe2-safer: New file.
7961         * lib/unistd-safer.h (pipe2_safer): New prototype.
7962         * lib/unistd--.h (pipe2): New wrapper.
7963         * lib/pipe-safer.c (pipe2_safer): New function.
7964         * modules/pipe (Depends-on): Add pipe2-safer.
7965         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7966
7967         stdlib-safer: preserve cloexec flag for mkostemp[s]
7968         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7969         fd_safer_flag.
7970
7971         unistd-safer: allow preservation of cloexec status via flag
7972         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7973         prototypes.
7974         * lib/dup-safer.c (dup_safer_flag): New function.
7975         * lib/fd-safer.c (fd_safer_flag): Likewise.
7976         * modules/cloexec (configure.ac): Set witness.
7977
7978         test-dup2: enhance test
7979         * modules/dup2-tests (Depends-on): Add cloexec.
7980         * tests/test-dup2.c (main): Enhance test.
7981
7982         cloexec: add dup_cloexec
7983         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7984         header and comments.
7985         * lib/cloexec.c (set_cloexec_flag): Add comments.
7986         (dup_cloexec): New function, with mingw implementation borrowed
7987         from...
7988         * lib/w32spawn.h (dup_noinherit): ...here.
7989         * modules/execute (Depends-on): Add cloexec.
7990         * modules/pipe (Depends-on): Likewise.
7991         * modules/cloexec (Depends-on): Add dup2.
7992         * modules/cloexec-tests (Files): New file.
7993         * tests/test-cloexec.c: Likewise.
7994
7995         test-xalloc-die: fix test for mingw
7996         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7997         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7998         directory and .exe suffix off argv[0] output.
7999
8000         test-fseeko: fix test for mingw
8001         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8002         than undefining fseek, so test will pass on mingw.
8003
8004 2009-12-05  Bruno Haible  <bruno@clisp.org>
8005
8006         * lib/progname.h (set_program_name): Clarify specification.
8007         * lib/progname.c (set_program_name): Likewise.
8008         Reported by Jim Meyering.
8009
8010 2009-12-05  Jim Meyering  <meyering@redhat.com>
8011
8012         maint.mk: backslash-escape parens in default regexp
8013         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8014         backslash-escape the literal parentheses.
8015
8016         maint.mk: news-date-check: use grep -E
8017         * top/maint.mk (today): Define a Make variable, not a...
8018         (news-date-check): ...shell variable.
8019         (news-date-regexp): Use the Make variable.
8020         Use grep's -E option.  Change the failing diagnostic to mention
8021         the variable, $(news-date-regexp).
8022
8023 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8024
8025         maintainer-makefile: allow customization of NEWS entry format
8026         * top/maint.mk (news-date-regexp): New overridable variable.
8027         (news-date-check): Use it.
8028
8029 2009-12-04  Eric Blake  <ebb9@byu.net>
8030
8031         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8032         * lib/mgetgroups.h (xgetgroups): New prototype.
8033         * lib/mgetgroups.c (xgetgroups): New wrapper.
8034         (mgetgroups): Handle ENOSYS.
8035         * modules/mgetgroups (Depends-on): Add realloc.
8036         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8037
8038         mgetgroups: avoid argument promotion issues with -1
8039         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8040         for invalid gid_t.
8041         * tests/test-chown.h (getegid, test_chown): Likewise.
8042         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8043
8044 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8045
8046         exclude: Fix header file problems.
8047         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8048
8049 2009-12-01  Jim Meyering  <meyering@redhat.com>
8050
8051         fts: fts_open: do not let an empty string cause immediate failure
8052         This is required in support of GNU rm, for which the command
8053         "rm A '' B" must process and remove both A and B, in spite of
8054         the empty string argument.
8055         * lib/fts.c (fts_open): Do not let the presence of an empty string
8056         cause fts_open to fail immediately.  Most fts-using tools must be
8057         able to process all arguments, in order, and can be expected to
8058         diagnose such arguments themselves.
8059
8060 2009-11-30  Eric Blake  <ebb9@byu.net>
8061
8062         utimens: fix compilation error
8063         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8064         Declare variable at right scope.
8065
8066 2009-11-29  Jim Meyering  <meyering@redhat.com>
8067
8068         bootstrap: handle perl-5.11's changed --version output
8069         * build-aux/bootstrap (get_version): Handle perl separately,
8070         since perl-5.11's --version output is different.
8071
8072 2009-11-28  Jim Meyering  <meyering@redhat.com>
8073
8074         userspec: depend on the inttostr module, too
8075         * modules/userspec (Depends-on): Add inttostr.
8076
8077         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8078         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8079         number of MAXUID when it evaluates to (uid_t) -1.
8080         Likewise for group ID.  Reported by Matt McCutchen in
8081         <http://savannah.gnu.org/bugs/?28113>
8082
8083         userspec: reformat to use spaces, not TABs
8084         * lib/userspec.c: Expand TABs to spaces.
8085         Add Emacs' "indent-tabs-mode: nil" hint.
8086
8087 2009-11-27  Eric Blake  <ebb9@byu.net>
8088
8089         getopt-gnu: flush out another BSD bug
8090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8091         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8092         flush out BSD bug.
8093         * tests/test-getopt.h (test_getopt): End lists with NULL.
8094         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8095         (test_getopt_long_posix): Enhance test.
8096         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8097         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8098         getopt-gnu.
8099         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8100         Likewise.
8101
8102 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8103
8104         * modules/idpriv-droptemp-tests (Notice): Fix text.
8105
8106 2009-11-27  Jim Meyering  <meyering@redhat.com>
8107
8108         test-xalloc-die: avoid spurious failure due to libtool argv difference
8109         In a libtool-enabled project, this test would fail due to a difference
8110         in the emitted program name, e.g.,
8111         -test-xalloc-die: memory exhausted
8112         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8113         Use program to avoid that.
8114         * modules/xalloc-die-tests (Depends-on): Add progname.
8115         * tests/test-xalloc-die.c: Include progname.h".
8116         (program_name): Remove decl.
8117         (main): Call set_program_name.
8118         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8119
8120 2009-11-26  Richard Jones  <rjones@redhat.com>
8121
8122         w32sock: leave win32 error in place.
8123         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8124
8125 2009-11-26  Eric Blake  <ebb9@byu.net>
8126
8127         init.sh: suggest to use skip_ and fail_ functions in comments
8128         * tests/init.sh: Add a sentence.
8129
8130 2009-11-25  Bruno Haible  <bruno@clisp.org>
8131
8132         init.sh: add documentation in comments
8133         * tests/init.sh: Add some developer and user documentation.
8134
8135 2009-11-26  Jim Meyering  <meyering@redhat.com>
8136
8137         init.sh: accommodate even those who specify bogus srcdir manually
8138         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8139         configure-time tests to be sanitized, so that there is no need to
8140         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8141         (with no double quotes) suffices.  However, since tests may be
8142         invoked manually, and since you may explicitly set srcdir to the
8143         name of a directory containing spaces, do quote its uses here.
8144         * tests/test-pread.sh: Likewise.
8145         Suggested by Bruno Haible.
8146
8147         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8148         * tests/test-pread.sh: Write no data into the pipe, because
8149         test-pread actually reads none.  This avoids a diagnostic,
8150         "bash: echo: write error: Broken pipe", that arises in the unusual
8151         event something is ignoring SIGPIPE, and might be interpreted
8152         as some sort of failure.  Reported by Bruno Haible.
8153
8154 2009-11-25  Jim Meyering  <meyering@redhat.com>
8155
8156         test-pread: cover failure with ESPIPE and EINVAL
8157         * tests/test-pread.c (main): Test for failure, too.
8158         * tests/test-pread.sh: Invoke with stdin on a pipe.
8159         Suggested by Eric Blake.
8160
8161         pread: improvement and fix
8162         * modules/pread (Depends-on): Depend on lseek, for portability to
8163         e.g., mingw.  Suggested by Eric Blake.
8164         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8165
8166         unistd.in.h: correct declaration of pread
8167         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8168         Reported by Richard W.M. Jones.
8169
8170         test-pread.sh: distribute the test script
8171         * modules/pread-tests (Files): Include test-pread.sh.
8172
8173         test-pread.sh: clean up
8174         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8175         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8176         That is unnecessary, since it's always ".".
8177         Suggestion from Eric Blake.
8178
8179         test-pread.sh: make executable
8180         * tests/test-pread.sh: Set executable bit.
8181         Reported by Eric Blake.
8182
8183         correct typo in test-pread.sh
8184         * tests/test-pread.sh: Add #! line.
8185
8186         test pread
8187         * tests/test-pread.c: New file.
8188         * tests/test-pread.sh: Likewise.
8189         * modules/pread-tests: Likewise.
8190
8191         pread: new module
8192         * modules/pread: New file.
8193         * lib/unistd.in.h (pread): Define/declare.
8194         * lib/pread.c (pread): New file.
8195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8196         * modules/unistd (Makefile.am): Substitute witnesses.
8197         * doc/posix-functions/pread.texi (pread): Update.
8198         * MODULES.html.sh: Add pread.
8199
8200 2009-11-25  Jim Meyering  <meyering@redhat.com>
8201
8202         tests/init.sh: new file to be used via most *.sh tests
8203         * tests/init.sh: New file.
8204
8205 2009-11-25  Eric Blake  <ebb9@byu.net>
8206
8207         utimens: work around older Linux failure with symlinks
8208         * lib/utimens.c (lutimensat_works_really): New variable.
8209         (fdutimens, lutimens): Use it to manage kernels that support
8210         nanosecond times on files, but not on symlinks.
8211         Reported by OndÅ™ej Vašík.
8212
8213         utimes: fix configure grammar
8214         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8215
8216 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8217
8218         regex: Fix fastmap for multibyte character ranges.
8219         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8220         characters when a multibyte character range is included.
8221
8222 2009-11-22  Andy Wingo  <wingo@pobox.com>
8223
8224         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8225         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8226
8227 2009-11-24  Bruno Haible  <bruno@clisp.org>
8228
8229         doc: Most *_l functions exist in MacOS X 10.5.
8230         * doc/posix-functions/duplocale.texi: Update platforms list.
8231         * doc/posix-functions/freelocale.texi: Likewise.
8232         * doc/posix-functions/newlocale.texi: Likewise.
8233         * doc/posix-functions/uselocale.texi: Likewise.
8234         * doc/posix-functions/isalnum_l.texi: Likewise.
8235         * doc/posix-functions/isalpha_l.texi: Likewise.
8236         * doc/posix-functions/isblank_l.texi: Likewise.
8237         * doc/posix-functions/iscntrl_l.texi: Likewise.
8238         * doc/posix-functions/isdigit_l.texi: Likewise.
8239         * doc/posix-functions/isgraph_l.texi: Likewise.
8240         * doc/posix-functions/islower_l.texi: Likewise.
8241         * doc/posix-functions/isprint_l.texi: Likewise.
8242         * doc/posix-functions/ispunct_l.texi: Likewise.
8243         * doc/posix-functions/isspace_l.texi: Likewise.
8244         * doc/posix-functions/isupper_l.texi: Likewise.
8245         * doc/posix-functions/iswalnum_l.texi: Likewise.
8246         * doc/posix-functions/iswalpha_l.texi: Likewise.
8247         * doc/posix-functions/iswblank_l.texi: Likewise.
8248         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8249         * doc/posix-functions/iswctype_l.texi: Likewise.
8250         * doc/posix-functions/iswdigit_l.texi: Likewise.
8251         * doc/posix-functions/iswgraph_l.texi: Likewise.
8252         * doc/posix-functions/iswlower_l.texi: Likewise.
8253         * doc/posix-functions/iswprint_l.texi: Likewise.
8254         * doc/posix-functions/iswpunct_l.texi: Likewise.
8255         * doc/posix-functions/iswspace_l.texi: Likewise.
8256         * doc/posix-functions/iswupper_l.texi: Likewise.
8257         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8258         * doc/posix-functions/isxdigit_l.texi: Likewise.
8259         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8260         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8261         * doc/posix-functions/strcoll_l.texi: Likewise.
8262         * doc/posix-functions/strfmon_l.texi: Likewise.
8263         * doc/posix-functions/strftime_l.texi: Likewise.
8264         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8265         * doc/posix-functions/strxfrm_l.texi: Likewise.
8266         * doc/posix-functions/tolower_l.texi: Likewise.
8267         * doc/posix-functions/toupper_l.texi: Likewise.
8268         * doc/posix-functions/towctrans_l.texi: Likewise.
8269         * doc/posix-functions/towlower_l.texi: Likewise.
8270         * doc/posix-functions/towupper_l.texi: Likewise.
8271         * doc/posix-functions/wcscoll_l.texi: Likewise.
8272         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8273         * doc/posix-functions/wctrans_l.texi: Likewise.
8274         * doc/posix-functions/wctype_l.texi: Likewise.
8275         * doc/glibc-functions/strptime_l.texi: Likewise.
8276         * doc/glibc-functions/strtod_l.texi: Likewise.
8277         * doc/glibc-functions/strtof_l.texi: Likewise.
8278         * doc/glibc-functions/strtol_l.texi: Likewise.
8279         * doc/glibc-functions/strtold_l.texi: Likewise.
8280         * doc/glibc-functions/strtoll_l.texi: Likewise.
8281         * doc/glibc-functions/strtoul_l.texi: Likewise.
8282         * doc/glibc-functions/strtoull_l.texi: Likewise.
8283         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8284         * doc/glibc-functions/wcstod_l.texi: Likewise.
8285         * doc/glibc-functions/wcstof_l.texi: Likewise.
8286         * doc/glibc-functions/wcstol_l.texi: Likewise.
8287         * doc/glibc-functions/wcstold_l.texi: Likewise.
8288         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8289         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8290         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8291
8292 2009-11-24  Bruno Haible  <bruno@clisp.org>
8293
8294         duplocale: Fix logic bug.
8295         * lib/duplocale.c: Don't include <langinfo.h>.
8296         (_NL_LOCALE_NAME): Remove macro.
8297         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8298         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8299
8300 2009-11-23  Jim Meyering  <meyering@redhat.com>
8301
8302         test-update-copyright: don't hard-code /usr/bin/perl
8303         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8304         perl to print the current year.  Gilles Espinasse reported that
8305         the replaced use of perl was hard-coded as /usr/bin/perl.
8306
8307 2009-11-23  Bruno Haible  <bruno@clisp.org>
8308
8309         duplocale: Add support for glibc 2.3.x.
8310         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8311
8312 2009-11-22  Bruno Haible  <bruno@clisp.org>
8313
8314         vasnprintf: Tiny optimization.
8315         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8316         MacOS X.
8317
8318 2009-11-22  Bruno Haible  <bruno@clisp.org>
8319
8320         Tests for module 'duplocale'.
8321         * modules/duplocale-tests: New file.
8322         * tests/test-duplocale.c: New file.
8323
8324         New module 'duplocale'.
8325         * m4/duplocale.m4: New file.
8326         * lib/locale.in.h (duplocale): New declaration.
8327         * lib/duplocale.c: New file.
8328         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8329         gl_LOCALE_H_DEFAULTS): New macros.
8330         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8331         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8332         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8333         REPLACE_DUPLOCALE.
8334         * modules/duplocale: New file.
8335         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8336
8337 2009-11-22  Bruno Haible  <bruno@clisp.org>
8338
8339         * modules/locale-tests (configure.ac): Test for newlocale function.
8340         * tests/test-locale.c: When the system has extended locale functions,
8341         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8342
8343         locale: Make locale_t available when possible.
8344         * lib/locale.in.h: Include <xlocale.h> when it exists.
8345         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8346         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8347         * modules/locale (Depends-on): Add extensions.
8348         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8349         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8350
8351 2009-11-22  Bruno Haible  <bruno@clisp.org>
8352
8353         Add comments.
8354         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8355         invocation.
8356         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8357         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8358         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8359
8360 2009-11-22  Bruno Haible  <bruno@clisp.org>
8361
8362         error: account for the possibility of freopen (stdout).
8363         * lib/error.c: Include <unistd.h>.
8364         (flush_stdout): New function, extracted from error and error_at_line.
8365         Determine stdout's fd dynamically.
8366         (error, error_at_line): Invoke flush_stdout.
8367         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8368         * modules/error (Depends-on): Add unistd.
8369
8370 2009-11-22  Bruno Haible  <bruno@clisp.org>
8371
8372         diffseq: Add comment.
8373         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8374
8375 2009-11-22  Jim Meyering  <meyering@redhat.com>
8376
8377         c-stack: avoid defining an unused static function
8378         * lib/c-stack.c (find_stack_direction): Do not define this function
8379         when it will not be used.
8380
8381         diffseq: avoid spurious gcc warnings
8382         * lib/diffseq.h (IF_LINT2): Define.
8383         (compareseq): Use it to initialize two members of "part".
8384         This avoids two used-uninitialized warnings.
8385
8386 2009-11-21  Jim Meyering  <meyering@redhat.com>
8387
8388         c-stack: avoid "ignoring return value of `write'" warning
8389         * lib/c-stack.c: Include "ignore-value.h".
8390         (die): Explicitly ignore each write return value.
8391         * modules/c-stack (Depends-on): Add ignore-value.
8392
8393 2009-11-21  Bruno Haible  <bruno@clisp.org>
8394
8395         diffseq: reduce scope of variable 'best'.
8396         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8397         variable, earlier used for two different purposes.
8398
8399 2009-11-21  Jim Meyering  <meyering@redhat.com>
8400
8401         diffseq: remove useless assignment to "best"
8402         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8403         assignment.  At that point "best" is already guaranteed to be zero.
8404
8405 2009-11-20  Eric Blake  <ebb9@byu.net>
8406
8407         build: mention ftp redirector in release announcements
8408         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8409         values that used to come from cfg.mk; mention FTP redirect URL.
8410         * build-aux/announce-gen: Mention the mirror list.
8411         Suggested by Karl Berry.
8412
8413         nanosleep: improve port to mingw
8414         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8416         LIB_NANOSLEEP, but only when needed.
8417         * modules/select (Link): Document LIBSOCKET.
8418         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8419         enough.
8420
8421         nanosleep: work around cygwin bug
8422         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8423         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8424         bug.
8425         (getnow): Delete, not needed.
8426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8427         LIB_CLOCK_GETTIME.
8428         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8429         clock-time, gettime.
8430         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8431         bug.
8432         * modules/nanosleep-tests: New test.
8433         * tests/test-nanosleep.c: New file.
8434
8435         sleep: work around cygwin bug
8436         * lib/sleep.c (rpl_sleep): Work around the bug.
8437         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8438         (gl_PREREQ_SLEEP): Delete unused macro.
8439         * modules/sleep (Depends-on): Add verify.
8440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8441         * modules/unistd (Makefile.am): Substitute witness.
8442         * lib/unistd.in.h (sleep): Update prototype.
8443         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8444         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8445         * modules/sleep-tests (Depends-on): Check for alarm.
8446
8447 2009-11-20  Jim Meyering  <meyering@redhat.com>
8448
8449         maint.mk: improve sc_prohibit_magic_number_exit
8450         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8451         so it does not match uses like System.exit(1).
8452         Add comments showing how to correct all offenders.
8453
8454 2009-11-19  Eric Blake  <ebb9@byu.net>
8455
8456         xalloc-die-tests: add missing library
8457         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8458
8459         test-xvasprintf: silence compiler warnings
8460         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8461         empty string from gcc.
8462
8463 2009-11-19  Jim Meyering  <meyering@redhat.com>
8464
8465         xfreopen: new module, from coreutils
8466         * modules/xfreopen: New module.
8467         * lib/xfreopen.c: New file.
8468         * lib/xfreopen.h: New file.
8469         * MODULES.html.sh (File stream based Input/Output"): Add it.
8470
8471 2009-11-19  Eric Blake  <ebb9@byu.net>
8472
8473         manywarnings: depend on warnings
8474         * modules/manywarnings (Depends-on): Add warnings.
8475
8476         build: avoid compiler warnings
8477         * lib/select.c (rpl_select): Delete unused variable.
8478         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8479
8480 2009-11-18  Eric Blake  <ebb9@byu.net>
8481
8482         tests: avoid false negative with --with-packager
8483         * tests/test-version-etc.sh: Discard packager information.
8484         * tests/test-argp-version-etc-1.sh: Likewise.
8485         Reported by Mike Frysinger.
8486
8487         utimens: fix regression on Solaris
8488         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8489         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8490         can only change fd timestamps via futimesat.  Instead, use an
8491         additional witness macro to avoid BSD bug.
8492         Reported by Jim Meyering.
8493
8494 2009-11-17  Eric Blake  <ebb9@byu.net>
8495
8496         usleep: use it to simplify tests
8497         * modules/stat-time-tests (Depends-on): Add usleep.
8498         (configure.ac): Drop usleep check.
8499         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8500         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8501         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8502         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8503         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8504         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8505         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8506         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8507         Likewise.
8508         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8509         * tests/test-lchown.h (nap): Likewise.
8510         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8511         * tests/test-stat-time.c (nap): Likewise.
8512         * tests/test-utimens-common.h (nap): Update comments.
8513
8514         usleep: new module
8515         * modules/usleep: New file.
8516         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8517         * lib/usleep.c (usleep): Likewise.
8518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8519         * modules/unistd (Makefile.am): Substitute witnesses.
8520         * lib/unistd.in.h (usleep): Add declaration.
8521         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8522         * MODULES.html.sh (Date and time): Likewise.
8523         * modules/usleep-tests (Depends-on): New test.
8524         * tests/test-usleep.c: New file.
8525
8526         chown: work around OpenBSD bug
8527         * lib/chown.c (rpl_chown): Work around the bug.
8528         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8529         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8530         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8531         * modules/chown (Depends-on): Add stdbool.
8532         * modules/lchown (Depends-on): Likewise.
8533         * doc/posix-functions/chown.texi (chown): Document the bug.
8534         * doc/posix-functions/lchown.texi (lchown): Likewise.
8535         * tests/test-lchown.h (test_chown): Relax test.
8536
8537         mkstemp: avoid conflict with C++ keyword template
8538         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8539         * lib/mkostemp.c (mkostemp): Likewise.
8540         * lib/mkostemps.c (mkostemps): Likewise.
8541         * lib/mkstemp.c (mkstemp): Likewise.
8542         * lib/mkstemps.c (mkstemps): Likewise.
8543
8544         xalloc-die-tests: optimize
8545         * tests/test-xalloc-die.sh: Reduce number of processes.
8546
8547 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8548
8549         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8550         patch from ludo@gnu.org (Ludovic Courtès).
8551
8552 2009-11-17  Jim Meyering  <meyering@redhat.com>
8553
8554         version-etc: use proper license string
8555         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8556         * modules/version-etc-fsf: Likewise.
8557
8558 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8559
8560         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8561         printed to stdout.  Deal with EOL differences.
8562
8563 2009-11-17  Eric Blake  <ebb9@byu.net>
8564
8565         unsetenv: work around Solaris bug
8566         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8567         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8568         Reported by Jim Meyering.
8569
8570         vasnprintf: avoid compiler warnings
8571         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8572         variables.
8573         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8574
8575 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8576
8577         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8578         settings since xalloc-die is no longer the self test,
8579         xalloc-die.sh is.
8580
8581 2009-11-17  Jim Meyering  <meyering@redhat.com>
8582
8583         test-xalloc-die.sh: make the code agree with the commit log
8584         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8585         at the end, just in case you happen to have a test-xalloc-die
8586         program in some other PATH directory.
8587
8588         test-xalloc-die.sh: fix a portability bug
8589         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8590         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8591         Otherwise, argv[0] (as often seen in diagnostics) would be too
8592         system-dependent, sometimes with, and sometimes without the leading "./".
8593
8594         version-etc-fsf: relax license to LGPLv3+
8595         * modules/version-etc-fsf (License): Relax license.
8596
8597 2009-11-16  Eric Blake  <ebb9@byu.net>
8598
8599         xalloc-die-tests: avoid printing null pointer
8600         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8601         shell script.
8602         * tests/test-xalloc-die.c (program_name): Declare.
8603         * tests/test-xalloc-die.sh (tmpfiles): New file.
8604
8605         setenv, unsetenv: work around various bugs
8606         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8607         (setenv) [HAVE_SETENV]: Work around bugs.
8608         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8609         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8610         for bugs.
8611         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8612         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8614         * modules/stdlib (Makefile.am): Update substitutions.
8615         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8616         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8617         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8618         * modules/setenv-tests: New test.
8619         * modules/unsetenv-tests: Likewise.
8620         * tests/test-setenv.c: New file.
8621         * tests/test-unsetenv.c: Likewise.
8622
8623 2009-11-16  Jim Meyering  <meyering@redhat.com>
8624
8625         version-etc: relax license to LGPLv3+
8626         * modules/version-etc (License): Relax license.
8627
8628         better AC_REQUIRE expanded-before-required-warning avoidance
8629         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8630         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8631         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8632         which is no longer needed.
8633
8634 2009-11-16  Eric Blake  <ebb9@byu.net>
8635
8636         test-freading: clean up temporary file
8637         * tests/test-freading.c (main): Remove file on success, and use
8638         ASSERT more liberally.
8639         Reported by Jim Meyering.
8640
8641 2009-11-16  Jim Meyering  <meyering@redhat.com>
8642
8643         avoid new AC_REQUIRE expanded-before-required warnings
8644         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8645         merely using it.
8646         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8647         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8648
8649 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8650
8651         * tests/test-xalloc-die.c: New file.
8652         * modules/xalloc-die-tests: New file.
8653         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8654         XFAIL_TESTS so it can be appended by modules.
8655
8656 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8657
8658         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8659         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8660
8661 2009-11-14  Eric Blake  <ebb9@byu.net>
8662
8663         fnmatch: avoid compiler warning
8664         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8665         to silence compiler warning about mismatch signedness in ?:.
8666         Reported by Robert Millan.
8667
8668         intprops: add double-inclusion guard
8669         * lib/intprops.h: Allow idempotent includes.
8670         Suggested by Bruce Korb.
8671
8672         openat: detect Solaris fchownat bug
8673         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8674         penalizing glibc chownat when only lchownat is broken.
8675         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8676         trailing slash bugs.
8677         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8678         * modules/openat-tests (Files): Include more files.
8679         (Depends-on): Add mgetgroups, sleep, stat-time.
8680         (configure.ac): Add additional checks.
8681         (Makefile.am): Build new test.
8682         * tests/test-fchownat.c: New file.
8683
8684         lchown: detect Solaris and FreeBSD bug
8685         * lib/lchown.c (rpl_lchown): Work around bug.
8686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8688         * modules/unistd (Makefile.am): Populate it.
8689         * lib/unistd.in.h (lchown): Update declaration.
8690         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8691         * modules/lchown-tests: New file.
8692         * tests/test-lchown.h (test_lchown): Likewise.
8693         * tests/test-lchown.c (main): Likewise.
8694
8695         chown: detect Solaris and FreeBSD bug
8696         * lib/chown.c (rpl_chown): Work around bug.
8697         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8698         (gl_PREREQ_CHOWN): Delete.
8699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8700         * modules/unistd (Makefile.am): Populate it.
8701         * lib/unistd.in.h (chown): Update declaration.
8702         * lib/lchown.c (chown): Update client.
8703         * modules/lchown (Depends-on): Add lstat.
8704         * doc/posix-functions/chown.texi (chown): Document the bug.
8705         * doc/posix-functions/getgroups.texi (getgroups): Document
8706         getgroups pitfall.
8707         * modules/chown-tests: New file.
8708         * tests/test-chown.h (test_chown): Likewise.
8709         * tests/test-chown.c (main): Likewise.
8710
8711 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8712
8713         gnulib-tool: correctly detect absence of m4 directories
8714         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8715
8716 2009-11-14  Jim Meyering  <meyering@redhat.com>
8717
8718         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8719         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8720
8721 2009-11-14  John W. Eaton  <jwe@gnu.org>
8722
8723         strftime.h: wrap funtion declaration in extern "C" block
8724         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8725
8726 2009-11-13  Eric Blake  <ebb9@byu.net>
8727
8728         getgroups: avoid compiler warning
8729         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8730
8731         getgroups: work around FreeBSD bug
8732         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8733         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8734         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8735         * tests/test-getgroups.c (main): Fix buffer overrun.
8736
8737         getgroups: avoid compilation failure
8738         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8739         * modules/getgroups (Depends-on): Add stdint.
8740
8741 2009-11-13  Jim Meyering  <meyering@redhat.com>
8742
8743         test-getgroups: avoid compilation failure
8744         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8745
8746 2009-11-13  Eric Blake  <ebb9@byu.net>
8747
8748         mgetgroups: new module, taken from coreutils
8749         * modules/mgetgroups: New file.
8750         * lib/mgetgroups.h: Likewise.
8751         * lib/mgetgroups.c (mgetgroups): Likewise.
8752         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8753         * MODULES.html.sh (Users and groups): Mention it.
8754
8755         getgroups: don't expose GETGROUPS_T to user
8756         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8757         an element at a time if GETGROUPS_T is wrong size.
8758         * lib/getugroups.h (getugroups): Change signature.
8759         * lib/unistd.in.h (getgroups): Likewise.
8760         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8761         signature needs fixing.
8762         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8763         AC_TYPE_GETGROUPS.
8764         * modules/group-member (Depends-on): Add getgroups.
8765         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8766         (group_member): Rely on getgroups replacement.
8767         * lib/getugroups.c (getugroups): Use gid_t.
8768         * tests/test-getgroups.c (main): Likewise.
8769         * NEWS: Mention the signature change.
8770         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8771         problem with signature.
8772         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8773         GETGROUPS_T is still useful for setgroups.
8774
8775         getgroups, getugroups: provide stubs for mingw
8776         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8777         * lib/getugroups.c (getugroups): Likewise.
8778         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8779         function.  Modernize replacement scheme.
8780         (gl_PREREQ_GETGROUPS): Delete.
8781         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8782         * modules/getgroups (configure.ac): Declare witness.
8783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8784         * modules/unistd (Depends-on): Substitute witness.
8785         * lib/unistd.in.h (getgroups): Declare replacement.
8786
8787         getgroups: avoid calling exit
8788         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8789         drop xalloc.
8790         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8791         dependencies.
8792         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8793         exiting, in the rare case of malloc failure.
8794
8795         getgroups: fix logic error
8796         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8797         has more than 20 groups.
8798         * modules/getgroups-tests: New test.
8799         * tests/test-getgroups.c: New file.
8800
8801 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8802
8803         * tests/test-base64.c: Improve.
8804
8805 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8806
8807         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8808         Blake <ebb9@byu.net>.
8809
8810 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8811
8812         * tests/test-xvasprintf.c: Add %s%s related checks.
8813
8814 2009-11-12  Eric Blake  <ebb9@byu.net>
8815
8816         version-etc: match standards.texi style
8817         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8818         and use <> only for URLs.
8819
8820 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8821
8822         fts: do not fail on a submount during traversal
8823         * lib/fts.c (fts_build): Read the stat info again after opening
8824         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8825         Original report at http://bugzilla.redhat.com/501848.
8826
8827 2009-11-12  Jim Meyering  <meyering@redhat.com>
8828
8829         bootstrap: sync from coreutils
8830         * build-aux/bootstrap (bootstrap_epilogue): New function.
8831         Use git_modules_config in one more place.  This make bootstrap's
8832         --gnulib-srcdir option more useful for testing.
8833
8834         bootstrap: generalize autoheader check
8835         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8836         AC_CONFIG_HEADERS.
8837
8838 2009-11-11  Eric Blake  <ebb9@byu.net>
8839
8840         mkfifoat: use new modules for Solaris and BSD bugs
8841         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8842         * lib/mkfifoat.c (mknodat): Split...
8843         * lib/mknodat.c (mknodat): ...into new file.
8844         * modules/mkfifoat (Files): Ship new file.
8845         (Depends-on): Add mkfifo, mknod.
8846         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8847         (Depends-on): Add symlink.
8848         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8849         redundant with test_mkfifo.h.
8850         (do_mkfifoat, do_mknodat): New helpers.
8851
8852         mknod: new module
8853         * modules/mknod: New file.
8854         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8855         * lib/mknod.c (mknod): Likewise.
8856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8857         defaults.
8858         * modules/sys_stat (Makefile.am): Substitute them.
8859         * lib/sys_stat.in.h (mknod): Declare replacement.
8860         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8861         Document it.
8862         * doc/posix-functions/mknod.texi (mknod): Likewise.
8863         * modules/mknod-tests: New test.
8864         * tests/test-mknod.c: Likewise.
8865
8866         mkfifo: new module
8867         * modules/mkfifo: New file.
8868         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8869         * lib/mkfifo.c (mkfifo): Likewise.
8870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8871         defaults.
8872         * modules/sys_stat (Makefile.am): Substitute them.
8873         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8874         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8875         Document it.
8876         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8877         * modules/mkfifo-tests: New test.
8878         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8879         from test-mkfifoat.c.
8880         * tests/test-mkfifo.c: New file.
8881
8882         readlink: detect FreeBSD bug
8883         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8884         slash on symlink.
8885         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8886         * tests/test-readlink.h (test_readlink): Enhance test.
8887
8888         symlink: detect FreeBSD bug
8889         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8890         slash on symlink.
8891         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8892         * tests/test-symlink.h (test_symlink): Enhance test.
8893
8894 2009-11-10  Eric Blake  <ebb9@byu.net>
8895
8896         link: detect FreeBSD bug
8897         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8898         symlink.
8899         * doc/posix-functions/link.texi (link): Document the bug.
8900         * tests/test-link.h (test_link): Enhance test.
8901         * tests/test-linkat.c (main): Update caller.
8902
8903         unlink, remove: detect FreeBSD bug
8904         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8905         slash on symlink.
8906         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8907         * doc/posix-functions/remove.texi (remove): Likewise.
8908         * tests/test-unlink.h (test_unlink): Enhance test.
8909         * tests/test-remove.c (main): Likewise.
8910
8911 2009-11-09  Eric Blake  <ebb9@byu.net>
8912
8913         rename: detect FreeBSD bug
8914         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8915         slash on symlink.
8916         * modules/renameat-tests (Depends-on): Add filenamecat.
8917         * tests/test-rename.h (test_rename): Allow one more errno.
8918         * tests/test-renameat.c (main): Likewise.
8919         * doc/posix-functions/rename.texi (rename): Document the bug.
8920
8921         open: detect FreeBSD bug
8922         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8923         symlink.
8924         * doc/posix-functions/open.texi (open): Document the bug.
8925         * doc/posix-functions/utimes.texi (utimes): Likewise.
8926         * tests/test-open.h (test_open): Add parameters, and test symlink
8927         handling.
8928         * tests/test-open.c (main): Adjust caller.
8929         * tests/test-fcntl-safer.c (main): Likewise.
8930         * modules/open-tests (Depends-on): Add stdbool, symlink.
8931         * modules/fcntl-safer-tests (Depends-on): Likewise.
8932         * tests/test-openat.c (main): Add test-open tests.
8933
8934         stat: detect FreeBSD bug
8935         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8936         symlink.
8937         * doc/posix-functions/stat.texi (stat): Document the bug.
8938         * tests/test-stat.h (test_stat_func): Add argument.
8939         * tests/test-stat.c (main): Adjust caller.
8940         * tests/test-fstatat.c (main): Likewise.
8941         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8942         Reported by Jim Meyering.
8943
8944 2009-11-09  James Youngman  <jay@gnu.org>
8945
8946         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8947         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8948
8949 2009-11-08  Jim Meyering  <meyering@redhat.com>
8950
8951         utimens: remove invalid futimesat call
8952         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8953         It used the file descriptor of the target file as the DIR_FD
8954         parameter and NULL as the file name.  That caused failure with
8955         errno == EFAULT on FreeBSD-8.0-rc2
8956
8957 2009-11-07  Eric Blake  <ebb9@byu.net>
8958
8959         fflush, freadseek: use fseeko, not fseek
8960         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8961         (clear_ungetc_buffer): Avoid potential problems on large files.
8962         * lib/freadseek.c (freadseek): Likewise.
8963         * modules/freadseek (Depends-on): Add fseeko.
8964         * modules/fseek (configure.ac): Set a witness.
8965         * tests/test-fflush.c (main): Use fseeko.
8966         * tests/test-fpurge.c (fseek): Disable link warning.
8967         * tests/test-freadable.c (fseek): Likewise.
8968         * tests/test-freading.c (fseek): Likewise.
8969         * tests/test-fseeko.c (fseek): Likewise.
8970         * tests/test-ftell.c (fseek): Likewise.
8971         * tests/test-ftello.c (fseek): Likewise.
8972         * tests/test-fwritable.c (fseek): Likewise.
8973         * tests/test-fwriting.c (fseek): Likewise.
8974
8975 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8976
8977         * modules/memchr (Depends-on): Drop getpagesize dependency.
8978
8979 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8980
8981         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8982         Reported by Ludovic Courtès.
8983         * build-aux/pmccabe2html: Improve example usage.
8984         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8985
8986 2009-11-06  Jim Meyering  <meyering@redhat.com>
8987
8988         do-release-commit-and-tag: New module.
8989         Automate the release-commit and tag process.
8990         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8991         * modules/do-release-commit-and-tag: New file.
8992         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8993
8994 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8995
8996         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8997         because test-select.c uses inet_pton.
8998
8999 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9000
9001         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9002         GETADDRINFO_LIB.  Bump serial number.
9003         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9004         Suggested by Eric Blake <ebb9@byu.net>.
9005
9006 2009-11-05  Eric Blake  <ebb9@byu.net>
9007
9008         strtod: detect darwin bug
9009         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9010         Reported by Leo Davis.
9011
9012         freopen-safer: new module
9013         * modules/freopen-safer: New module.
9014         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9015         * lib/freopen-safer.c (freopen_safer): New file.
9016         * lib/stdio-safer.h (freopen_safer): New declaration.
9017         * lib/stdio--.h (freopen): New override.
9018         * MODULES.html.sh (File stream based Input/Output): Mention it.
9019         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9020         freopen-safer module.
9021         * doc/posix-functions/stderr.texi (stderr): Likewise.
9022         * doc/posix-functions/stdin.texi (stdin): Likewise.
9023         * doc/posix-functions/stdout.texi (stdout): Likewise.
9024         * modules/freopen-safer-tests: New test.
9025         * tests/test-reopen-safer.c: New file.
9026
9027 2009-11-05  Jim Meyering  <meyering@redhat.com>
9028
9029         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9030         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9031
9032 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9033
9034         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9035
9036 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9037
9038         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9039
9040 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9041
9042         Fix link error.
9043         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9044         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9045
9046 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9047
9048         * tests/test-func.c: Also test value of __func__.
9049
9050 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9051
9052         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9053         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9054
9055 2009-11-05  Bruno Haible  <bruno@clisp.org>
9056
9057         Fix link error.
9058         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9059         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9060         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9061
9062 2009-11-05  Bruno Haible  <bruno@clisp.org>
9063
9064         Tests for module 'inet_pton'.
9065         * modules/inet_pton-tests: New file.
9066         * tests/test-inet_pton.c: New file.
9067
9068 2009-11-05  Bruno Haible  <bruno@clisp.org>
9069
9070         Tests for module 'inet_ntop'.
9071         * modules/inet_ntop-tests: New file.
9072         * tests/test-inet_ntop.c: New file.
9073
9074 2009-11-04  Eric Blake  <ebb9@byu.net>
9075
9076         stdlib-safer: wrap all mkstemp variants
9077         * modules/mkostemp (configure.ac): Set witness.
9078         * modules/mkostemps (configure.ac): Likewise.
9079         * modules/mkstemps (configure.ac): Likewise.
9080         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9081         (mkstemps_safer): Wrap more functions.
9082         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9083         wrapping.
9084         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9085         (mkstemps_safer): Implement the wrappers.
9086
9087         mkstemps, mkostemps: new modules
9088         * modules/mkostemps: New module.
9089         * modules/mkstemps: Likewise.
9090         * lib/mkostemps.c (mkostemps): New file.
9091         * lib/mkstemps.c (mkstemps): Likewise.
9092         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9093         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9095         * modules/stdlib (Makefile.am): Substitute them.
9096         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9097         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9098         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9099         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9100         * MODULES.html.sh (File system functions): Mention them.
9101
9102         tempname: resync from glibc
9103         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9104         same values for __GT_FILE as glibc.  Abort even when assertions
9105         are disabled.
9106         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9107         match its value otherwise.  Allow idempotent inclusion.
9108         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9109         * lib/mkostemp.c (mkostemp): Likewise.
9110         * lib/mkstemp.c (mkstemp): Likewise.
9111         * lib/tmpfile.c (tmpfile): Likewise.
9112         * NEWS: Document this.
9113
9114         utimens: fix use of futimens on older Linux
9115         * lib/utimens.c (fdutimens): Use updated, rather than original,
9116         timespec to avoid bug in older Linux kernel.
9117         Reported by Simon Josefsson.
9118
9119 2009-11-04  Bruno Haible  <bruno@clisp.org>
9120
9121         Make num_processors more flexible and consistent.
9122         * lib/nproc.h (enum nproc_query): New type.
9123         (num_processors): Add a 'query' argument.
9124         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9125         (num_processors): Add a 'query' argument. Test the value of the
9126         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9127         mingw, count the number of CPUs available for the current process.
9128         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9129         Check for sched_getaffinity and sched_getaffinity_np.
9130         * modules/nproc (Depends-on): Add c-ctype, extensions.
9131         * NEWS: Mention the change.
9132
9133 2009-11-03  Bruno Haible  <bruno@clisp.org>
9134
9135         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9136
9137 2009-11-03  Jim Meyering  <meyering@redhat.com>
9138
9139         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9140         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9141         if it is defined.
9142
9143 2009-11-02  Eric Blake  <ebb9@byu.net>
9144
9145         mktime, timegm: share common declaration
9146         * lib/mktime-internal.h: New file.
9147         * lib/mktime.c: Use it rather than open-coding a declaration.
9148         * lib/timegm.c: Likewise.
9149         * modules/mktime (Files): Ship it.
9150         * modules/timegm (Files): Likewise.
9151         Suggested by Bruno Haible.
9152
9153         test-update-copyright: update test to match script changes
9154         * tests/test-update-copyright.sh: Avoid hard-coding perl
9155         location.  Don't update *.bak created by earlier runs.
9156
9157 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9158             Simon Josefsson  <simon@josefsson.org>
9159             Bruno Haible  <bruno@clisp.org>
9160
9161         Fix link error on Solaris 8.
9162         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9163         also in libnsl. Define also INET_PTON_LIB.
9164         * modules/inet_pton (Link): New section.
9165
9166 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9167             Bruno Haible  <bruno@clisp.org>
9168
9169         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9170         * modules/inet_ntop (Link): New section.
9171         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9172
9173 2009-11-02  Eric Blake  <ebb9@byu.net>
9174
9175         maint: avoid compiler warnings in m4 macros
9176         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9178
9179 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9180
9181         * m4/pmccabe2html.m4: Remove file.
9182         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9183         function.  Change maintainer.
9184         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9185         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9186         Courtès).
9187
9188 2009-10-31  Eric Blake  <ebb9@byu.net>
9189
9190         fseeko: fix m4 regression
9191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9192         regression from 2009-10-27.
9193         Reported by Ralf Wildenhues.
9194
9195 2009-10-31  Jim Meyering  <meyering@redhat.com>
9196
9197         inttostr: aesthetics and improved (compile-time) safety
9198         Define inttype_is_signed rather than inttype_is_unsigned,
9199         since the sole use is via "#if inttype_is_signed".
9200         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9201         inttype_is_unsigned.
9202         * lib/offtostr.c (inttype_is_signed): Likewise.
9203         * lib/uinttostr.c (inttype_is_signed): Likewise.
9204         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9205         * lib/inttostr.c (inttostr): Use verify to cross-check the
9206         inttype_is_signed value and the signedness of the actual type.
9207         * modules/inttostr (Depends-on): Add verify.
9208
9209 2009-10-30  Eric Blake  <ebb9@byu.net>
9210
9211         build: avoid compiler warnings
9212         * lib/fchmodat.c (lchmod): Mark unused variables.
9213         * lib/getopt.c (_getopt_initialize): Likewise.
9214         * lib/mktime.c (__mktime_internal): Provide prototype.
9215         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9216         older gcc that do not understand #pragma GCC diagnostic.
9217         * lib/uinttostr.c (inttype_is_unsigned): Define.
9218         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9219
9220 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9221
9222         stat: fix compilation on AIX
9223         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9224         only see struct stat64.
9225
9226 2009-10-30  Eric Blake  <ebb9@byu.net>
9227
9228         exclude: make more robust
9229         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9230         rather than masking a coding bug.
9231         Suggested by Bruno Haible.
9232
9233 2009-10-30  Jim Meyering  <meyering@redhat.com>
9234
9235         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9236         Rather than putting #!/usr/bin/perl on the first line,
9237         start with a variant of what's recommended by "man perlrun" that
9238         invokes the first "perl" program from your shell's search path.
9239         * build-aux/gitlog-to-changelog: Replace #!... as above.
9240         Add a "Local Variables" perl mode setting.
9241         Prompted by a patch from Ludovic Courtès.
9242         Improved by Eric Blake.
9243         * build-aux/useless-if-before-free: Likewise.
9244         * build-aux/announce-gen: Likewise.
9245         * build-aux/update-copyright: Likewise.
9246
9247 2009-10-29  Eric Blake  <ebb9@byu.net>
9248
9249         filenamecat-lgpl: adjust clients
9250         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9251         filenamecat.
9252         * modules/renameat (Depends-on): Likewise.
9253
9254         filenamecat: split into filenamecat-lgpl
9255         * modules/filenamecat-lgpl: New module.
9256         * modules/filenamecat (Files): Move library-safe files into
9257         filenamecat-lgpl.
9258         (Depends-on): Add filenamecat-lgpl.
9259         (configure.ac): Declare witness.
9260         * lib/filenamecat.h (file_name_concat): Only declare when using
9261         GPL module.
9262         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9263         Move...
9264         * lib/filenamecat-lgpl.c: ...into new file.
9265         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9266         (gl_FILE_NAME_CONCAT): Use it.
9267         * MODULES.html.sh (File system functions): Mention new module.
9268
9269         argp: avoid memory leak
9270         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9271         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9272         base_name, since the latter malloc()s and can call exit().
9273         Leak introduced 2006-07-03.
9274
9275         dirname-lgpl: adjust clients that don't need full dirname
9276         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9277         * modules/filenamecat (Depends-on): Likewise.
9278         * modules/linkat (Depends-on): Likewise.
9279         * modules/mkancesdirs (Depends-on): Likewise.
9280         * modules/mkdir (Depends-on): Likewise.
9281         * modules/openat (Depends-on): Likewise.
9282         * modules/savewd (Depends-on): Likewise.
9283         * modules/rename (Depends-on): Likewise.
9284         (License): Relax license.
9285         * modules/mkdir-tests (Depends-on): Drop progname.
9286         (Makefile.am): Delete unneeded LDADD.
9287         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9288
9289         dirname: split into dirname-lgpl
9290         * modules/dirname-lgpl: New module.
9291         * modules/dirname (Files): Move library-safe files into
9292         dirname-lgpl.
9293         (Depends-on): Add dirname-lgpl.
9294         (configure.ac): Declare witness.
9295         * modules/double-slash-root (License): Relax license.
9296         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9297         module.
9298         * lib/dirname.c (dir_len, mdir_name): Move...
9299         * lib/dirname-lgpl.c: ...into new file.
9300         * lib/basename.c (last_component, base_len): Move...
9301         * lib/basename-lgpl.c: ...into new file.
9302         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9303         (gl_DIRNAME): Use it.
9304         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9305         Mention new module.
9306         * modules/dirname-tests (Depends-on): Add progname.
9307         * tests/test-dirname.c (program_name): Delete.
9308
9309         mkdir: make safe for libraries
9310         * modules/mkdir (Depends-on): Drop xalloc.
9311         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9312         exit.
9313
9314         tests: avoid some compiler warnings
9315         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9316         literals.
9317         * tests/test-memchr.c (main): Avoid type mismatch.
9318         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9319         * tests/test-base64.c (main): Likewise.
9320         * tests/test-getdelim.c (main): Likewise.
9321         * tests/test-gethostname.c (main): Likewise.
9322         * tests/test-getline.c (main): Likewise.
9323         * tests/test-netinet_in.c (main): Likewise.
9324         * tests/test-select.c (open_server_socket, main): Likewise.
9325         * tests/test-select-stdin.c (main): Likewise.
9326         * tests/test-sockets.c (main): Likewise.
9327         * tests/test-strsignal.c (main): Likewise.
9328         * tests/test-sys_select.c (main): Likewise.
9329         * tests/test-sys_socket.c (main): Likewise.
9330         * tests/test-u64.c (main): Likewise.
9331         * tests/test-xfprintf-posix.c (main): Likewise.
9332         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9333
9334         sockets: avoid compiler warning
9335         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9336
9337         maint: detect usage(1) and other suspicious exits
9338         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9339
9340 2009-10-29  Jim Meyering  <meyering@redhat.com>
9341
9342         timespec: long-to-int truncation could make timespec_cmp malfunction
9343         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9344         a multiple of 2^32 nanoseconds as no difference.
9345
9346 2009-10-28  Jim Meyering  <meyering@redhat.com>
9347
9348         fprintftime: wrap macro code argument in "do {...} while(0)"
9349         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9350         cpy macro must be a statement that can be followed by a semicolon.
9351         Now that the else clause contains a comment and is hence longer
9352         than one line, I require curly braces.  That in turn requires
9353         that we wrap this code block in the standard do...while(0).
9354
9355         fprintftime: remove stray semicolon from previous change
9356         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9357
9358         fprintftime: avoid a warning about ignored fwrite return value
9359         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9360         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9361         that is unsafe.
9362         * modules/fprintftime (Depends-on): Add ignore-value.
9363
9364         exclude: avoid an unwarranted warning
9365         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9366
9367 2009-10-27  Eric Blake  <ebb9@byu.net>
9368
9369         fseek: avoid compilation failure when fflush is replaced
9370         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9371         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9372         module is in use.
9373         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9374         module is not in use; since REPLACE_FSEEK worked otherwise.
9375         (GNULIB_FTELLO): Likewise for ftell.
9376         Reported by Ian Beckwith and others.
9377
9378 2009-10-27  Bruno Haible  <bruno@clisp.org>
9379
9380         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9381         Reported by Jim Meyering.
9382
9383 2009-10-27  Jim Meyering  <jim@meyering.net>
9384             Bruno Haible  <bruno@clisp.org>
9385
9386         Avoid warning despite dropping the return value of fwrite.
9387         * lib/unicodeio.c: Include ignore-value.h.
9388         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9389         * modules/unicodeio (Depends-on): Add ignore-value.
9390
9391 2009-10-26  Eric Blake  <ebb9@byu.net>
9392
9393         areadlinkat: fix fallback path
9394         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9395         pointer and zero.
9396
9397 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9398
9399         Use a better IO block size for modern systems
9400         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9401         * lib/md2.c: Likewise.
9402         * lib/md4.c: Likewise.
9403         * lib/md5.c: Likewise.
9404         * lib/sha1.c: Likewise.
9405         * lib/sha256.c: Likewise.
9406         * lib/sha512.c: Likewise.
9407
9408 2009-10-22  Eric Blake  <ebb9@byu.net>
9409
9410         tests: avoid several compiler warnings
9411         * tests/test-getcwd.c (main): Avoid buffer underflow.
9412         * tests/test-getdate.c (main): String literals are not safe with
9413         putenv, so use setenv.  Declare unused argument.
9414         * modules/getdate-tests (Depends-on): Add setenv.
9415         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9416         problems with string literals in char *.
9417         * tests/test-hash.c (main): Avoid shadowing declaration.
9418         (insert_new): Treat string literals as char const *.
9419         * tests/test-getopt.h (test_getopt): Likewise.
9420         (getopt_loop): Alter types to minimize casting elsewhere.
9421         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9422         (test_getopt_long_posix): Likewise.
9423         (do_getopt_long): Add wrapper to minimize casting.
9424         * tests/test-atexit.c (clear_temp_file): Use void.
9425         * tests/test-areadlink-with-size.c (main): Declare unused
9426         arguments.
9427         * tests/test-areadlink.c (main): Likewise.
9428         * tests/test-areadlinkat-with-size.c (main): Likewise.
9429         * tests/test-areadlinkat.c (main): Likewise.
9430         * tests/test-canonicalize-lgpl.c (main): Likewise.
9431         * tests/test-canonicalize.c (main): Likewise.
9432         * tests/test-dirent-safer.c (main): Likewise.
9433         * tests/test-dirname.c (main): Likewise.
9434         * tests/test-dup2.c (main): Likewise.
9435         * tests/test-fchdir.c (main): Likewise.
9436         * tests/test-fcntl-h.c (main): Likewise.
9437         * tests/test-fcntl-safer.c (main): Likewise.
9438         * tests/test-fdopendir.c (main): Likewise.
9439         * tests/test-fdutimensat.c (main): Likewise.
9440         * tests/test-fflush.c (main): Likewise.
9441         * tests/test-filenamecat.c (main): Likewise.
9442         * tests/test-filevercmp.c (main): Likewise.
9443         * tests/test-fopen-safer.c (main): Likewise.
9444         * tests/test-fopen.c (main): Likewise.
9445         * tests/test-fpending.c (main): Likewise.
9446         * tests/test-fpurge.c (main): Likewise.
9447         * tests/test-freading.c (main): Likewise.
9448         * tests/test-fstatat.c (main): Likewise.
9449         * tests/test-fsync.c (main): Likewise.
9450         * tests/test-futimens.c (main): Likewise.
9451         * tests/test-getndelim2.c (main): Likewise.
9452         * tests/test-gettimeofday.c (main): Likewise.
9453         * tests/test-getopt.c (main): Likewise.
9454         * tests/test-i-ring.c (main): Likewise.
9455         * tests/test-inttypes.c (main): Likewise.
9456         * tests/test-link.c (main): Likewise.
9457         * tests/test-lstat.c (main): Likewise.
9458         * tests/test-math.c (main): Likewise.
9459         * tests/test-md5.c (main): Likewise.
9460         * tests/test-memchr2.c (main): Likewise.
9461         * tests/test-memrchr.c (main): Likewise.
9462         * tests/test-mkdir.c (main): Likewise.
9463         * tests/test-mkdirat.c (main): Likewise.
9464         * tests/test-mkfifoat.c (main): Likewise.
9465         * tests/test-open.c (main): Likewise.
9466         * tests/test-openat-safer.c (main): Likewise.
9467         * tests/test-openat.c (main): Likewise.
9468         * tests/test-quotearg.c (main): Likewise.
9469         * tests/test-rawmemchr.c (main): Likewise.
9470         * tests/test-readlink.c (main): Likewise.
9471         * tests/test-remove.c (main): Likewise.
9472         * tests/test-rename.c (main): Likewise.
9473         * tests/test-renameat.c (main): Likewise.
9474         * tests/test-rmdir.c (main): Likewise.
9475         * tests/test-sha1.c (main): Likewise.
9476         * tests/test-signal.c (main): Likewise.
9477         * tests/test-sigaction.c (main): Likewise.
9478         * tests/test-stat.c (main): Likewise.
9479         * tests/test-stat-time.c (main): Likewise.
9480         * tests/test-stddef.c (main): Likewise.
9481         * tests/test-stdint.c (main): Likewise.
9482         * tests/test-stdio.c (main): Likewise.
9483         * tests/test-stdlib.c (main): Likewise.
9484         * tests/test-strchrnul.c (main): Likewise.
9485         * tests/test-strerror.c (main): Likewise.
9486         * tests/test-string.c (main): Likewise.
9487         * tests/test-strtod.c (main): Likewise.
9488         * tests/test-strverscmp.c (main): Likewise.
9489         * tests/test-symlink.c (main): Likewise.
9490         * tests/test-symlinkat.c (main): Likewise.
9491         * tests/test-sys_stat.c (main): Likewise.
9492         * tests/test-sys_time.c (main): Likewise.
9493         * tests/test-time.c (main): Likewise.
9494         * tests/test-unistd.c (main): Likewise.
9495         * tests/test-unlink.c (main): Likewise.
9496         * tests/test-unlinkat.c (main): Likewise.
9497         * tests/test-utimens.c (main): Likewise.
9498         * tests/test-utimensat.c (main): Likewise.
9499         * tests/test-version-etc.c (main): Likewise.
9500         * tests/test-wchar.c (main): Likewise.
9501         * tests/test-wctype.c (main): Likewise.
9502         * tests/test-xprintf-posix.c (main): Likewise.
9503         * tests/test-posixtm.c (main): Likewise.
9504         (STREQ): Delete unused macro.
9505         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9506         shadowed variables.
9507         * tests/test-memchr.c (main): Likewise.
9508
9509 2009-10-21  Eric Blake  <ebb9@byu.net>
9510
9511         areadlinkat: avoid failure on older glibc
9512         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9513         rather than mis-comparing 0 against FUNC_RESULT of char*.
9514
9515 2009-10-21  Bruno Haible  <bruno@clisp.org>
9516
9517         * modules/stpncpy (License): Relicense under LGPLv2+.
9518         Reported by David Lutterkort <lutter@redhat.com>.
9519
9520 2009-10-20  Eric Blake  <ebb9@byu.net>
9521
9522         utimensat: work around Solaris 9 bug
9523         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9524         has trailing slash bugs.
9525         * tests/test-lutimens.h (test_lutimens): Enhance test.
9526         * tests/test-utimens.h (test_utimens): Likewise.
9527         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9528         * doc/posix-functions/utimes.texi (utimes): Likewise.
9529         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9530         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9531         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9532         * doc/posix-functions/futimens.texi (futimens): Likewise.
9533
9534         fdutimensat: new module
9535         * modules/fdutimensat: New file.
9536         * lib/fdutimensat.c (fdutimensat): Likewise.
9537         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9538         * MODULES.html.sh (File system functions): Mention module.
9539         * modules/fdutimensat-tests: New test.
9540         * tests/test-fdutimensat.c: Likewise.
9541
9542         doc: regenerate INSTALL
9543         * doc/INSTALL: Reflect recent autoconf update.
9544         * doc/INSTALL.ISO: Likewise.
9545         * doc/INSTALL.UTF-8: Likewise.
9546
9547 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9548
9549         acl: warn if ACL support is not detected
9550         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9551
9552 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9553
9554         * lib/nproc.h: Add extern "C" block for C++.
9555
9556 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9557             Bruno Haible  <bruno@clisp.org>
9558
9559         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9560         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9561         * doc/posix-functions/isalpha.texi: Likewise.
9562         * doc/posix-functions/isblank.texi: Likewise.
9563         * doc/posix-functions/iscntrl.texi: Likewise.
9564         * doc/posix-functions/isdigit.texi: Likewise.
9565         * doc/posix-functions/isgraph.texi: Likewise.
9566         * doc/posix-functions/islower.texi: Likewise.
9567         * doc/posix-functions/isprint.texi: Likewise.
9568         * doc/posix-functions/ispunct.texi: Likewise.
9569         * doc/posix-functions/isspace.texi: Likewise.
9570         * doc/posix-functions/isupper.texi: Likewise.
9571         * doc/posix-functions/isxdigit.texi: Likewise.
9572
9573 2009-10-18  Bruno Haible  <bruno@clisp.org>
9574
9575         Tests for module 'isblank'.
9576         * modules/isblank-tests: New file.
9577         * tests/test-isblank.c: New file.
9578
9579         New module 'isblank'.
9580         * lib/isblank.c: New file.
9581         * m4/isblank.m4: New file.
9582         * modules/isblank: New file.
9583         * doc/posix-functions/isblank.texi: Mention the new module.
9584
9585 2009-10-18  Bruno Haible  <bruno@clisp.org>
9586
9587         New module 'ctype'.
9588         * lib/ctype.in.h: New file.
9589         * m4/ctype.m4: New file.
9590         * modules/ctype: New file.
9591         * doc/posix-headers/ctype.texi: Mention the new module.
9592
9593 2009-10-18  Jim Meyering  <meyering@redhat.com>
9594
9595         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9596         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9597         right after its initialization, rather than farther down.
9598         Keeping these in close proximity makes it easier to ensure
9599         that each such variable is initialized.  E.g.,
9600
9601             LIB_CLOCK_GETTIME=
9602             AC_SUBST([LIB_CLOCK_GETTIME])
9603
9604         This change also increments these serial numbers.
9605         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9606         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9608
9609 2009-10-18  Bruno Haible  <bruno@clisp.org>
9610
9611         Don't let environment variables perturb build.
9612         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9613         (gl_PREREQ_GETHRXTIME): ... not here.
9614
9615 2009-10-18  Bruno Haible  <bruno@clisp.org>
9616
9617         Avoid symlink attack in localcharset module.
9618         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9619         (O_NOFOLLOW): Define fallback.
9620         (get_charset_aliases): Don't open the file if it is a symbolic link.
9621         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9622         gl_FCNTL_H.
9623         (gl_FCNTL_H): Require it.
9624         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9625         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9626         Reported by Fergal Glynn <fglynn@veracode.com>.
9627
9628 2009-10-18  Bruno Haible  <bruno@clisp.org>
9629
9630         Implement nproc for mingw.
9631         * lib/nproc.c: Include <windows.h>
9632         (num_processors): On native Windows platforms, try GetSystemInfo.
9633
9634 2009-10-18  Bruno Haible  <bruno@clisp.org>
9635
9636         Implement nproc for IRIX.
9637         * lib/nproc.c: Include <sys/sysmp.h>.
9638         (num_processors): On IRIX systems, try sysmp.
9639         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9640
9641 2009-10-18  Bruno Haible  <bruno@clisp.org>
9642
9643         Implement nproc for HP-UX.
9644         * lib/nproc.c: Include <sys/pstat.h>
9645         (num_processors): On HP-UX systems, try pstat_getdynamic.
9646         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9647         pstat_getdynamic.
9648
9649 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9650             Bruno Haible  <bruno@clisp.org>
9651
9652         Implement nproc for NetBSD, OpenBSD.
9653         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9654         (ARRAY_SIZE): New macro.
9655         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9656         * m4/nproc.m4: New file.
9657         * modules/nproc (Files): Add m4/nproc.m4.
9658         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9659         (Makefile.am): Instead, augment lib_SOURCES.
9660
9661 2009-10-18  Bruno Haible  <bruno@clisp.org>
9662
9663         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9664         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9665         sys/param.h.
9666
9667 2009-10-16  Eric Blake  <ebb9@byu.net>
9668
9669         utimensat: new module
9670         * modules/utimensat: New file.
9671         * lib/utimensat.c (utimensat): Likewise.
9672         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9673         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9674         so we can work around Linux bugs.
9675         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9676         * modules/sys_stat (Makefile.am): Substitute them.
9677         * lib/sys_stat.in.h (utimensat): Declare it.
9678         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9679         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9680         * modules/utimensat-tests: New test.
9681         * tests/test-utimensat.c: Likewise.
9682
9683         utimens: let lutimens work on non-symlinks
9684         * lib/utimens.c (lutimens): Fall back to utimens rather than
9685         failing with ENOSYS, when file is not a symlink.
9686         (utimens): Reduce redirection.
9687         * tests/test-lutimens.h (test_lutimens): Update test to cover
9688         non-symlinks.
9689         * tests/test-utimens.h (test_utimens): Update test to cover
9690         symlinks.
9691         * tests/test-utimens.c (main): Update caller.
9692
9693         utimens: cache whether utimensat syscall works
9694         * lib/utimens.c (utimensat_works_really): New cache variable.
9695         (fdutimens, lutimens): Use it to avoid failing syscall.
9696
9697         test-stat-time, test-utimens: improve portability
9698         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9699         ext4 on alpha, and for cygwin.
9700         * tests/test-utimens-common.h: New file.
9701         (nap): Factor delays into single function.
9702         * tests/test-lutimens.h (test_lutimens): Use new header.
9703         * tests/test-futimens.h (test_futimens): Likewise.
9704         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9705         timestamps to occur from same machine, as was done previously for
9706         test_utimens.
9707         * modules/utimens-tests (Files): Ship new file.
9708         * modules/futimens-tests (Files): Likewise.
9709         Reported in part by Jim Meyering.
9710
9711         sys_stat: sort replacement declarations
9712         * lib/sys_stat.in.h: Sort declarations.
9713         * lib/futimens.c (futimens): Fix typo.
9714
9715 2009-10-15  Jim Meyering  <meyering@redhat.com>
9716
9717         don't let environment settings perturb build
9718         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9719         could cause a configure-time and/or build-time malfunction.
9720         Typically, a configure-time function-in-library test is performed
9721         via code like this:
9722
9723           LIB_VAR=
9724           AC_SUBST([LIB_VAR])
9725           prefix_saved_LIBS=$LIBS
9726             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9727                        [test "$ac_cv_search_FUNC" = "none required" ||
9728                         LIB_VAR=$ac_cv_search_FUNC])
9729           LIBS=$prefix_saved_LIBS
9730
9731         However, in each of the files affected by this change, the LIB_VAR=
9732         initialization was omitted.  Thus, when set in the environment, its
9733         value would propagate into generated Makefiles when FUNC is not found
9734         in LIB_NAME.
9735         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9736         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9738
9739 2009-10-14  Eric Blake  <ebb9@byu.net>
9740
9741         fchdir: avoid infinite recursion in mingw
9742         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9743         recursing.
9744
9745         test-stat-time: port to mingw
9746         * tests/test-stat-time.c (force_unlink): Return a value.
9747         (test_ctime) [W32]: Fix compilation error.
9748         (nap): Don't call usleep with too large an argument.  Use
9749         force_unlink.
9750         * doc/pastposix-functions/usleep.texi (usleep): Document the
9751         portability issue.
9752
9753 2009-10-13  Jim Meyering  <meyering@redhat.com>
9754
9755         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9756         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9757         * modules/pipe-filter-ii: Likewise.
9758         * modules/sys_socket-tests: Likewise.
9759         * modules/tsearch-tests: Likewise.
9760         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9761         (check): Depend on it.
9762
9763 2009-10-12  Eric Blake  <ebb9@byu.net>
9764
9765         utimens-tests: port to NFS file systems
9766         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9767         comparisons to avoid spurious failures from timestamp drift
9768         between NFS machines.
9769
9770 2009-10-12  Eric Blake  <ebb9@byu.net>
9771
9772         stat-time-tests: minor cleanups
9773         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9774         * tests/test-stat-time.c (nap): Separate assignment from call.
9775         Suggested by Paolo Bonzini and Bruno Haible.
9776
9777         sys_stat: guarantee struct timespec
9778         * lib/sys_stat.in.h (includes): Always include <time.h>
9779         * modules/sys_stat (Depends-on): Add time.
9780         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9781         mode_t permission values.
9782         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9783         get at subsecond timestamps.
9784
9785 2009-10-10  Eric Blake  <ebb9@byu.net>
9786
9787         futimens: new module
9788         * modules/futimens: New file.
9789         * lib/futimens.c (futimens): Likewise.
9790         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9791         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9792         we can work around Linux bugs.
9793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9794         * modules/sys_stat (Makefile.am): Substitute them.
9795         * lib/sys_stat.in.h (futimens): Declare it.
9796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9797         * doc/posix-functions/futimens.texi (futimens): Likewise.
9798         * modules/futimens-tests: New test.
9799         * tests/test-futimens.c: Likewise.
9800
9801         utimens: introduce fdutimens
9802         * lib/utimens.h (fdutimens): New prototype.
9803         * lib/utimens.c (gl_futimens): Move guts...
9804         (fdutimens): ...to new interface.
9805         * tests/test-utimens.c (do_fdutimens): Use it.
9806
9807         utimens: add UTIME_NOW and UTIME_OMIT support
9808         * lib/utimens.c (validate_timespec, update_timespec): New helper
9809         functions.
9810         (gl_futimens, lutimens): Use them.
9811         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9812         stdbool, sys_stat.
9813         (Link): Mention resulting library dependency.
9814         * modules/utimecmp (Link): Likewise.
9815         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9816         (Makefile.am): Pick up library dependency.
9817         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9818         definition.
9819         * tests/test-sys_stat.c: Test the definitions.
9820         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9821         * NEWS: Document library dependency.
9822
9823         utimecmp: support symlink timestamps
9824         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9825         hashing when possible.  Use pathconf when available.
9826         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9827         * modules/utimecmp (Depends-on): Add lstat.
9828
9829         utimens: add lutimens interface
9830         * lib/utimens.c (lutimens): New function.
9831         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9832         * lib/utimens.h (lutimens): Declare new interface.
9833         * tests/test-utimens.c (main): Enhance test.
9834         * tests/test-lutimens.h (test_lutimens): New file.
9835         * modules/utimens-tests (Files): Distribute it.
9836         (Depends-on): Add symlink.
9837         (configure.ac): Check for usleep.
9838
9839         utimens: validate futimens usage
9840         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9841         fewer syscalls on failure later on.  Avoid compiler warning on
9842         mingw.
9843         * modules/utimens (Depends-on): Add dup2.
9844
9845         utimens: add test
9846         * modules/utimens-tests: New test.
9847         * tests/test-utimens.h: New file.
9848         * tests/test-futimens.h: Likewise.
9849         * tests/test-utimens.c: Likewise.
9850
9851         doc: mention timestamp portability issues
9852         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9853         instead.
9854         * doc/posix-functions/utime.texi (utime): Likewise.
9855         * doc/posix-functions/utimes.texi (utimes): Likewise.
9856         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9857         instead.
9858         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9859         module.
9860         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9861         Mention weakness with symlink timestamps.
9862         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9863         to utimensat/futimens instead.
9864         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9865
9866         test-dup2: enhance test
9867         * tests/test-dup2.c (main): Also check AT_FDCWD.
9868
9869         test-stat-time: avoid more spurious failures
9870         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9871         xfs; and avoid race if the two timestamps cross quantization edge.
9872
9873         relocatable: prefer 'file system' over 'filesystem'
9874         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9875         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9876         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9877         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9878         * lib/relocatable.c (compute_curr_prefix): Likewise.
9879
9880 2009-10-10  Jim Meyering  <meyering@redhat.com>
9881
9882         stat-time-tests: check for the usleep function
9883         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9884
9885 2009-10-10  Bruno Haible  <bruno@clisp.org>
9886
9887         * modules/xnanosleep: Put the Link section after the Include section.
9888
9889 2009-10-09  Eric Blake  <ebb9@byu.net>
9890
9891         dup2: work around FreeBSD 6.1 bug
9892         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9893         * doc/posix-functions/dup2.texi (dup2): Document it.
9894         Reported by Nelson H. F. Beebe and Jim Meyering.
9895
9896         test-stat-time: port to buggy NFS clients
9897         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9898         (test_ctime): Also skip test if mtime and ctime are skewed.
9899
9900         maint: prefer 'file system' over 'filesystem'
9901         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9902         * doc/posix-functions/lstat.texi (lstat): Likewise.
9903         * lib/file-has-acl.c (file_has_acl): Likewise.
9904         * lib/fwriteerror.c [TEST]: Likewise.
9905         * tests/test-areadlink.h (test_areadlink): Likewise.
9906         * tests/test-areadlinkat-with-size.c (main): Likewise.
9907         * tests/test-areadlinkat.c (main): Likewise.
9908         * tests/test-canonicalize-lgpl.c (main): Likewise.
9909         * tests/test-canonicalize.c (main): Likewise.
9910         * tests/test-fstatat.c (main): Likewise.
9911         * tests/test-linkat.c (main): Likewise.
9912         * tests/test-lstat.h (test_lstat_func): Likewise.
9913         * tests/test-mkdir.h (test_mkdir): Likewise.
9914         * tests/test-readlink.h (test_readlink): Likewise.
9915         * tests/test-remove.c (main): Likewise.
9916         * tests/test-rename.h (test_rename): Likewise.
9917         * tests/test-renameat.c (main): Likewise.
9918         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9919         * tests/test-symlink.h (test_symlink): Likewise.
9920         * tests/test-symlinkat.c (main): Likewise.
9921         * tests/test-unlink.h (test_unlink_func): Likewise.
9922         * tests/test-unlinkat.c (main): Likewise.
9923
9924         maint: make realtime library usage explicit
9925         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9926         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9927         * modules/settime (Link): Likewise.
9928         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9929
9930         test-stat-time: speed up execution
9931         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9932         warning on mingw.
9933         (nap): New helper function.
9934         (prepare_test): Use it to reduce sleep time.
9935         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9936         execution.
9937         * modules/stat-time-tests (configure.ac): Check for usleep.
9938
9939 2009-10-09  Jim Meyering  <meyering@redhat.com>
9940
9941         selinux-h: always use getfilecon wrappers
9942         * lib/getfilecon.c: New file.
9943         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9944         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9945         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9946         (fgetfilecon): Provide a stub.
9947         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9948         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9949         file unconditionally.
9950         When <selinux/selinux.h> is found, arrange to use wrappers.
9951         * modules/selinux-h (Files): Add getfilecon.c.
9952         (Makefile.am): Substitute include-next-related bits
9953         into the now-always-generated selinux/selinux.h file.
9954         * doc/glibc-functions/lgetfilecon.texi: New file.
9955         * doc/glibc-functions/fgetfilecon.texi: New file.
9956         * doc/glibc-functions/getfilecon.texi: New file.
9957         * doc/glibc-functions/getfilecon-desc.texi: New file.
9958         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9959         which to pull in the new files.
9960         * MODULES.html.sh (Misc): Add selinux-h.
9961
9962 2009-10-08  Jim Meyering  <meyering@redhat.com>
9963
9964         unistd: fix comment typo
9965         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9966
9967 2009-10-08  Eric Blake  <ebb9@byu.net>
9968
9969         areadlink: use SIZE_MAX consistently
9970         * modules/areadlink (Depends-on): Add stdint.
9971         * modules/areadlink-with-size (Depends-on): Likewise.
9972         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9973         gives NULL; drop sys/types, since unistd gives size_t; and add
9974         stdint for SIZE_MAX.
9975         (SIZE_MAX): Rely on headers.
9976         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9977         and add stdint.
9978         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9979         (SIZE_MAX): Likewise.
9980         (INITIAL_BUF_SIZE): Turn into enum.
9981         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9982
9983 2009-10-08  Jim Meyering  <meyering@redhat.com>
9984
9985         areadlinkat: avoid compilation failure
9986         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9987         Fix typo in comment.
9988
9989 2009-10-07  Eric Blake  <ebb9@byu.net>
9990
9991         areadlinkat-with-size: new module
9992         * modules/areadlinkat-with-size: New module.
9993         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9994         * lib/areadlink.h (areadlinkat): Declare it.
9995         * MODULES.html.sh (File system functions): Mention it.
9996         * modules/areadlinkat-with-size-tests: New test.
9997         * tests/test-areadlinkat-with-size.c: New file.
9998
9999         xreadlinkat: new module
10000         * modules/xreadlinkat: New module.
10001         * lib/xreadlinkat.c (xreadlinkat): New file.
10002         * lib/xreadlink.h (xreadlinkat): Declare it.
10003         * MODULES.html.sh (File system functions): Mention it.
10004
10005         areadlinkat: new module
10006         * lib/at-func.c (FUNC_FAIL): New define.
10007         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10008         * modules/areadlinkat: New module.
10009         * lib/linkat.c (areadlinkat): Move...
10010         * lib/areadlinkat.c (areadlinkat): ...to new file.
10011         * lib/areadlink.h (areadlinkat): Declare it.
10012         * modules/linkat (Depends-on): Add areadlinkat.
10013         * MODULES.html.sh (File system functions): Mention it.
10014         * modules/areadlinkat-tests: New test.
10015         * tests/test-areadlinkat.c: New file.
10016
10017         areadlink, areadlink-with-size: add tests
10018         * modules/areadlink-tests: New test.
10019         * modules/areadlink-with-size-tests: Likewise.
10020         * tests/test-areadlink.h: New file.
10021         * tests/test-areadlink.c: Likewise.
10022         * tests/test-areadlink-with-size.c: Likewise.
10023
10024         maint: minor cleanups
10025         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10026         _UNUSED_PARAMETER_ instead.
10027         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10028         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10029         * modules/linkat-tests (Files): Distribute test-link.h.
10030
10031         openat, utimens: whitespace cleanup
10032         * lib/openat.c: Prefer space throughout, rather than mix of 8
10033         spaces vs. tabs.
10034         * lib/at-func.c: Likewise.
10035         * lib/utimens.c: Likewise.
10036
10037         openat: avoid using wrong fd
10038         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10039         working directory chooses same fd.
10040         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10041
10042         mkdir, mkdirat: fix cygwin 1.5.x bug
10043         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10044         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10045         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10046         bug.
10047         (gl_PREREQ_MKDIR): Delete unused macro.
10048         * modules/mkdir (Files): Track file rename.
10049         (configure.ac): Update macro name.
10050         * modules/openat (Depends-on): Add mkdir.
10051         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10052
10053         mkdir, mkdirat: add tests
10054         * modules/mkdir-tests: New test.
10055         * tests/test-mkdir.h: New file.
10056         * tests/test-mkdir.c: Likewise.
10057         * tests/test-mkdirat.c: Likewise.
10058         * modules/openat-tests (Files): Add new files.
10059         (Makefile.am): Run new test.
10060
10061 2009-10-06  Eric Blake  <ebb9@byu.net>
10062
10063         doc: tweak *at function documentation
10064         * doc/posix-functions/faccessat.texi (faccessat): Mention
10065         known issue with replacement.
10066         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10067         * doc/posix-functions/linkat.texi (linkat): Likewise.
10068         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10069         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10070         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10071         * doc/posix-functions/renameat.texi (renameat): Likewise.
10072         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10073
10074         openat: fix GNU/Hurd bug in unlinkat
10075         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10076         broken.
10077         * doc/posix-functions/unlink.texi (unlink): Document this.
10078         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10079
10080         fdopendir: fix GNU/Hurd bug
10081         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10082         allowing non-directory fds.
10083         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10084         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10085         * modules/dirent (Makefile.am): Substitute it.
10086         * lib/dirent.in.h (fdopendir): Declare replacement.
10087         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10088         * tests/test-fdopendir.c (main): Test something other than
10089         /dev/null, since on Hurd that behaves like a directory.
10090
10091         test-symlink: port to GNU/Hurd
10092         * tests/test-symlink.h (test_symlink): Relax expected errno.
10093
10094         doc: tweak more cygwin information
10095         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10096         now compatible with glibc.
10097         * doc/posix-functions/getopt.texi (getopt): Likewise.
10098
10099         getopt-gnu: add another test
10100         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10101         guarantee behavior relied on by m4.
10102         * tests/test-getopt.c (main): Use it.
10103         * modules/getopt-posix-tests (Depends-on): Add setenv.
10104         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10105
10106         getopt: fix compilation on darwin
10107         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10108         include.
10109         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10110         Reported by Ludovic Courtès.
10111
10112 2009-10-06  Bruno Haible  <bruno@clisp.org>
10113
10114         * modules/size_max (Description): Discourage its use.
10115         Reported by Simon Josefsson.
10116
10117 2009-10-06  Jim Meyering  <meyering@redhat.com>
10118
10119         linkat: avoid compilation failure
10120         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10121
10122 2009-10-05  Eric Blake  <ebb9@byu.net>
10123
10124         linkat: support Linux 2.6.17
10125         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10126         linkat on Linux, but allow cache variable override.
10127         * lib/linkat.c (rpl_linkat): Define override.
10128         * modules/linkat (Depends-on): Add symlinkat.
10129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10130         * modules/unistd (Makefile.am): Substitute it.
10131         * lib/unistd.in.h (linkat): Declare replacement.
10132         Reported by Pádraig Brady.
10133
10134         quotearg: port test to systems with C.UTF-8 locale
10135         * tests/test-quotearg.c (struct result_strings): Add another
10136         member, differentiating between C.ASCII and C.UTF-8 handling.
10137         (compare_strings): Add parameter.
10138         (main): Adjust all callers.
10139
10140         getopt: avoid clash with FreeBSD _getopt_internal
10141         * lib/getopt.in.h (_getopt_internal): Override the name.
10142         * lib/getopt_int.h (includes): Pick up any overrides.
10143         Reported by Reuben Thomas.
10144
10145         hash: allow C89 compilation
10146         * lib/hash.c (check_tuning): Move declaration before statement.
10147         Reported by Reuben Thomas.
10148
10149 2009-10-05  Karl Berry  <karl@gnu.org>
10150
10151         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10152
10153 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10154             Bruno Haible  <bruno@clisp.org>
10155
10156         * lib/uname.c (uname): Use a table-driven algorithm to compute
10157         Windows NT versions.
10158
10159 2009-10-04  Bruno Haible  <bruno@clisp.org>
10160
10161         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10162         program_invocation_short_name.
10163         * modules/progname (configure.ac): Test for presence of
10164         program_invocation_short_name.
10165         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10166
10167 2009-10-04  Bruno Haible  <bruno@clisp.org>
10168
10169         * lib/progname.c (set_program_name): Fix comment.
10170         Reported by Jim Meyering.
10171
10172 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10173             Bruno Haible  <bruno@clisp.org>
10174
10175         * lib/uname.c: Include <string.h>.
10176         (uname): Do only one call to GetVersionEx in the common case.
10177
10178 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10179             Bruno Haible  <bruno@clisp.org>
10180
10181         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10182         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10183         (uname): Add support for Windows CE and various non-x86 CPU types.
10184
10185 2009-10-03  Bruno Haible  <bruno@clisp.org>
10186
10187         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10188         invocation to tests/configure.ac.
10189         Reported by Ian Beckwith <ianb@erislabs.net>.
10190
10191 2009-10-02  Eric Blake  <ebb9@byu.net>
10192
10193         fchdir: avoid compiler warning
10194         * lib/fchdir.c (canonicalize_file_name)
10195         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10196
10197         test-open: support mingw errno values
10198         * tests/test-open.h (test_open): Relax test.
10199         * tests/test-fopen.h (test_fopen): Likewise.
10200         * tests/test-openat-safer.c (main): Likewise.
10201
10202         open: fix opening directory on mingw
10203         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10204
10205         test-open: on GNU/Hurd, /dev/null is a directory
10206         * tests/test-fopen.h (main): Rename...
10207         (test_fopen): ...to this.  Use a guaranteed non-directory when
10208         confirming open behavior on trailing slash.
10209         * tests/test-openat-safer.c (main): Likewise.
10210         * tests/test-open.h (main): Likewise....
10211         (test_open): ...to this.
10212         * tests/test-fopen.c (main): Adjust caller.
10213         * tests/test-fopen-safer.c (main): Likewise.
10214         * tests/test-open.c (main): Likewise.
10215         * tests/test-fcntl-safer.c (main): Likewise.
10216         Reported by Samuel Thibault.
10217
10218         rename, fchdir: don't ignore chdir failure
10219         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10220         * lib/rename.c (rpl_rename) [W32]: Likewise.
10221         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10222         an empty destination directory if source cannot be renamed,
10223         although there is still possibility for failure.
10224         * doc/posix-functions/rename.texi (rename): Document the race.
10225         Reported by Jim Meyering.
10226
10227         maint: cleanup whitespace in recent commits
10228         * lib/rename.c (rpl_rename): Remove tabs.
10229         * tests/test-link.h (test_link): Likewise.
10230         * lib/fchdir.c (get_name): Likewise.
10231         Reported by Jim Meyering.
10232
10233 2009-10-02  Ben Pfaff  <blp@gnu.org>
10234
10235         relocatable-prog-wrapper: Add missing dependency on
10236         double-slash-root.
10237         * modules/relocatable-prog-wrapper: Add dependency.
10238         Reported by Ian Beckwith <ianb@erislabs.net>.
10239
10240 2009-10-02  Eric Blake  <ebb9@byu.net>
10241
10242         renameat: fix Solaris bugs
10243         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10244         needed fixing.
10245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10246         * modules/stdio (Makefile.am): Substitute it.
10247         * lib/stdio.in.h (renameat): Declare replacement.
10248         * lib/renameat.c (rpl_renameat): Implement fix.
10249
10250         renameat: new module
10251         * modules/renameat: New file.
10252         * lib/renameat.c (renameat): Likewise.
10253         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10255         * modules/stdio (Makefile.am): Substitute them.
10256         * lib/stdio.in.h (renameat): Declare it.
10257         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10258         * doc/posix-functions/renameat.texi (renameat): Likewise.
10259         * modules/renameat-tests: New test.
10260         * tests/test-renameat.c: Likewise.
10261
10262         rename: fix mingw bugs
10263         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10264         directory overwrite bugs.
10265
10266         rename: fix another cygwin 1.5 bug
10267         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10268         checks.
10269         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10270         unnecessary cygwin workarounds.  Also work around bug with moving
10271         full directory onto an empty one.
10272         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10273
10274         rename-dest-slash: merge into rename module
10275         * modules/rename-dest-slash (Status): Mark obsolete.
10276         (Depends-on): Add rename.
10277         (Files): Let rename do it all.
10278         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10279         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10280         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10281         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10282         * lib/rename.c (rpl_rename): Update comments.
10283
10284         rename: fix cygwin 1.5.x bugs
10285         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10286         * lib/rename.c (rpl_rename): Work around them.
10287         * modules/rename (Depends-on): Add same-inode.
10288
10289         rename: fix Solaris 10 bug
10290         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10291         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10292         was the only bug.
10293
10294         rename: fix Solaris 9 bug
10295         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10296         on non-directory.  Avoid calling exit.
10297         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10298         strdup.
10299         * modules/rename-tests (Depends-on): Drop lstat.
10300         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10301         (gl_PREREQ_RENAME): Delete unused macro.
10302
10303         rename-dest-slash: fix NetBSD bug
10304         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10305         links.
10306         * modules/rename-dest-slash (Depends-on): Add same-inode.
10307
10308         rename-tests: new test, exposes several platform bugs
10309         * modules/rename-tests: New file.
10310         * tests/test-rename.h: Likewise.
10311         * tests/test-rename.c: Likewise.
10312         * doc/posix-functions/rename.texi (rename): Improve documentation,
10313         including bugs that will eventually be fixed in gnulib.
10314
10315 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10316
10317         * lib/uname.c: Include <stdlib.h>
10318         (uname): Assume version info is available.
10319
10320 2009-10-02  Jim Meyering  <meyering@redhat.com>
10321
10322         gnu-web-doc-update: correct --help output
10323         * build-aux/gnu-web-doc-update: Make --help output relevant.
10324
10325         gnu-web-doc-update: add standard options
10326         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10327
10328         gnu-web-doc-update: New module.
10329         Use this script to automatically update the on-line web documentation
10330         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10331         * modules/gnu-web-doc-update: New file, from coreutils.
10332         * build-aux/gnu-web-doc-update: New script.
10333
10334 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10335
10336         link: LoadLibrary is not needed.
10337         * lib/link.c: Use GetModuleHandle.
10338
10339 2009-10-01  Eric Blake  <ebb9@byu.net>
10340
10341         getopt: bump serial number
10342         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10343         change.
10344
10345         tests: tighten link, rmdir, and remove tests
10346         * tests/test-link.h (includes): No need to use <config.h> here.
10347         Clean up if directory hard link was created, otherwise test for
10348         trailing '.'.
10349         * tests/test-linkat.c (main): Simplify.
10350         * tests/test-remove.c (main): Enhance test for trailing '.'.
10351         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10352
10353 2009-10-01  Jim Meyering  <meyering@redhat.com>
10354
10355         maint.mk: requiring "make major" was annoying, for a "minor" release.
10356         What is intended is "stable", to contrast with alpha and beta,
10357         so require "make stable", not "make major".
10358         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10359         (get_tool_versions): Likewise.
10360         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10361
10362 2009-09-30  Ben Pfaff  <blp@gnu.org>
10363
10364         Fix broken build of replacement for Windows tmpfile().
10365         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10366         flags argument added along with the 'mkostemp' module.
10367
10368 2009-09-28  Bruno Haible  <bruno@clisp.org>
10369
10370         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10371         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10372         to 'remove_elt'.
10373         (gl_list_remove): Update.
10374         * lib/gl_list.c (gl_list_remove): Update.
10375         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10376         to 'remove_elt'.
10377         (gl_oset_remove): Update.
10378         * lib/gl_list.c (gl_oset_remove): Update.
10379         Reported by Eric Blake.
10380
10381 2009-09-28  Eric Blake  <ebb9@byu.net>
10382
10383         doc: mention yet more cygwin 1.7 status
10384         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10385         cygwin.
10386         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10387         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10388
10389         argp: fix test failure
10390         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10391         that are not upper-case.  Pass correct range to tolower.
10392
10393 2009-09-27  Jim Meyering  <meyering@redhat.com>
10394
10395         test-yesno: work around sparc-dash here-document infelicity
10396         Without this change, the literal \177 byte in a here document
10397         would make dash 0.5.5.1-3 access uninitialized memory.
10398         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10399         Instead, use a marker, "@", and filter through tr to create the desired
10400         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10401
10402 2009-09-27  Bruno Haible  <bruno@clisp.org>
10403
10404         Disable untested support for new flavours of ACLs on AIX.
10405         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10406         progress.
10407         * lib/set-mode-acl.c (qset_acl): Likewise.
10408
10409 2008-12-07  Bruno Haible  <bruno@clisp.org>
10410
10411         Add support for new flavours of ACLs on AIX. (Untested.)
10412         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10413         (file_has_acl): Add support for newer AIX.
10414         * lib/set-mode-acl.c (qset_acl): Likewise.
10415         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10416         Rainer Tammer <tammer@tammer.net>.
10417
10418 2009-09-26  Eric Blake  <ebb9@byu.net>
10419
10420         argp: fix compilation of getopt
10421         * lib/getopt.in.h (includes): Use different guard than glibc.
10422         Reported by Sergey Poznyakoff.
10423
10424         doc: mention more cygwin 1.7 status
10425         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10426         bug.
10427         * doc/posix-functions/execl.texi (execl): Likewise.
10428         * doc/posix-functions/execle.texi (execle): Likewise.
10429         * doc/posix-functions/execlp.texi (execlp): Likewise.
10430         * doc/posix-functions/execv.texi (execv): Likewise.
10431         * doc/posix-functions/execve.texi (execve): Likewise.
10432         * doc/posix-functions/execvp.texi (execvp): Likewise.
10433         * doc/glibc-functions/canonicalize_file_name.texi
10434         (canonicalize_file_name): Cygwin 1.7 now provides this.
10435         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10436         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10437         on AT_SYMLINK_NOFOLLOW.
10438
10439 2009-09-24  Eric Blake  <ebb9@byu.net>
10440
10441         test-linkat: make test more robust
10442         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10443
10444         getopt: fix inclusion guards for cygwin
10445         * modules/getopt-posix (Depends-on): Add include-next.
10446         (Makefile.am): Substitute more items in replacement header.
10447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10448         <getopt.h>.
10449         * lib/getopt.in.h (includes): Use split inclusion guard, and
10450         prefer <getopt.h> over include <unistd.h> when one is present.
10451         (option): Also override name of 'struct option'.
10452
10453         same-inode: revert prior change; it is not yet ready
10454         * NEWS: Undo mention of this change.
10455         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10456         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10457         * lib/cycle-check.c (cycle_check): Likewise.
10458         * lib/same.c (same_name): Likewise.
10459         * lib/at-func2.c (at_func2): Likewise.
10460
10461 2009-09-23  Eric Blake  <ebb9@byu.net>
10462
10463         linkat: new module
10464         * modules/linkat: New file.
10465         * lib/at-func2.c (at_func2): Likewise.
10466         * lib/linkat.c (linkat): Likewise.
10467         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10468         * lib/openat-priv.h (at_func2): Add declaration.
10469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10470         * modules/unistd (Makefile.am): Substitute them.
10471         * lib/unistd.in.h (linkat): Declare it.
10472         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10473         * doc/posix-functions/linkat.texi (linkat): Likewise.
10474         * doc/posix-functions/link.texi (link): Tweak wording.
10475         * tests/test-link.c (main): Move guts...
10476         * tests/test-link.h (test_link): ...into new file.
10477         * modules/linkat-tests: New test.
10478         * tests/test-linkat.c: Likewise.
10479         * modules/link-tests (Files): Ship new file.
10480         (Depends-on): Add stdbool.
10481
10482         dirname: add library-safe mdir_name
10483         * lib/dirname.h (mdir_name): New prototype.
10484         * lib/dirname.c (dir_name): Move guts...
10485         (mdir_name): ...to new function that avoids xalloc_die.
10486
10487         fchdir: another mingw fix
10488         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10489         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10490         on mingw (where it has not yet been ported), and make it optional
10491         elsewhere.
10492         (_gl_register_fd): Use it.
10493
10494         same-inode: make SAME_INODE tri-state, to port to mingw
10495         * NEWS: Mention this change.
10496         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10497         st_ino always being 0.
10498         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10499         * lib/cycle-check.c (cycle_check): Likewise.
10500         * lib/same.c (same_name): Likewise.
10501
10502         lstat: avoid mingw compilation error
10503         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10504         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10505         lstat ourselves.
10506         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10507         was adequate.
10508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10509         the checks for lstat.
10510         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10511
10512         link: fix test failure on Solaris 9
10513         * lib/link.c (rpl_link): Don't assume link will catch bogus
10514         trailing slash on source.
10515
10516         test-symlinkat: enhance test
10517         * tests/test-readlink.c (main): Move guts...
10518         * tests/test-readlink.h (test_readlink): ...into new file.
10519         * tests/test-symlink.c (main): Move guts...
10520         * tests/test-symlink.h (test_symlink): ...into new file.
10521         * tests/test-symlinkat.c (main): Use new files for further
10522         coverage.
10523         (do_symlink, do_readlink): New helper functions.
10524         * modules/symlink-tests (Files): Ship new file.
10525         (Depends-on): Add stdbool.
10526         * modules/readlink-tests (Files): Ship new file.
10527         (Depends-on): Add stdbool.
10528         * modules/symlinkat-tests (Files): Use new files.
10529
10530 2009-09-23  Eric Blake  <ebb9@byu.net>
10531
10532         readlink: document portability issue with symlink length
10533         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10534         systems have bogus st_size on symlinks, and mention the
10535         areadlink-with-size module.
10536         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10537         * doc/posix-functions/readlink.texi (readlink): Mention the
10538         areadlink module, and ERANGE failure.
10539         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10540         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10541
10542         readlink: fix Solaris 9 bug with trailing slash
10543         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10544         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10545         * doc/posix-functions/readlink.texi (readlink): Document this.
10546         * modules/readlink-tests: New test.
10547         * tests/test-readlink.c: Likewise.
10548
10549         readlink: fix cygwin 1.5.x bug with return type
10550         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10551         * lib/unistd.in.h (readlink): Use ssize_t.
10552         * lib/readlink.c (readlink): Likewise.
10553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10554         * modules/unistd (Makefile.am): Substitute it.
10555         * lib/unistd.in.h (readlink): Declare replacement.
10556         * doc/posix-functions/readlink.texi (readlink): Document this.
10557
10558         symlink: use throughout gnulib
10559         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10560         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10561         symlink is not used.
10562         * modules/symlinkat (Depends-on): Add symlink.
10563         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10564         * modules/canonicalize-tests (Depends-on): Likewise.
10565         * modules/lstat-tests (Depends-on): Likewise.
10566         * modules/openat-tests (Depends-on): Likewise.
10567         * modules/remove-tests (Depends-on): Likewise.
10568         * modules/rmdir-tests (Depends-on): Likewise.
10569         * modules/unlink-tests (Depends-on): Likewise.
10570         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10571         * tests/test-canonicalize.c (symlink): Likewise.
10572         * tests/test-fstatat.c (symlink): Likewise.
10573         * tests/test-lstat.c (symlink): Likewise.
10574         * tests/test-remove.c (symlink): Likewise.
10575         * tests/test-rmdir.c (symlink): Likewise.
10576         * tests/test-unlink.c (symlink): Likewise.
10577         * tests/test-unlinkat.c (symlink): Likewise.
10578
10579         symlink: new module, for Solaris 9 bug
10580         * modules/symlink: New file.
10581         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10582         * lib/symlink.c: Likewise.
10583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10584         * modules/unistd (Makefile.am): Substitute them.
10585         * lib/unistd.in.h (symlink): Declare replacement.
10586         * MODULES.html.sh (File system functions): Mention it.
10587         * doc/posix-functions/symlink.texi (symlink): Likewise.
10588         * modules/symlink-tests: New test.
10589         * tests/test-symlink.c: Likewise.
10590
10591 2009-09-23  Bruno Haible  <bruno@clisp.org>
10592
10593         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10594         when needed.
10595         Test case: gnulib-tool --import --with-tests atexit inttypes.
10596         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10597
10598 2009-09-23  Bruno Haible  <bruno@clisp.org>
10599
10600         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10601         subcommand, not in a subshell.
10602
10603 2009-09-22  Eric Blake  <ebb9@byu.net>
10604
10605         unistd: sort replacement declarations
10606         * lib/unistd.in.h: Sort declarations.
10607
10608         open, openat: minor optimization
10609         * lib/open.c (open): If open succeeded, len is non-zero.
10610         * lib/openat.c (rpl_openat): Likewise.
10611
10612         link-follow: ensure correct result
10613         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10614         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10615         distinguish between possible failures.
10616
10617 2009-09-21  Eric Blake  <ebb9@byu.net>
10618
10619         fts: avoid compiler warning
10620         * lib/fts.c (dirent_inode_sort_may_be_useful)
10621         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10622
10623 2009-09-19  Bruno Haible  <bruno@clisp.org>
10624
10625         * lib/progreloc.c (canonicalize_file_name): New declaration.
10626
10627 2009-09-19  Eric Blake  <ebb9@byu.net>
10628
10629         link: fix quoting
10630         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10631
10632         openat: fix openat bugs on Solaris 9
10633         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10634         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10635         * modules/openat (Depends-on): Add open.
10636         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10637         * modules/fcntl-h (Makefile.am): Substitute it.
10638         * lib/fcntl.in.h (openat): Declare replacement.
10639         * doc/posix-functions/openat.texi (openat): Document this.
10640
10641         openat: move fstatat and unlinkat into correct files
10642         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10643         compiled.
10644         * lib/openat.c (fstatat, unlinkat): Move...
10645         * lib/fstatat.c (fstatat): ...into correct files.
10646         * lib/unlinkat.c (unlinkat): Likewise.
10647
10648         openat: fix unlinkat bugs on Solaris 9
10649         * lib/unlinkat.c (unlinkat): New file.
10650         * modules/openat (Depends-on): Add unlink.
10651         (Files): Distribute it.
10652         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10653         trailing slash behavior is broken.
10654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10655         * modules/unistd (Makefile.am): Substitute it.
10656         * lib/unistd.in.h (unlinkat): Declare replacement.
10657         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10658
10659         openat: fix fstatat bugs on Solaris 9
10660         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10661         stat.
10662         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10663
10664         test-unlinkat: enhance test, to expose Solaris 9 bug
10665         * tests/test-unlink.c (main): Factor guts...
10666         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10667         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10668         * tests/test-rmdir.c (main): Adjust caller.
10669         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10670         (unlinker): New helper function.
10671         (rmdirat): Enhance check.
10672         * modules/rmdir-tests (Depends-on): Add stdbool.
10673         * modules/unlink-tests (Depends-on): Likewise.
10674         (Files): Add test-unlink.h.
10675         * modules/openat-tests (Files): Likewise.
10676         (Depends-on): Add unlinkdir.
10677
10678         test-fstatat: new test, to expose Solaris 9 bugs
10679         * tests/test-stat.c (main): Factor guts...
10680         * tests/test-stat.h (test_stat_func): ...into new file.
10681         * tests/test-lstat.c (main): Factor guts...
10682         * tests/test-lstat.h (test_lstat_func): ...into new file.
10683         * tests/test-fstatat.c: New file.
10684         * modules/stat-tests (Files): Add test-stat.h.
10685         * modules/lstat-tests (Files): Add test-lstat.h.
10686         (Depends-on): Add stdbool.
10687         * modules/openat-tests (Depends-on): Add pathmax.
10688         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10689         (Makefile.am): Run new test.
10690
10691         remove: new module, for mingw and Solaris 9 bugs
10692         * modules/remove: New file.
10693         * lib/remove.c: Likewise.
10694         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10696         * modules/stdio (Makefile.am): Use them.
10697         * lib/stdio.in.h (remove): Declare replacement.
10698         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10699         * doc/posix-functions/remove.texi (remove): Likewise.
10700         * modules/remove-tests: New test.
10701         * tests/test-remove.c: Likewise.
10702
10703         unlink: new module, for Solaris 9 bug
10704         * modules/unlink: New file.
10705         * lib/unlink.c: Likewise.
10706         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10708         * modules/unistd (Makefile.am): Use them.
10709         * lib/unistd.in.h (stat): Declare replacement.
10710         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10711         * doc/posix-functions/unlink.texi (unlink): Likewise.
10712         * modules/unlink-tests: New test.
10713         * tests/test-unlink.c: Likewise.
10714
10715         lstat: fix Solaris 9 bug
10716         * lib/lstat.c (lstat): Also check for trailing slash on
10717         non-symlink, non-directories.  Use stat module to simplify logic.
10718         * doc/posix-functions/lstat.texi (lstat): Document it.
10719         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10720         (configure.ac): Check for symlink.
10721         * tests/test-lstat.c (main): Add more tests.
10722
10723         stat: add as dependency to other modules
10724         * modules/chown (Depends-on): Add stat.
10725         * modules/euidaccess (Depends-on): Likewise.
10726         * modules/fchdir (Depends-on): Likewise.
10727         * modules/isdir (Depends-on): Likewise.
10728         * modules/link (Depends-on): Likewise.
10729         * modules/lstat (Depends-on): Likewise.
10730         * modules/mkdir-p (Depends-on): Likewise.
10731         * modules/modechange (Depends-on): Likewise.
10732         * modules/open (Depends-on): Likewise.
10733         * modules/readlink (Depends-on): Likewise.
10734         * modules/same (Depends-on): Likewise.
10735
10736         stat: fix Solaris 9 bug
10737         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10738         slash.
10739         * lib/stat.c (rpl_stat): Work around it.
10740         * doc/posix-functions/stat.texi (stat): Update documentation.
10741
10742         stat: new module, for mingw bug
10743         * modules/stat: New file.
10744         * lib/stat.c: Likewise.
10745         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10746         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10747         * modules/sys_stat (Makefile.am): Use them.
10748         * lib/sys_stat.in.h (stat): Declare replacement.
10749         * lib/openat.c (fstatat): Deal with lstat and stat being function
10750         macros.
10751         * modules/openat (Depends-on): Add inline.
10752         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10753         * doc/posix-functions/stat.texi (stat): Likewise.
10754         * modules/stat-tests: New test.
10755         * tests/test-stat.c: Likewise.
10756
10757 2009-09-19  Jim Meyering  <meyering@redhat.com>
10758
10759         syntax-check: detect unnecessary inclusion of canonicalize.h
10760         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10761
10762 2009-09-19  Eric Blake  <ebb9@byu.net>
10763
10764         canonicalize-lgpl: adjust clients to use correct header
10765         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10766         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10767         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10768         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10769         * lib/progreloc.c (includes): Likewise.
10770
10771 2009-09-19  Jim Meyering  <meyering@redhat.com>
10772
10773         test-posixtm.c: correct a comment
10774         * tests/test-posixtm.c: Correct first-line comment.
10775         Spotted by Eric Blake.
10776
10777 2009-09-16  Jim Meyering  <meyering@redhat.com>
10778
10779         posixtm-tests: make T const-correct; add a test case
10780         * tests/test-posixtm.c (T): Declare const.
10781         Add a test for -(2^31+1).
10782         Remove useless can-succeed-only-in-2002 test.
10783
10784         posixtm-tests: adjust the sole failing test
10785         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10786         expected output matches what mktime now produces.  Cross-checked via
10787         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10788
10789         posixtm: move #ifdef'd tests into a new module
10790         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10791         * tests/test-posixtm.c: ... this new file.
10792         * modules/posixtm-tests: New module.
10793
10794 2009-09-19  Eric Blake  <ebb9@byu.net>
10795
10796         openat: simplify use of at-func.c
10797         * lib/at-func.c (includes): Include prerequisites here, to
10798         simplify requirements on client files.
10799         * lib/openat-priv.h: Add double-inclusion guard.
10800         * lib/faccessat.c (includes): Simplify.
10801         * lib/fchmodat.c (includes): Likewise.
10802         * lib/fchownat.c (includes): Likewise.
10803         * lib/mkdirat.c (includes): Likewise.
10804         * lib/mkfifoat.c (includes): Likewise.
10805         * lib/symlinkat.c (includes): Likewise.
10806
10807         openat: allow return of fd 0
10808         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10809         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10810         unistd-safer.
10811         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10812         <fcntl.h>; this module does not leak fds.
10813         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10814         must be allowed to return 0, leaving openat_safer to add the
10815         safety.
10816         (openat_permissive): Avoid writing to just-opened fd 2 if
10817         restoring the current directory fails.
10818         * lib/openat-die.c (openat_restore_fail): Add comment.
10819         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10820         (save_cwd): Guarantee safe fd, but without use of open_safer.
10821         * tests/test-openat.c: New test.
10822         * modules/openat-tests (Files, Makefile.am): Distribute and build
10823         new file.
10824
10825         relocatable-prog-wrapper: fix build
10826         * modules/relocatable-prog-wrapper (Files): Update name of
10827         canonicalize m4 file, broken on 2009-09-17.
10828         Reported by emad hajjar <aleppos@hotmail.com>.
10829
10830 2009-09-19  Bruno Haible  <bruno@clisp.org>
10831
10832         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10833         * lib/safe-alloc.c: Likewise.
10834         Reported by Ian Beckwith <ianb@erislabs.net>.
10835
10836 2009-09-18  Bruno Haible  <bruno@clisp.org>
10837
10838         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10839         Reported by <erobles@sensacd.com.mx>.
10840
10841 2009-09-17  Eric Blake  <ebb9@byu.net>
10842
10843         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10844         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10845         slashes when checking if last component is missing.
10846         * tests/test-canonicalize.c (main): Test this.
10847
10848         canonicalize, canonicalize-lgpl: honor // if distinct from /
10849         * modules/canonicalize (Files): Add double-slash-root.m4.
10850         * modules/canonicalize-lgpl (Files): Likewise.
10851         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10852         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10853         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10854         fallback definition.
10855         (canonicalize_filename_mode): Use it to protect //.
10856         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10857         (__realpath): Likewise.
10858         * tests/test-canonicalize.c (main): Test this.
10859         * tests/test-canonicalize-lgpl.c (main): Likewise.
10860         * modules/canonicalize-tests (Depends-on): Add same-inode.
10861         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10862
10863         canonicalize-lgpl: fix glibc bug with trailing slash
10864         * m4/canonicalize-lgpl.m4: Move contents...
10865         * m4/canonicalize.m4: ...here.
10866         (gl_CANONICALIZE_LGPL): Factor realpath check...
10867         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10868         glibc 2.3.5 bug, fixed 2005-04-27.
10869         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10870         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10871         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10872         * modules/canonicalize-lgpl (Files): Manage file rename.
10873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10874         * modules/stdlib (Makefile.am): Substitute witness.
10875         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10876         is needed.
10877         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10878         replacement is required.
10879         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10880         * doc/glibc-functions/canonicalize_file_name.texi
10881         (canonicalize_file_name): Document this.
10882         * doc/posix-functions/realpath.texi (realpath): Likewise.
10883
10884         canonicalize-lgpl: reject non-directory with trailing slash
10885         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10886         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10887         catches failures in glibc 2.3.5.
10888         * tests/test-canonicalize.c (main): Likewise.
10889
10890         canonicalize-lgpl: use native realpath if it works
10891         * lib/canonicalize-lgpl.c (realpath): Guard with
10892         FUNC_REALPATH_WORKS.
10893         * lib/stdlib.in.h (realpath): Make declaration optional based on
10894         HAVE_REALPATH.
10895         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10896         native realpath works.
10897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10898         * modules/stdlib (Makefile.am): Substitute witness.
10899
10900         canonicalize, canonicalize-lgpl: use <stdlib.h>
10901         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10902         (Include): Mention <stdlib.h>.
10903         (configure.ac): Mention functions we provide.
10904         * modules/canonicalize (configure.ac): Likewise.
10905         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10906         realpath if canonicalize_file_name is missing.
10907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10908         * modules/stdlib (Makefile.am): Substitute witnesses.
10909         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10910         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10911         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10912         * NEWS: Document this.
10913         * doc/glibc-functions/canonicalize_file_name.texi
10914         (canonicalize_file_name): Likewise.
10915         * doc/posix-functions/realpath.texi (realpath): Likewise.
10916         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10917
10918         test-canonicalize: consolidate into single C program
10919         * tests/test-canonicalize.sh: Delete; move setup into...
10920         * tests/test-canonicalize.c (main): ...the program, making it
10921         easier to run in debugger.  Add some tests.
10922         * modules/canonicalize-tests (Files): Remove unused file.
10923         (Depends-on): Add progname.
10924         (configure.ac, Makefile.am): Simplify.
10925
10926         test-canonicalize-lgpl: consolidate into single C program
10927         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10928         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10929         easier to run in debugger.  Add some tests.
10930         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10931         (configure.ac, Makefile.am): Simplify.
10932
10933         canonicalize: avoid resolvepath
10934         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10935         unnecessary checks.
10936         * lib/canonicalize.c (includes): Simplify.
10937         (canonicalize_file_name): Drop resolvepath implementation.
10938         * modules/canonicalize (Depends-on): Drop filenamecat.
10939
10940         canonicalize: don't lose errno
10941         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10942         over calls to free.
10943
10944         canonicalize: simplify errno handling
10945         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10946         assignment.
10947
10948         canonicalize, canonicalize-lgpl: update module dependencies
10949         * modules/canonicalize (Depends-on): Add extensions, lstat,
10950         pathmax, stdlib.
10951         (Files): Drop pathmax.h.
10952         (configure.ac): Adjust macro name.
10953         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10954         lstat, stdlib, sys_stat.
10955         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10956         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10957         extensions.
10958         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10959         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10960         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10961         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10962         declaration, if available.
10963         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10964         we can rely on the readlink module.
10965         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10966         (includes): Use <unistd.h> unconditionally.
10967
10968 2009-09-17  Eric Blake  <ebb9@byu.net>
10969
10970         maint: make Include sections of modules consistent
10971         * modules/alloca: Use only header name; no need to list #include.
10972         * modules/alloca-opt: Likewise.
10973         * modules/arpa_inet: Likewise.
10974         * modules/canon-host: Likewise.
10975         * modules/configmake: Likewise.
10976         * modules/dirent: Likewise.
10977         * modules/eealloc: Likewise.
10978         * modules/environ: Likewise.
10979         * modules/fchdir: Likewise.
10980         * modules/fcntl: Likewise.
10981         * modules/fcntl-h: Likewise.
10982         * modules/gethrxtime: Likewise.
10983         * modules/gettime: Likewise.
10984         * modules/ignore-value: Likewise.
10985         * modules/inet_ntop: Likewise.
10986         * modules/inet_pton: Likewise.
10987         * modules/inttypes: Likewise.
10988         * modules/isnand-nolibm: Likewise.
10989         * modules/isnanf-nolibm: Likewise.
10990         * modules/mbchar: Likewise.
10991         * modules/mbfile: Likewise.
10992         * modules/mbiter: Likewise.
10993         * modules/mbuiter: Likewise.
10994         * modules/netdb: Likewise.
10995         * modules/netinet_in: Likewise.
10996         * modules/nproc: Likewise.
10997         * modules/pagealign_alloc: Likewise.
10998         * modules/poll: Likewise.
10999         * modules/printf-frexp: Likewise.
11000         * modules/pthread: Likewise.
11001         * modules/putenv: Likewise.
11002         * modules/random_r: Likewise.
11003         * modules/relocatable-prog: Likewise.
11004         * modules/search: Likewise.
11005         * modules/select: Likewise.
11006         * modules/selinux-h: Likewise.
11007         * modules/settime: Likewise.
11008         * modules/signal: Likewise.
11009         * modules/size_max: Likewise.
11010         * modules/socklen: Likewise.
11011         * modules/ssize_t: Likewise.
11012         * modules/stdarg: Likewise.
11013         * modules/stdbool: Likewise.
11014         * modules/stddef: Likewise.
11015         * modules/stdint: Likewise.
11016         * modules/stdio: Likewise.
11017         * modules/stdlib: Likewise.
11018         * modules/string: Likewise.
11019         * modules/strings: Likewise.
11020         * modules/sys_file: Likewise.
11021         * modules/sys_ioctl: Likewise.
11022         * modules/sys_select: Likewise.
11023         * modules/sys_socket: Likewise.
11024         * modules/sys_stat: Likewise.
11025         * modules/sys_time: Likewise.
11026         * modules/sys_times: Likewise.
11027         * modules/sys_utsname: Likewise.
11028         * modules/sys_wait: Likewise.
11029         * modules/sysexits: Likewise.
11030         * modules/time: Likewise.
11031         * modules/times: Likewise.
11032         * modules/tmpfile: Likewise.
11033         * modules/trim: Likewise.
11034         * modules/unistd: Likewise.
11035         * modules/wchar: Likewise.
11036         * modules/wctype: Likewise.
11037
11038 2009-09-17  Bruno Haible  <bruno@clisp.org>
11039
11040         Make getdate.y compile on QNX and NetBSD 5 / i386.
11041         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11042         TIME_T_FITS_IN_LONG_INT.
11043         * lib/getdate.y (long_time_t): New type.
11044         (relative_time): Change type of 'seconds' field to long_time_t.
11045         (get_date): Update types of local variables. Check against overflow
11046         during conversion from long_time_t to time_t.
11047         Reported by Matt Kraai <kraai@ftbfs.org>
11048         and Hasso Tepper <hasso@netbsd.org>.
11049
11050 2009-09-17  Bruno Haible  <bruno@clisp.org>
11051
11052         * modules/COPYING: Update copyright years.
11053         * modules/README: Likeiwse.
11054         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11055         Reported by Ian Beckwith <ianb@erislabs.net>.
11056
11057 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11058
11059         * users.txt: Update references for gnuit package.
11060
11061 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11062
11063         * m4/getdelim.m4: Fix typo in copyright line.
11064
11065 2009-09-17  Bruno Haible  <bruno@clisp.org>
11066
11067         * lib/atoll.c: Use the standard header with GPL copyright.
11068         * lib/argz.in.h: Likewise.
11069         * lib/glob.c: Likewise.
11070         * lib/glob-libc.h: Likewise.
11071         * lib/random_r.c: Likewise.
11072         * lib/siglist.h: Likewise.
11073         * lib/strsignal.c: Likewise.
11074         Reported by Ian Beckwith <ianb@erislabs.net>.
11075
11076 2009-09-17  Eric Blake  <ebb9@byu.net>
11077
11078         rmdir: ensure correct dependency order
11079         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11080
11081 2009-09-17  Bruno Haible  <bruno@clisp.org>
11082
11083         Disable assertion that fails on NetBSD 5 / i386.
11084         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11085         Reported by Sam Steingold <sds@gnu.org>
11086         and Hasso Tepper <hasso@netbsd.org>.
11087
11088 2009-09-16  Eric Blake  <ebb9@byu.net>
11089
11090         unlinkdir: port to mingw
11091         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11092         on which no one can unlink a directory.
11093
11094         stdlib: sort witness names
11095         * modules/stdlib (Makefile.am): Sort replacements.
11096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11097         * lib/stdlib.in.h: Likewise.
11098
11099         parse-duration-tests: avoid link failure
11100         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11101         LIBINTL.
11102         Reported by Tom G. Christensen.
11103
11104         openat-tests: ensure unlinkat behaves like rmdir
11105         * tests/test-rmdir.c (main): Factor guts...
11106         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11107         * modules/rmdir-tests (Files): Ship new file.
11108         * modules/openat-tests: New test.
11109         * tests/test-unlinkat.c: Likewise.
11110
11111         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11112         * modules/rmdir-errno (Status, Notice): Now obsolete.
11113
11114         rmdir: work around cygwin 1.5.x and mingw bugs
11115         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11116         * lib/rmdir.c (rmdir): Work around it.
11117         * modules/rmdir (Status, Notice): No longer obsolete.
11118         (Files): Add dos.m4.
11119         (Depends-on): Add unistd.
11120         (configure.ac): Set witnesses.
11121         (License): Relax to LGPLv2+.
11122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11123         * modules/unistd (Makefile.am): Substitute witnesses.
11124         * lib/unistd.in.h (rmdir): Declare replacement.
11125         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11126         * modules/rmdir-tests: New tests.
11127         * tests/test-rmdir.c: Likewise.
11128
11129 2009-09-15  Eric Blake  <ebb9@byu.net>
11130
11131         fchdir: improve use of replacement functions
11132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11133         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11134         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11135         REPLACE_CLOSEDIR.
11136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11137         * modules/sys_stat (Makefile.am): Substitute correct witness.
11138         * modules/dirent (Makefile.am): Likewise.
11139         * modules/unistd (Makefile.am): Likewise.
11140         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11141         * lib/unistd.in.h (dup): Likewise.
11142         * lib/sys_stat.in.h (fstat): Likewise.
11143
11144         maint: ignore gnulib-tool temp files
11145         * .gitignore: Ignore files created during gnulib-tool --test.
11146
11147 2009-09-13  Jim Meyering  <meyering@redhat.com>
11148
11149         posixtm: don't reject a time that specify "60" as the number of seconds
11150         * lib/posixtm.c (posixtime): The code to reject invalid dates
11151         would also reject a time specified with the .60 suffix.
11152         But POSIX allows that, in order to accommodate leap seconds.
11153         So don't reject it.
11154         (main): Adjust tests accordingly.
11155         * modules/posixtm (Depends-on): Add stpcpy.
11156
11157 2009-09-11  Jim Meyering  <meyering@redhat.com>
11158
11159         announce-gen: include [$release_type] in emitted Subject:
11160         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11161         e.g., [stable] in the emitted Subject: line.
11162
11163 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11164
11165         Remove obsolete macros from several modules.
11166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11167         obsolete Autoconf macros with their modern counterparts.
11168         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11169         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11171         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11172         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11173         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11175         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11176         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11177         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11178         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11179         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11180         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11181         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11182         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11183         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11184         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11185         * m4/time_r.m4 (gl_TIME_R): Likewise.
11186         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11187         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11188         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11189
11190         Fix copyright header in build-aux scripts.
11191         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11192         recommendation.
11193         * build-aux/ncftpput-ftp: Likewise.
11194         * build-aux/update-copyright: Likewise.
11195
11196 2009-09-09  Eric Blake  <ebb9@byu.net>
11197
11198         test-link: allow Linux choice of errno
11199         * tests/test-link.c (main): Relax test for alternate error.
11200
11201         strndup: fix improper m4 caching
11202         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11203         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11204         (gl_PREREQ_STRNDUP): Delete.
11205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11206         * modules/string (Makefile.am): Substitute it.
11207         * lib/string.in.h (strndup): Modernize prototype.
11208
11209         getcwd: port to mingw
11210         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11211         different from the POSIX assumptions made throughout the getcwd
11212         module; fortunately, the mingw getcwd does not need replacement.
11213         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11214         * modules/getcwd-tests: New test.
11215         * tests/test-getcwd.c: Likewise.
11216
11217         link: fix platform bugs
11218         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11219         * lib/link.c (link): Work around them.  Fix related mingw bug.
11220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11221         * modules/unistd (Makefile.am): Substitute it.
11222         * lib/unistd.in.h (link): Declare replacement.
11223         * doc/posix-functions/link.texi (link): Document this.
11224         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11225
11226         test-link: consolidate into single C program, test more cases
11227         * tests/test-link.sh: Delete.
11228         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11229         at least Cygwin and Solaris.
11230         * modules/link-tests (Files): Remove unused file.
11231         (Depends-on): Add errno, sys_stat.
11232         (Makefile.am): Simplify.
11233
11234 2009-09-08  Bruno Haible  <bruno@clisp.org>
11235
11236         Work around towlower, towupper bug on mingw.
11237         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11238         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11239         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11240         * doc/posix-functions/towupper.texi: Likewise.
11241         Reported by Eric Blake.
11242
11243 2009-09-08  Jim Meyering  <meyering@redhat.com>
11244
11245         build: don't try to run autoheader if we don't use it
11246         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11247         is not used in configure.ac.
11248
11249 2009-09-08  Eric Blake  <ebb9@byu.net>
11250
11251         euidaccess: fix compilation error
11252         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11253
11254         rawmemchr: relax license
11255         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11256         okay.
11257         Reported by Jim Meyering.
11258
11259         mkfifoat: new module
11260         * modules/mkfifoat: New file.
11261         * lib/mkfifoat.c: Likewise.
11262         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11264         * modules/sys_stat (Makefile.am): Use them.
11265         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11266         * MODULES.html.sh (File system functions): Mention module.
11267         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11268         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11269         * modules/mkfifoat-tests: New test.
11270         * tests/test-mkfifoat.c: Likewise.
11271
11272         strchrnul: relax license
11273         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11274         okay.
11275         Reported by Jim Meyering.
11276
11277 2009-09-08  Eric Blake  <ebb9@byu.net>
11278
11279         fstatat: fix compilation on Solaris
11280         * lib/fstatat.c (includes): Add fcntl.h.
11281         Reported by Pádraig Brady.
11282
11283 2009-09-07  Eric Blake  <ebb9@byu.net>
11284
11285         rename: modernize replacement
11286         * modules/rename (Depends-on): Add stdio.
11287         (configure.ac): Declare witness.
11288         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11289         stdio take care of replacement.
11290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11291         * modules/stdio (Makefile.am): Substitute them.
11292         * lib/stdio.in.h (rename): Declare replacement.
11293         * lib/rename.c (includes): Allow cross-compilation to non-windows
11294         machines.
11295         * doc/posix-functions/rename.texi (rename): Improve
11296         documentation.
11297
11298         stdio: sort witness names
11299         * modules/stdio (Makefile.am): Sort replacements.
11300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11301         * lib/stdio.in.h: Likewise.
11302
11303         getcwd: minor cleanups
11304         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11305         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11306
11307         openat: provide more convenience names
11308         * modules/faccessat (configure.ac): Add C witness.
11309         * lib/unistd.in.h (readlinkat): Fix typo.
11310         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11311         convenience wrappers.
11312         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11313         wrappers in syntax checks.
11314
11315 2009-09-06  Eric Blake  <ebb9@byu.net>
11316
11317         doc: fix comments in recent patches
11318         * lib/faccessat.c: Mention correct function.
11319         * lib/fchmodat.c: Likewise.
11320         * lib/fchownat.c: Likewise.
11321         * lib/symlinkat.c: Likewise.
11322         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11323         constants.
11324
11325         faccessat, symlinkat: continue cleanup of previous patch
11326         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11327         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11328         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11330         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11331         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11332         set.
11333
11334 2009-09-06  Bruno Haible  <bruno@clisp.org>
11335
11336         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11337         (fstatat): Declare if GNULIB_FSTATAT is set.
11338         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11339         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11340         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11341         * modules/fcntl-h (Files): Remove m4/openat.m4.
11342         * modules/sys_stat (Files): Remove m4/openat.m4.
11343         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11344         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11345         * modules/unistd (Files): Remove m4/openat.m4.
11346         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11347         GNULIB_OPENAT.
11348         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11349         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11351         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11352         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11353         gl_OPENAT_DEFAULTS.
11354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11355         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11356         Don't require gl_OPENAT_DEFAULTS.
11357         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11358         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11359         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11360         (gl_OPENAT_DEFAULTS): Remove macro.
11361
11362 2009-09-06  Bruno Haible  <bruno@clisp.org>
11363
11364         * modules/openat (configure.ac): Remove unneeded witness.
11365
11366 2009-09-06  Bruno Haible  <bruno@clisp.org>
11367
11368         Set errno to ENOSYS when a function is entirely unsupported.
11369         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11370         EOPNOTSUPP.
11371         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11372         * modules/chown (Depends-on): Remove errno.
11373
11374 2009-09-06  Bruno Haible  <bruno@clisp.org>
11375
11376         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11377
11378 2009-09-06  Bruno Haible  <bruno@clisp.org>
11379
11380         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11381
11382 2009-09-06  Ben Pfaff  <blp@gnu.org>
11383             Bruno Haible  <bruno@clisp.org>
11384
11385         Work around a glibc bug in strtok_r.
11386         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11387         Undefine if UNDEFINE_STRTOK_R is set.
11388         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11390         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11391         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11392         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11393         UNDEFINE_STRTOK_R.
11394         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11395
11396 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11397
11398         exclude: minor fix
11399         * lib/exclude.c: Include wctype.h
11400
11401 2009-09-06  Akim Demaille  <demaille@gostai.com>
11402
11403         bootstrap: improve error message
11404         * build-aux/bootstrap (find_tool): Upon failure, report the list
11405         of candidates.
11406         Honor the initial value of the envvar.
11407
11408 2009-09-05  Eric Blake  <ebb9@byu.net>
11409
11410         symlinkat: new module
11411         * modules/symlinkat: New file.
11412         * lib/symlinkat.c: Likewise.
11413         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11415         * modules/unistd (Makefile.am): Use them.
11416         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11417         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11418         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11419         * MODULES.html.sh (File system functions): Mention module.
11420         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11421         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11422         * modules/symlinkat-tests: New test.
11423         * tests/test-symlinkat.c: Likewise.
11424
11425         test-openat-safer: add more checks
11426         * tests/test-openat-safer.c (main): Check more code paths.
11427
11428 2009-09-05  Jim Meyering  <meyering@redhat.com>
11429
11430         syntax-check: detect unnecessary inclusion of openat.h
11431         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11432
11433 2009-09-05  Bruno Haible  <bruno@clisp.org>
11434
11435         Support towlower, towupper.
11436         * doc/posix-functions/towlower.texi: Mention module wctype.
11437         * doc/posix-functions/towupper.texi: Likewise.
11438         * lib/wctype.in.h (towlower, towupper): New functions.
11439         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11440         (ASSERT): New macro.
11441         (e): New variable.
11442         (main): Test also towlower, towupper. Test WEOF argument.
11443         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11444
11445 2009-09-05  Bruno Haible  <bruno@clisp.org>
11446
11447         Fix conversion behaviour when the input is invalid.
11448         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11449         mark occurring in first pass of indirect conversion.
11450         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11451         input.
11452         Found by clang's static analyzer.
11453
11454 2009-09-05  Bruno Haible  <bruno@clisp.org>
11455
11456         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11457         where direct conversion is possible.
11458
11459 2009-09-04  Eric Blake  <ebb9@byu.net>
11460
11461         openat: fail with ENOENT on empty name
11462         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11463         buffer.
11464
11465         link-follow: fix logic bug in prior patch
11466         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11467         reversed sense of yes and no in prior patch.  Avoid confusing
11468         compilation failure with desired semantics.
11469
11470         link-follow: accomodate mingw and cross-compilation
11471         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11472         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11473         cross-compilation results to -1, to make linkat easier to
11474         implement when cross-compiling.  Trivially support mingw.
11475         * modules/link-follow (configure.ac): Call new name.
11476         * NEWS: Mention this.
11477
11478 2009-09-03  Eric Blake  <ebb9@byu.net>
11479
11480         faccessat: compile replacement
11481         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11482         needed.
11483
11484         fts: fix compilation error
11485         * lib/fts.c (includes): Re-add "openat.h", for
11486         openat_needs_fchdir.
11487
11488         faccessat: new module
11489         * modules/faccessat: New file.
11490         * lib/faccessat.c: Likewise.
11491         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11493         * modules/unistd (Makefile.am): Use it.
11494         * lib/unistd.in.h (faccessat): Declare it.
11495         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11496         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11497         * MODULES.html.sh (File system functions): Mention it.
11498         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11499         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11500
11501         euidaccess: prefer POSIX over non-standard implementation
11502         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11503         * lib/euidaccess.c (euidaccess): Use it if available.
11504
11505         openat: make template easier to use
11506         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11507         AT_FUNC_F2 to be undefined.
11508         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11509         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11510         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11511         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11512         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11513         Likewise.
11514         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11515         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11516         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11517         Likewise.
11518
11519         openat: declare in POSIX headers
11520         * NEWS: Mention this.
11521         * modules/openat (configure.ac): Declare witnesses.
11522         (Depends-on): Add fcntl-h, sys_stat, unistd.
11523         (Include): Mention correct headers.
11524         * modules/fcntl-h (Depends-on): Add link-warning.
11525         (Files): Add openat.m4.
11526         (Makefile.am): Substitute witnesses.
11527         * modules/sys_stat (Files, Makefile.am): Likewise.
11528         * modules/unistd (Files, Makefile.am): Likewise.
11529         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11530         (gl_OPENAT_DEFAULTS): New macro.
11531         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11533         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11534         (SYS_STAT_H): Remove unused variable.
11535         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11536         * lib/fcntl--.h (includes): Remove unneeded header.
11537         * lib/openat-safer.c (includes): Likewise.
11538         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11539         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11540         appropriate headers.
11541         (__OPENAT_PREFIX): Delete.
11542         * lib/fcntl.in.h (openat): Provide declaration.
11543         (AT_FDCWD): Fix Solaris bug.
11544         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11545         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11546         * lib/fchmodat.c (includes):  Adjust to find declaration.
11547         * lib/fchownat.c (includes): Likewise.
11548         * lib/mkdirat.c (includes): Likewise.
11549         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11550         still visible.
11551
11552 2009-09-02  Eric Blake  <ebb9@byu.net>
11553
11554         errno: use consistently
11555         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11556         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11557         * lib/canonicalize.c (ELOOP): Likewise.
11558         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11559         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11560         * lib/lchown.c (EOPNOTSUPP): Likewise.
11561         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11562         * lib/savewd.c (ESTALE): Likewise.
11563         * lib/settime.c (ENOSYS): Likewise.
11564         * lib/utimens.c (ENOSYS): Likewise.
11565         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11566         * lib/chdir-safer.c (ELOOP): Likewise.
11567         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11568         * modules/c-stack (Depends-on): Add errno.
11569         * modules/canonicalize (Depends-on): Likewise.
11570         * modules/chdir-safer (Depends-on): Likewise.
11571         * modules/fdopendir (Depends-on): Likewise.
11572         * modules/inet_ntop (Depends-on): Likewise.
11573         * modules/inet_pton (Depends-on): Likewise.
11574         * modules/lchown (Depends-on): Likewise.
11575         * modules/openat (Depends-on): Likewise.
11576         * modules/savewd (Depends-on): Likewise.
11577         * modules/settime (Depends-on): Likewise.
11578         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11579
11580         fts: avoid leaking fds
11581         * modules/fts (Depends-on): Add cloexec.
11582         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11583         flag.
11584
11585         fts: make directory fds more robust
11586         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11587         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11588
11589         backupfile, chdir-long, fts, savedir: make safer
11590         * lib/backupfile.c (includes): Use "dirent--.h", since
11591         numbered_backup can write to stderr during readdir.
11592         * lib/savedir.c (includes): Likewise.
11593         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11594         emulation can write to stderr on failure.
11595         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11596         * lib/getcwd.c: Document why opendir_safer is unused.
11597         * lib/glob.c: Likewise.
11598         * lib/scandir.c: Likewise.
11599         * lib/openat-proc.c: Likewise, for open_safer.
11600         * modules/backupfile (Depends-on): Add dirent-safer.
11601         * modules/savedir (Depends-on): Likewise.
11602         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11603         * modules/chdir-long (Depends-on): Add openat-safer.
11604
11605         openat-safer: new module
11606         * modules/openat-safer: New file.
11607         * lib/openat-safer.c: Likewise.
11608         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11609         * lib/fcntl-safer.h (openat_safer): Declare.
11610         * lib/fcntl--.h (openat): Override.
11611         * MODULES.html.sh (File descriptor based I/O): Mention it.
11612         * lib/openat.h: Add double-inclusion guards.
11613         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11614         "fcntl--.h", so we can implement openat.
11615         * modules/openat-safer-tests: New test.
11616         * tests/test-openat-safer.c: New file.
11617
11618         dirent-safer: new module
11619         * modules/dirent-safer: New file.
11620         * lib/dirent--.h: Likewise.
11621         * lib/dirent-safer.h: Likewise.
11622         * lib/opendir-safer.c: Likewise.
11623         * m4/dirent-safer.m4: Likewise.
11624         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11625         * modules/dirent-safer-tests: New test.
11626         * tests/test-dirent-safer.c: New file.
11627         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11628
11629         fdopendir: optimize on mingw
11630         * lib/unistd.in.h (_gl_directory_name): New prototype.
11631         * lib/fchdir.c (_gl_directory_name): Implement it.
11632         (fchdir): Use it to simplify implementation.
11633         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11634         fchdir, when available, to avoid calling [f]chdir().
11635
11636         fdopendir: split into its own module
11637         * lib/openat.c (fdopendir): Move...
11638         * lib/fdopendir.c: ...into new file.
11639         * modules/fdopendir: New module.
11640         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11641         * modules/openat (Depends-on): Add fdopendir.
11642         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11643         fdopendir here.
11644         * modules/savedir (Depends-on): Only need fdopendir, not full
11645         openat.
11646         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11647         * lib/openat.h (fdopendir): Drop prototype.
11648         * lib/dirent.in.h (fdopendir): Provide prototype.
11649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11650         * modules/dirent (Makefile.am): Substitute them.
11651         * MODULES.html.sh (File system functions): Mention it.
11652         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11653         * modules/fdopendir-tests: New file.
11654         * tests/test-fdopendir.c: Likewise.
11655
11656         fchdir: use more consistent macro convention
11657         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11658         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11659         REPLACE_FCHDIR, rather than relying on config.h macros.
11660         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11661         inside a single make-time REPLACE_FCHDIR block, rather than using
11662         the config.h FCHDIR_REPLACEMENT.
11663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11664         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11665         Manage fstat replacement.
11666         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11667         REPLACE_FCHDIR.
11668         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11669         (Makefile.am): Substitute REPLACE_FCHDIR.
11670         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11671         FCHDIR_REPLACEMENT.
11672         * lib/dup-safer.c (dup_safer): Likewise.
11673         * lib/dup2.c (rpl_dup2): Likewise.
11674         * lib/dup3.c (rpl_dup3): Likewise.
11675         * lib/open.c (rpl_open): Likewise.
11676
11677         fchdir: simplify error handling, and support dup3
11678         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11679         stdbool, malloc-posix, realloc-posix.
11680         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11681         (ensure_dirs_slot): Return false on allocation failure.
11682         (rpl_dup2): Delete.
11683         (_gl_register_dup): New function.
11684         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11685         (_gl_register_fd): Close fd on allocation failure.
11686         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11687         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11688         prototype.
11689         (rpl_dup2_fchdir): Delete prototype.
11690         * lib/open.c (open): Update caller.
11691         * lib/dup2.c (dup2): Track fchdir metadata.
11692         * lib/dup3.c (dup3): Likewise.
11693         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11695
11696 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11697
11698         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11699         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11700         don't pass arguments to AC_OUTPUT.
11701
11702 2009-09-02  Bruno Haible  <bruno@clisp.org>
11703
11704         * modules/mkdtemp (License): Relicense under LGPLv2+.
11705         Reported by Paolo Bonzini.
11706
11707 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11708
11709         Replace uses of obsolete autoconf macros in Jim's modules.
11710         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11711         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11712         can evoke a warning from autoconf when run with -Wobsolete
11713         enabled.  They were declared obsolete for good reasons (see
11714         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11715         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11716         should not continue using the deprecated macros.
11717         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11718         obsolete Autoconf macros with modern counterparts.
11719         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11720         * m4/dos.m4 (gl_AC_DOS): Likewise.
11721         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11722         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11723         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11724         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11725         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11726         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11727         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11728         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11729         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11730         Likewise.
11731         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11732         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11733         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11734         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11735         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11736         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11737
11738 2009-09-01  Eric Blake  <ebb9@byu.net>
11739
11740         fchdir: fix off-by-one bug in previous patch
11741         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11742         (_gl_unregister_fd): Delete useless if.
11743
11744 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11745
11746         maint.mk: sort the list of syntax-check rules
11747         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11748         easier to get a sense of progress when the rules are run sequentially
11749         and take a long time.
11750
11751 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11752
11753         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11754         * modules/netinet_in: Likewise.
11755         * modules/sys_file: Likewise.
11756         * modules/sys_ioctl: Likewise.
11757         * modules/sys_select: Likewise.
11758         * modules/sys_socket: Likewise.
11759         * modules/sys_stat: Likewise.
11760         * modules/sys_time: Likewise.
11761         * modules/sys_times: Likewise.
11762         * modules/sys_utsname: Likewise.
11763         * modules/sys_wait: Likewise.
11764
11765 2009-09-01  Jim Meyering  <meyering@redhat.com>
11766
11767         fts: help ensure that return values are not ignored
11768         * lib/fts_.h (__GNUC_PREREQ): Define.
11769         (__attribute_warn_unused_result__): Define.
11770         (fts_children, fts_close, fts_open, fts_read): Declare with
11771         __attribute_warn_unused_result__.
11772
11773         fts: fts_close now fails also when closing a dir file descriptor fails
11774         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11775         and propagate to caller, along with errno.
11776
11777         announce-gen: correct formatting in --help output
11778         * build-aux/announce-gen (usage): Move the one-line description in
11779         --help output "up", to where it belongs, just after Usage:.
11780
11781 2009-08-31  Eric Blake  <ebb9@byu.net>
11782
11783         fchdir: port to mingw
11784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11785         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11786         opened, then use a substitute.
11787         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11788         replacement.
11789         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11790         (_gl_register_fd): No need to check stat if open already filters
11791         all directories.
11792         (fchdir): Fix error condition to match POSIX.
11793         * modules/fchdir (Depends-on): Add sys_stat.
11794         * doc/posix-functions/open.texi (open): Document the limitation.
11795         * modules/fchdir-tests: New file.
11796         * tests/test-fchdir.c: Likewise.
11797
11798         canonicalize: allow cross-testing from cygwin to mingw
11799         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11800         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11801         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11802         Likewise.
11803         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11804         target does not support symlinks.
11805         * tests/test-canonicalize-lgpl.sh: Likewise.
11806
11807         chown: avoid compilation warning on mingw
11808         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11809         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11810         mingw.
11811         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11812         * modules/chown (Depends-on): Add errno.
11813
11814 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11815
11816         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11817         command.
11818
11819 2009-08-31  Jim Meyering  <meyering@redhat.com>
11820
11821         canonicalize: remove useless initialization
11822         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11823         initialization of local, "end".
11824
11825 2009-08-30  Bruno Haible  <bruno@clisp.org>
11826
11827         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11828         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11829         ENOSYS.
11830
11831 2009-08-30  Bruno Haible  <bruno@clisp.org>
11832
11833         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11834         /usr/xpg4/bin/tr when it exists.
11835         * tests/test-pipe-filter-gi1.sh: Likewise.
11836
11837 2009-08-30  Bruno Haible  <bruno@clisp.org>
11838
11839         Work around deficient /usr/bin/id program on Solaris.
11840         * tests/test-file-has-acl.sh (ID): New variable.
11841         * tests/test-set-mode-acl.sh (ID): Likewise.
11842         * tests/test-copy-acl.sh (ID): Likewise.
11843         * tests/test-copy-file.sh (ID): Likewise.
11844
11845 2009-08-30  Bruno Haible  <bruno@clisp.org>
11846
11847         New module 'xstriconveh'.
11848         * lib/xstriconveh.h: New file.
11849         * lib/xstriconveh.c: New file.
11850         * modules/xstriconveh: New file.
11851
11852 2009-08-30  Bruno Haible  <bruno@clisp.org>
11853
11854         Make it easier to use mem_cd_iconveh.
11855         * lib/striconveh.h (iconveh_t): New type.
11856         (iconveh_open, iconveh_close): New declarations.
11857         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11858         with a single 'const iconveh_t *' argument.
11859         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11860         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11861         with a single 'const iconveh_t *' argument.
11862         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11863         * tests/test-striconveh.c (main): Update.
11864         * NEWS: Mention the change.
11865
11866 2009-08-30  Bruno Haible  <bruno@clisp.org>
11867
11868         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11869         problem.
11870
11871 2009-08-30  Bruno Haible  <bruno@clisp.org>
11872
11873         Work around iconv_open problem on Solaris.
11874         * lib/iconv_open-solaris.gperf: New file.
11875         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11876         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11877         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11878         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11879         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11880         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11881
11882 2009-08-29  Jim Meyering  <meyering@redhat.com>
11883
11884         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11885         * top/maint.mk (cvs-check): Remove target; it was just an alias
11886         to the better-named vc-diff-check.
11887         (maintainer-distcheck): Remove rule.  It was used only from
11888         the (alpha/beta/major) target, and all of its commands but one
11889         were coreutils-specific.
11890         (vc-dist): Remove rule.
11891         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11892         Run vc-diff-check, not vc-dist.
11893         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11894
11895 2009-08-27  Bruno Haible  <bruno@clisp.org>
11896
11897         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11898         of 0.
11899
11900 2009-08-27  Bruno Haible  <bruno@clisp.org>
11901
11902         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11903         compilers.
11904         * doc/func.texi: Document the SunPRO C bug.
11905
11906 2009-08-27  Bruno Haible  <bruno@clisp.org>
11907
11908         Fix link error on Solaris.
11909         * tests/test-parse-duration.c (xstrdup): Remove function.
11910
11911 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11912
11913         ignore-value: handle pointer types, too
11914         * lib/ignore-value.h (__attribute__): Remove definition.
11915         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11916         of a more concise and more-often effective "(void) i" statement.
11917         (ignore_ptr): New function to suppress warnings from functions that
11918         return pointers, and to make it explicit that one function doesn't
11919         handle all cases.
11920
11921 2009-08-25  Bruno Haible  <bruno@clisp.org>
11922
11923         dup2: work around a Linux bug.
11924         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11925         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11926         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11927         Reported by Simon Josefsson.
11928
11929 2009-08-25  Jim Meyering  <meyering@redhat.com>
11930
11931         libguestfs uses gnulib
11932         * users.txt: Add libguestfs.
11933
11934 2009-08-24  Eric Blake  <ebb9@byu.net>
11935
11936         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11937         * lib/pipe2.c (includes): Add binary-io.h.
11938         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11939
11940 2009-08-24  Bruno Haible  <bruno@clisp.org>
11941
11942         Tolerate declared but missing accept4 syscall.
11943         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11944         available.
11945         * lib/sys_socket.in.h (accept4): If the function is already present,
11946         override it.
11947         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11948         * modules/accept4 (Makefile.am): Compile accept4.c always.
11949         Reported by Paolo Bonzini and Eric Blake.
11950
11951 2009-08-23  Bruno Haible  <bruno@clisp.org>
11952
11953         New module 'accept4'.
11954         * lib/sys_socket.in.h (accept4): New declaration.
11955         * lib/accept4.c: New file.
11956         * m4/accept4.m4: New file.
11957         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11958         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11959         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11960         HAVE_ACCEPT4.
11961         * modules/accept4: New file.
11962         * doc/glibc-functions/accept4.texi: Mention the new module.
11963
11964 2009-08-24  Jim Meyering  <meyering@redhat.com>
11965
11966         progname: also set global program_invocation_name, when possible
11967         Before this change, a libtool-enabled program that calls glibc's
11968         error function would report the program name as
11969         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11970         * modules/progname (configure.ac): Check for a declaration of
11971         program_invocation_name.
11972         * lib/progname.c:  Include <errno.h>.
11973         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11974         Set program_invocation_name.
11975
11976 2009-08-23  Bruno Haible  <bruno@clisp.org>
11977
11978         * lib/dup3.c: Include <string.h>.
11979
11980 2009-08-23  Bruno Haible  <bruno@clisp.org>
11981
11982         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11983         * lib/pipe2.c (pipe2): Likewise.
11984         Suggested by Eric Blake.
11985
11986 2009-08-23  Bruno Haible  <bruno@clisp.org>
11987
11988         Tolerate declared but missing dup3 syscall.
11989         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11990         * lib/unistd.in.h (dup3): If the function is already present,
11991         override it.
11992         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11993         * modules/dup3 (Makefile.am): Compile dup3.c always.
11994         Reported by Paolo Bonzini.
11995
11996 2009-08-23  Bruno Haible  <bruno@clisp.org>
11997
11998         Tolerate declared but missing pipe2 syscall.
11999         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12000         available.
12001         * lib/unistd.in.h (pipe2): If the function is already present,
12002         override it.
12003         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12004         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12005         Reported by Paolo Bonzini.
12006
12007 2009-08-23  Bruno Haible  <bruno@clisp.org>
12008
12009         * lib/pipe2.c (pipe2): Move #ifs inside function.
12010
12011 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12012
12013         quotearg: document limitations of quote_these_too
12014         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12015         those limitations are created.
12016         * lib/quotearg.h (set_char_quoting): Document that digits and
12017         letters that are special after backslash are not permitted.
12018         (quotearg_char): Cross-reference set_char_quoting documentation.
12019
12020 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12021
12022         quotearg: implement custom_quoting_style
12023         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12024         right_quote fields.
12025         (set_custom_quoting): New public function.
12026         (quotearg_buffer_restyled): Add left_quote and right_quote
12027         arguments, handle them very much like locale quoting, and update
12028         all uses.
12029         (quotearg_n_custom): New public function.
12030         (quotearg_n_custom_mem): New public function.
12031         (quotearg_custom): New public function.
12032         (quotearg_custom_mem): New public function.
12033         * lib/quotearg.h: Prototype and document new public functions.
12034         (enum quoting_style): For escape_quoting_style and
12035         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12036         ignored even though they're otherwise like c_quoting_style.
12037         Add custom_quoting_style member and document with comparison to
12038         clocale_quoting_style.
12039         * tests/test-quotearg.c (custom_quotes): New array.
12040         (custom_results): New array.
12041         (main): Extend to test custom quoting.
12042
12043 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12044
12045         quotearg: fix right quote escaping when it's in quote_these_too
12046         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12047         quote, be sure to prepend only one backslash.
12048         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12049         (main): Test it.
12050
12051 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12052
12053         quotearg-tests: test escaping of embedded locale quotes
12054         * tests/test-quotearg.c (struct result_strings): Add member for
12055         new input.
12056         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12057         (inputs): Add new input.
12058         (results_g): Add expected results.
12059         (flag_results): Likewise.
12060         (locale_results): Likewise.
12061         (compare_strings): Check those.
12062
12063 2009-08-23  Bruno Haible  <bruno@clisp.org>
12064
12065         Tests for module 'dup3'.
12066         * modules/dup3-tests: New file.
12067         * tests/test-dup3.c: New file.
12068
12069         New module 'dup3'.
12070         * lib/unistd.in.h (dup3): New declaration.
12071         * lib/dup3.c: New file.
12072         * m4/dup3.m4: New file.
12073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12074         HAVE_DUP3.
12075         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12076         * modules/dup3: New file.
12077         * doc/glibc-functions/dup3.texi: Mention the new module.
12078
12079 2009-08-23  Bruno Haible  <bruno@clisp.org>
12080
12081         Tweak the dup2 test.
12082         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12083         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12084         the test file is still empty. Fix argument order of lseek.
12085
12086 2009-08-23  Bruno Haible  <bruno@clisp.org>
12087
12088         Avoid test link errors when the modules getopt-gnu, gettext are used.
12089         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12091
12092 2009-08-23  Bruno Haible  <bruno@clisp.org>
12093
12094         Fix getdtablesize() on mingw.
12095         * lib/getdtablesize.c (getdtablesize): Implement differently.
12096         * lib/unistd.in.h (getdtablesize): Improve comment.
12097
12098 2009-08-23  Bruno Haible  <bruno@clisp.org>
12099
12100         New module 'mkostemp'.
12101         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12102         * lib/stdlib.in.h (mksotemp): New declaration.
12103         * lib/mkostemp.c: New file, from glibc with modifications.
12104         * lib/tempname.h (GT_FILE): Remove outdated comment.
12105         (gen_tempname): Add flags argument.
12106         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12107         (__GT_FILE): Map to 1.
12108         (small_open, large_open): Remove macros.
12109         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12110         * lib/mkstemp.c (mkstemp): Update.
12111         * lib/mkdtemp.c (mkdtemp): Likewise.
12112         * m4/mkostemp.m4: New file.
12113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12114         HAVE_MKOSTEMP.
12115         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12116         HAVE_MKOSTEMP.
12117         * modules/mkostemp: New file, based on modules/mkstemp.
12118         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12119         * NEWS: Mention the change.
12120
12121 2009-08-23  Bruno Haible  <bruno@clisp.org>
12122
12123         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12124         Reported by Eric Blake.
12125
12126 2009-08-23  Bruno Haible  <bruno@clisp.org>
12127
12128         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12129         Reported by Eric Blake.
12130
12131 2009-08-23  Bruno Haible  <bruno@clisp.org>
12132
12133         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12134         * modules/pipe2 (Depends-on): Likewise.
12135
12136 2009-08-23  Eric Blake  <ebb9@byu.net>
12137
12138         fcntl-h: add O_TTY_INIT support
12139         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12140         * tests/test-fcntl-h.c (o): Test it.
12141         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12142
12143         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12144         * modules/fcntl: Move <fcntl.h> header replacement...
12145         * modules/fcntl-h: ...to new name, so as not to collide with
12146         like-named function.
12147         * tests/test-fcntl.c: Rename...
12148         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12149         * modules/fcntl-tests: Rename...
12150         * modules/fcntl-h-tests: ...to this.  Update test file name.
12151         * modules/chdir-long (Depends-on): Update clients.
12152         * modules/chdir-safer (Depends-on): Likewise.
12153         * modules/fcntl-safer (Depends-on): Likewise.
12154         * modules/fts (Depends-on): Likewise.
12155         * modules/mkancesdirs (Depends-on): Likewise.
12156         * modules/mkdir-p (Depends-on): Likewise.
12157         * modules/open (Depends-on): Likewise.
12158         * modules/savewd (Depends-on): Likewise.
12159         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12160         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12161
12162 2009-08-22  Bruno Haible  <bruno@clisp.org>
12163
12164         * modules/binary-io (License): Relicense under LGPL.
12165         * modules/pipe2 (License): Likewise.
12166
12167 2009-08-22  Bruno Haible  <bruno@clisp.org>
12168
12169         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12170         return value.
12171         * lib/pipe-filter-gi.c (filter_init): Likewise.
12172         Reported by Eric Blake.
12173
12174 2009-08-22  Bruno Haible  <bruno@clisp.org>
12175
12176         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12177         * modules/pipe (Depends-on): Add pipe2.
12178
12179 2009-08-22  Bruno Haible  <bruno@clisp.org>
12180
12181         Tests for module 'pipe2'.
12182         * modules/pipe2-tests: New file.
12183         * tests/test-pipe2.c: New file.
12184
12185         New module 'pipe2'.
12186         * lib/unistd.in.h (pipe2): New declaration.
12187         * lib/pipe2.c: New file.
12188         * m4/pipe2.m4: New file.
12189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12190         HAVE_PIPE2.
12191         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12192         * modules/pipe2: New file.
12193         * doc/glibc-functions/pipe2.texi: Mention the new module.
12194
12195 2009-08-22  Bruno Haible  <bruno@clisp.org>
12196
12197         Reference some new glibc functions.
12198         * doc/glibc-functions/accept4.texi: New file.
12199         * doc/glibc-functions/dup3.texi: New file.
12200         * doc/glibc-functions/mkostemp.texi: New file.
12201         * doc/glibc-functions/pipe2.texi: New file.
12202         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12203         (Glibc sys/socket.h): Refer to accept4.
12204         (Glibc unistd.h): Refer to dup3, pipe2.
12205         Reported by Eric Blake.
12206
12207 2009-08-22  Jim Meyering  <meyering@redhat.com>
12208             Bruno Haible  <bruno@clisp.org>
12209
12210         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12211         This makes it so packages using automake-1.11's silent-rules option
12212         can print e.g., a single "GEN    configmake.h" line, rather than
12213         the 30+ statements that perform the job.  If you want to see the
12214         actual commands, you can still run "make V=1".
12215         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12216         so that make output is abbreviated when those variables are defined
12217         appropriately.
12218         * modules/argz: Likewise.
12219         * modules/arpa_inet: Likewise.
12220         * modules/byteswap: Likewise.
12221         * modules/configmake: Likewise.
12222         * modules/dirent: Likewise.
12223         * modules/errno: Likewise.
12224         * modules/fcntl: Likewise.
12225         * modules/float: Likewise.
12226         * modules/fnmatch: Likewise.
12227         * modules/getopt-posix: Likewise.
12228         * modules/glob: Likewise.
12229         * modules/iconv_open: Likewise.
12230         * modules/inttypes: Likewise.
12231         * modules/localcharset: Likewise.
12232         * modules/locale: Likewise.
12233         * modules/math: Likewise.
12234         * modules/netdb: Likewise.
12235         * modules/netinet_in: Likewise.
12236         * modules/poll: Likewise.
12237         * modules/posix_spawnp-tests: Likewise.
12238         * modules/sched: Likewise.
12239         * modules/search: Likewise.
12240         * modules/selinux-h: Likewise.
12241         * modules/signal: Likewise.
12242         * modules/spawn: Likewise.
12243         * modules/stdarg: Likewise.
12244         * modules/stdbool: Likewise.
12245         * modules/stddef: Likewise.
12246         * modules/stdint: Likewise.
12247         * modules/stdio: Likewise.
12248         * modules/stdlib: Likewise.
12249         * modules/string: Likewise.
12250         * modules/strings: Likewise.
12251         * modules/sys_file: Likewise.
12252         * modules/sys_ioctl: Likewise.
12253         * modules/sys_select: Likewise.
12254         * modules/sys_socket: Likewise.
12255         * modules/sys_stat: Likewise.
12256         * modules/sys_time: Likewise.
12257         * modules/sys_times: Likewise.
12258         * modules/sys_utsname: Likewise.
12259         * modules/sys_wait: Likewise.
12260         * modules/sysexits: Likewise.
12261         * modules/time: Likewise.
12262         * modules/unistd: Likewise.
12263         * modules/wchar: Likewise.
12264         * modules/wctype: Likewise.
12265
12266 2009-08-22  Jim Meyering  <meyering@redhat.com>
12267
12268         announce-gen: detect write failure
12269         * build-aux/announce-gen: Add Coda at end.
12270         Remove equivalent-but-more-verbose block at top.
12271
12272 2009-08-19  Akim Demaille  <demaille@gostai.com>
12273
12274         bootstrap: --help to stdout.
12275         * bootstrap (usage): Don't send --help to stderr.
12276         Use a here doc instead of a long string.
12277
12278 2009-08-21  Eric Blake  <ebb9@byu.net>
12279
12280         test-popen-safer: split from test-popen
12281         * tests/test-popen.c (main): Move...
12282         * tests/test-popen.h: ...into new file.
12283         * tests/test-popen-safer2.c: New file.
12284         * modules/popen-tests (Files): Add test-popen.h.
12285         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12286         Suggested by Bruno Haible.
12287
12288         test-fcntl-safer: split from test-open
12289         * tests/test-open.c (main): Move...
12290         * tests/test-open.h: ...into new file.
12291         * tests/test-fcntl-safer.c: New file.
12292         * modules/open-tests (Files): Add test-open.h.
12293         * modules/fcntl-safer-tests: New file.
12294         Suggested by Bruno Haible.
12295
12296         test-fopen-safer: split from test-fopen
12297         * tests/test-fopen.c (main): Move...
12298         * tests/test-fopen.h: ...into new file.
12299         * tests/test-fopen-safer.c: New file.
12300         * modules/fopen-tests (Files): Add test-fopen.h.
12301         * modules/fopen-safer-tests: New file.
12302         Suggested by Bruno Haible.
12303
12304 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12305
12306         popen-safer: test O_CLOEXEC at run-time.
12307         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12308
12309 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12310
12311         fcntl: move more flags to the header
12312         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12313         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12314         * lib/fcntl.in.h: Do both things here.
12315
12316 2009-08-21  Jim Meyering  <meyering@redhat.com>
12317
12318         consistently remove $@-t before redirecting to it
12319         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12320         * modules/alloca-opt: Likewise.
12321         * modules/byteswap: Likewise.
12322         * modules/fnmatch: Likewise.
12323         * modules/getopt-posix: Likewise.
12324         * modules/glob: Likewise.
12325         * modules/poll: Likewise.
12326         * modules/posix_spawnp-tests: Likewise.
12327         * modules/sys_socket: Likewise.
12328         * modules/sysexits: Likewise.
12329
12330 2009-08-21  Eric Blake  <ebb9@byu.net>
12331
12332         popen: simplify access to original popen
12333         * lib/popen.c (rpl_popen): No need to worry about popen being a
12334         macro.
12335         Reported by Bruno Haible.
12336
12337 2009-08-20  Eric Blake  <ebb9@byu.net>
12338
12339         build: avoid some compiler warnings
12340         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12341         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12342         type.
12343         (new_exclude_segment, excluded_file_pattern_p)
12344         (excluded_file_name_p): Reduce scope.
12345         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12346         old-style declaration.
12347
12348 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12349
12350         * tests/test-exclude1.sh: Handle Windows EOL.
12351         * tests/test-exclude2.sh: Likewise.
12352         * tests/test-exclude3.sh: Likewise.
12353         * tests/test-exclude4.sh: Likewise.
12354         * tests/test-exclude5.sh: Likewise.
12355         * tests/test-exclude6.sh: Likewise.
12356         * tests/test-exclude7.sh: Likewise.
12357
12358 2009-08-19  Akim Demaille  <demaille@gostai.com>
12359
12360         bootstrap: find sha1sum when named gsha1sum.
12361         * bootstrap (find_tool): New.
12362         ($SHA1SUM): New.
12363         Use it.
12364
12365 2009-08-20  Jim Meyering  <meyering@redhat.com>
12366
12367         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12368         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12369         expression that converts "." in a file name to "\." in the resulting
12370         regexp.  Start with a dummy statement, so that prior shell variable
12371         definitions are expanded portably.  Reported by Simon Josefsson.
12372
12373 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12374
12375         Fix polling for writeability of a screen buffer.
12376         * lib/poll.c: Distinguish input and screen buffers for the
12377         Win32 implementation.
12378         * lib/select.c: Likewise.
12379
12380 2009-08-19  Eric Blake  <ebb9@byu.net>
12381
12382         popen-safer: prevent popen from clobbering std descriptors
12383         * modules/popen-safer: New file.
12384         * lib/popen-safer.c: Likewise.
12385         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12386         * lib/stdio--.h (popen): Provide override.
12387         * lib/stdio-safer.h (popen_safer): Provide declaration.
12388         * tests/test-popen.c (includes): Partially test this.
12389         * modules/popen-safer-tests: New file, for more tests.
12390         * tests/test-popen-safer.c: Likewise.
12391         * MODULES.html.sh (file stream based Input/Output): Mention it.
12392
12393         tests: test some of the *-safer modules
12394         * modules/fopen-safer (Depends-on): Add fopen.
12395         * modules/fcntl-safer (Depends-on): Add fcntl.
12396         * modules/stdlib-safer (Depends-on): Add stdlib.
12397         (configure.ac): Set indicator.
12398         * modules/unistd-safer (configure.ac): Likewise.
12399         * modules/tmpfile-safer (configure.ac): Likewise.
12400         (Depends-on): Add tmpfile.
12401         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12402         active.
12403         * tests/test-fopen.c (includes): Test safer versions when they are
12404         in use.
12405         * tests/test-open.c (includes): Likewise.
12406
12407         popen: fix cygwin 1.5 bug when stdin closed
12408         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12409         * modules/popen: New file.
12410         * modules/popen-tests: Likewise.
12411         * tests/test-popen.c: Likewise.
12412         * m4/popen.m4: Likewise.
12413         * lib/popen.c: Likewise.
12414         * lib/stdio.in.h (popen): New declaration.
12415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12416         * modules/stdio (Makefile.am): Likewise.
12417         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12418
12419 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12420
12421         maint.mk: give full control over update-copyright exclusions
12422         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12423         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12424         (update-copyright): Don't force inclusion of top-level
12425         ChangeLog.  Don't force exclusion of all COPYING files, but make
12426         them the default exclusion instead.
12427
12428 2009-08-16  Bruno Haible  <bruno@clisp.org>
12429
12430         Fix test failures on Solaris 10.
12431         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12432         tests when Solaris iconv() is used.
12433         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12434         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12435         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12436         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12437         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12438
12439 2009-08-16  Bruno Haible  <bruno@clisp.org>
12440
12441         Fix test failures on Solaris 10.
12442         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12443         'tr' program and pass it as first argument.
12444         * tests/test-pipe-filter-gi1.sh: Likewise.
12445         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12446         program as first argument.
12447         * tests/test-pipe-filter-gi1.c (main): Likewise.
12448
12449 2009-08-16  Eric Blake  <ebb9@byu.net>
12450
12451         fpurge: fix previous commits
12452         * modules/fpurge (Makefile.am): Make replacement conditional,
12453         partially reverting 2007-04-29 change; missed in previous
12454         attempt.
12455         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12456         is missing.
12457
12458 2009-08-16  Bruno Haible  <bruno@clisp.org>
12459
12460         Clarify fpurge's effect on the file position.
12461         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12462         * tests/test-fpurge.c (main): Make a second pass for checking the file
12463         position.
12464
12465 2009-08-16  Bruno Haible  <bruno@clisp.org>
12466
12467         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12468         declaration of fpurge is missing.
12469         * tests/test-fpurge.c (main): Check that the file has not more contents
12470         than expected. Close the file before removing it.
12471
12472 2009-08-15  Eric Blake  <ebb9@byu.net>
12473
12474         fpurge: don't wrap working cygwin implementation
12475         * lib/fpurge.c (fpurge): Fix comment typo.
12476         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12477         1.7 to avoid replacement.
12478         * tests/test-fpurge.c (main): Enhance test.
12479
12480 2009-08-15  Eric Blake  <ebb9@byu.net>
12481         and Jim Meyering  <meyering@redhat.com>
12482
12483         test-update-copyright: skip if perl is insufficient
12484         * tests/test-update-copyright.sh: Failure to run maintainer tool
12485         should not cause testsuite failure on cygwin 1.5.
12486
12487 2009-08-14  Eric Blake  <ebb9@byu.net>
12488
12489         doc: mention more functions added in cygwin 1.7.0
12490         * doc/posix-headers/limits.texi (limits.h): Update for recent
12491         cygwin additions.
12492         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12493         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12494         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12495         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12496         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12497
12498 2009-08-14  Eric Blake  <ebb9@byu.net>
12499
12500         maint.mk: simplify update-copyright rule
12501         * top/maint.mk (update-copyright-local): Delete, and document how
12502         to do it in cfg.mk instead.
12503         (update-copyright-exclude-regexp): Delete, and document how to do
12504         it in .x-update-copyright instead.
12505         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12506         exclude ChangeLog.
12507
12508 2009-08-14  Bruno Haible  <bruno@clisp.org>
12509
12510         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12511
12512 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12513
12514         maint.mk: support update-copyright-env
12515         * top/maint.mk (update-copyright-env): Define place-holder.
12516         (update-copyright): Expand $(update-copyright-env) before
12517         invoking update-copyright.
12518
12519 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12520
12521         update-copyright: implement forced reformatting
12522         * build-aux/update-copyright: Implement and document
12523         UPDATE_COPYRIGHT_FORCE.
12524         * tests/test-update-copyright.sh: Test it.
12525
12526 2009-08-14  Eric Blake  <ebb9@byu.net>
12527         and Bruno Haible  <bruno@clisp.org>
12528
12529         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12530         * tests/test-locale.c: Revert previous patch related to NULL.
12531         * tests/test-stdio.c: Likewise.
12532         * tests/test-stdlib.c: Likewise.
12533         * tests/test-string.c: Likewise.
12534         * tests/test-unistd.c: Likewise.
12535         * modules/time-tests (Depends-on): Add verify.
12536         * modules/wchar-tests (Depends-on): Likewise.
12537         * tests/test-time.c: Test for NULL compliance.
12538         * tests/test-wchar.c: Likewise.
12539         * modules/locale (Depends-on): Add stddef.
12540         * modules/stdio (Depends-on): Likewise.
12541         * modules/stdlib (Depends-on): Likewise.
12542         * modules/string (Depends-on): Likewise.
12543         * modules/time (Depends-on): Likewise.
12544         * modules/unistd (Depends-on): Likewise.
12545         * modules/wchar (Depends-on): Likewise.
12546         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12547         * lib/stdlib.in.h (includes): Likewise.
12548         * lib/string.in.h (includes): Likewise.
12549         * lib/time.in.h (includes): Likewise.
12550         * lib/unistd.in.h (includes): Likewise.
12551         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12552         replaced.
12553         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12554         * m4/stddef_h.m4: New file.
12555         * modules/stddef: Likewise.
12556         * lib/stddef.in.h: Likewise.
12557         * modules/stddef-tests: Likewise.
12558         * tests/test-stddef.c: Likewise.
12559         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12560         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12561         * doc/posix-headers/locale.texi (locale.h): Likewise.
12562         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12563         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12564         * doc/posix-headers/string.texi (string.h): Likewise.
12565         * doc/posix-headers/time.texi (time.h): Likewise.
12566         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12567         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12568
12569 2009-08-14  Eric Blake  <ebb9@byu.net>
12570
12571         doc: improve git diff of texinfo files
12572         * .gitattributes: Add rule for *.texi files, with hint on how to
12573         use it.
12574         Copied from m4, and based on a report by Bruno Haible.
12575
12576 2009-08-14  Bruno Haible  <bruno@clisp.org>
12577
12578         Disable multithread support by default on Cygwin 1.5.x for real.
12579         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12580
12581 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12582
12583         update-copyright: much ado about intervals
12584         * build-aux/update-copyright: Implement and document
12585         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12586         of copyright year intervals.
12587         Also, document UPDATE_COPYRIGHT_YEAR.
12588         * tests/test-update-copyright.sh: Test it.
12589
12590         update-copyright: convert 2-digit to 4-digit years
12591         * build-aux/update-copyright: Implement and document.
12592         * tests/test-update-copyright.sh: Update.
12593
12594 2009-08-14  Jim Meyering  <meyering@redhat.com>
12595
12596         test-exclude: avoid coreutils "make check" failure
12597         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12598         just as in test-argmatch.c.
12599
12600 2009-08-13  Eric Blake  <ebb9@byu.net>
12601
12602         test-dup2: fix bad assumption
12603         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12604         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12605
12606         test-version-etc: fix CRLF portability issue
12607         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12608         recognize \r.
12609         * tests/test-argp-version-etc-1.sh: Likewise.
12610
12611         getopt: update client modules
12612         * modules/argp (Depends-on): Use getopt-gnu.
12613         * modules/git-merge-changelog (Depends-on): Likewise.
12614         * modules/long-options (Depends-on): Likewise.
12615         * modules/xstrtol (Depends-on): Likewise.
12616
12617 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12618
12619         * tests/test-version-etc.sh: Don't fail on different
12620         project/version.  Don't fail on CRLF differences.  Rewrite to use
12621         multiple -e instead of multiple sed forks, suggested by Eric Blake
12622         <ebb9@byu.net>.
12623         * tests/test-argp-version-etc-1.sh: Likewise.
12624
12625 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12626
12627         * tests/test-version-etc.sh: Don't fail on different
12628         project/version.
12629
12630 2009-08-12  Bruno Haible  <bruno@clisp.org>
12631
12632         Tests for modules 'getopt-posix', 'getopt-gnu'.
12633         * modules/getopt-posix-tests: New file.
12634         * tests/test-getopt.c: New file.
12635         * tests/test-getopt.h: New file.
12636         * tests/test-getopt_long.h: New file.
12637
12638         New modules 'getopt-posix', 'getopt-gnu'.
12639         * modules/getopt-gnu: New file, renamed from modules/getopt.
12640         * modules/getopt-posix: New file.
12641         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12642         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12643         (gl_GETOPT): Remove macro.
12644         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12645         Disable the test against BSD systems that declare optreset. Test
12646         against mingw bug. Test against lack of support of optional arguments
12647         on many platforms.
12648         * doc/glibc-headers/getopt.texi: Update module name and list of
12649         relevant platforms.
12650         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12651         'getopt-gnu' and more portability problems.
12652         * NEWS: Mention the changes.
12653
12654 2009-08-12  Bruno Haible  <bruno@clisp.org>
12655
12656         Ensure that optarg etc. get declared by <unistd.h>.
12657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12658         AC_USE_SYSTEM_EXTENSIONS.
12659         * modules/getopt (Depends-on): Add 'extensions'.
12660
12661 2009-08-12  Bruno Haible  <bruno@clisp.org>
12662
12663         Avoid test link errors.
12664         * modules/pipe-filter-ii-tests (Makefile.am): Define
12665         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12666         * modules/pipe-filter-gi-tests (Makefile.am): Define
12667         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12668         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12669
12670 2009-08-12  Bruno Haible  <bruno@clisp.org>
12671
12672         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12673         gl_GETOPT_SUBSTITUTE before.
12674         (gl_GETOPT): Use it.
12675         * m4/argp.m4 (gl_ARGP): Update.
12676         Reported by Sergey Poznyakoff.
12677
12678         * m4/getopt.m4: Reorder macros.
12679         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12680         (gl_GETOPT_SUBSTITUTE): Remove macro.
12681
12682 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12683
12684         Minor improvement in gitlog-to-changelog
12685
12686         * build-aux/gitlog-to-changelog: New option `--format' makes
12687         output format string configurable.
12688
12689 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12690
12691         Optimize exclude: use hash tables for non-wildcard patterns.
12692
12693         * lib/exclude.c: Include hash.h and mbuiter.h
12694         (struct exclude_pattern, exclude_segment): New data types.
12695         (struct exclude): Rewrite.
12696         (fnmatch_pattern_has_wildcards): New function.
12697         (new_exclude_segment, free_exclude_segment): New functions.
12698         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12699         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12700         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12701         * modules/exclude: Depend on hash and mbuiter.
12702
12703         * modules/exclude-tests: New file.
12704         * tests/test-exclude.c: New file.
12705         * tests/test-exclude1.sh: New file.
12706         * tests/test-exclude2.sh: New file.
12707         * tests/test-exclude3.sh: New file.
12708         * tests/test-exclude4.sh: New file.
12709         * tests/test-exclude5.sh: New file.
12710         * tests/test-exclude6.sh: New file.
12711         * tests/test-exclude7.sh: New file.
12712
12713 2009-08-12  Bruno Haible  <bruno@clisp.org>
12714
12715         Ensure that getopt() gets declared by <unistd.h>.
12716         * lib/unistd.in.h: Conditionally include getopt.h.
12717         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12718         Set GNULIB_UNISTD_H_GETOPT.
12719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12720         GNULIB_UNISTD_H_GETOPT.
12721         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12722
12723 2009-08-12  Bruno Haible  <bruno@clisp.org>
12724
12725         Clarify logic.
12726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12727         gl_replace_getopt instead of GETOPT_H.
12728
12729 2009-08-12  Bruno Haible  <bruno@clisp.org>
12730
12731         * m4/getopt.m4: Add comments.
12732
12733 2009-08-12  Bruno Haible  <bruno@clisp.org>
12734
12735         Disable multithread support by default on Cygwin 1.5.x.
12736         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12737         set gl_use_threads=no if not specified otherwise.
12738
12739 2009-08-11  Bruno Haible  <bruno@clisp.org>
12740
12741         Avoid compilation error on NetBSD 5.0.
12742         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12743         * tests/test-stdio.c: Likewise.
12744         * tests/test-stdlib.c: Likewise.
12745         * tests/test-string.c: Likewise.
12746         * tests/test-unistd.c: Likewise.
12747         Reported by Greg Troxel <gdt@ir.bbn.com>
12748         at <https://savannah.gnu.org/support/?106973>.
12749
12750 2009-08-11  Bruno Haible  <bruno@clisp.org>
12751
12752         * modules/dup2-tests (Depends-on): Remove close.
12753
12754         Undo 2009-07-19 commit.
12755         * modules/acl-tests (Depends-on): Remove close.
12756         * modules/binary-io-tests (Depends-on): Likewise.
12757         * modules/closein-tests (Depends-on): Likewise.
12758         * modules/flock-tests (Depends-on): Likewise.
12759         * modules/fsync-tests (Depends-on): Likewise.
12760         * modules/lseek-tests (Depends-on): Likewise.
12761         * modules/pipe-tests (Depends-on): Likewise.
12762         * modules/posix_spawn-tests (Depends-on): Likewise.
12763         * modules/posix_spawnp-tests (Depends-on): Likewise.
12764         * modules/stat-time-tests (Depends-on): Likewise.
12765         * modules/yesno-tests (Depends-on): Likewise.
12766
12767 2009-08-10  Bruno Haible  <bruno@clisp.org>
12768
12769         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12770
12771 2009-08-10  Bruno Haible  <bruno@clisp.org>
12772
12773         Fix a gcc warning.
12774         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12775
12776 2009-08-10  Bruno Haible  <bruno@clisp.org>
12777
12778         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12779         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12780         not only the first time.
12781         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12782         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12783         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12784         is 1, not only the the first time.
12785
12786 2009-08-10  Bruno Haible  <bruno@clisp.org>
12787
12788         Make it possible to use module 'gethostname' without module 'close'.
12789         * lib/unistd.in.h (close): Evoke a link error only if
12790         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12792         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12793         * modules/unistd (Makefile.am): Substitute
12794         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12795         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12796         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12797         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12798         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12799         * modules/sys_ioctl (Makefile.am): Substitute
12800         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12801         * modules/socket (configure.ac): On native Windows, set
12802         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12803         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12804         Reported by Sam Steingold <sds@gnu.org>.
12805
12806 2009-08-10  Bruno Haible  <bruno@clisp.org>
12807
12808         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12809         * modules/ioctl (configure.ac): Likewise.
12810
12811 2009-08-10  Bruno Haible  <bruno@clisp.org>
12812
12813         Avoid collision between gnulib wrapper and libintl wrapper.
12814         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12815         already defined in intl/printf.c.
12816         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12817         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12818
12819 2009-08-09  Bruno Haible  <bruno@clisp.org>
12820
12821         Make <sys/select.h> really self-contained, also on Solaris 10.
12822         * lib/sys_select.in.h: Include <string.h>.
12823         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12824         Solaris 10 problem.
12825         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12826         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12827         Reported by Jim Meyering.
12828
12829 2009-08-09  Bruno Haible  <bruno@clisp.org>
12830
12831         Avoid warnings from 'aclocal' that are due to a use of macro name
12832         AM_XGETTEXT_OPTION that is not defined in automake.
12833         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12834         automake.
12835         * modules/error (configure.ac): Likewise.
12836         * modules/propername (configure.ac): Likewise.
12837         * modules/vasprintf (configure.ac): Likewise.
12838         * modules/verror (configure.ac): Likewise.
12839         * modules/xprintf (configure.ac): Likewise.
12840         * modules/xvasprintf (configure.ac): Likewise.
12841
12842 2009-08-08  Bruno Haible  <bruno@clisp.org>
12843
12844         Avoid compilation error in C++ mode.
12845         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12846         Reported by Sam Steingold <sds@gnu.org>.
12847
12848 2009-08-08  Bruno Haible  <bruno@clisp.org>
12849
12850         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12851         for the various Unix platforms.
12852         * doc/posix-headers/limits.texi: Update platforms list regarding
12853         HOST_NAME_MAX.
12854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12855
12856 2009-08-07  Jim Meyering  <meyering@redhat.com>
12857
12858         selinux-at: fix typo in a comment
12859         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12860         Spotted by Paolo Bonzini.
12861
12862         selinux-at: remove redundant m4 code, add documentation
12863         * modules/selinux-at (configure.ac): Remove redundant code.
12864         LIB_SELINUX is already set via the dependent module, selinux-h.
12865         (Include): Add quotes around selinux-at.h.
12866         * lib/selinux-at.h: Add documentation.
12867         Reported by Bruno Haible in
12868         http://marc.info/?l=gnulib-bug&m=124958988300749
12869
12870 2009-08-07  Bruno Haible  <bruno@clisp.org>
12871
12872         Avoid link error on MacOS X 10.3 and 10.4.
12873         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12874         on non-ELF systems.
12875         * lib/argp-pv.c (argp_program_version): Likewise.
12876         Reported by Simon Josefsson.
12877
12878 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12879
12880         * tests/test-version-etc.sh: Use $EXEEXT.
12881
12882 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12883
12884         update-copyright: update documentation to point to maint.mk
12885         * build-aux/update-copyright: Here.
12886
12887 2009-08-06  Jim Meyering  <meyering@redhat.com>
12888
12889         maint.mk: support update-copyright-local
12890         * top/maint.mk (update-copyright-local): Define place-holder.
12891         (update-copyright): Depend on $(update-copyright-local).
12892
12893 2009-08-06  Jim Meyering  <meyering@redhat.com>
12894
12895         selinux-at: new module
12896         Initially written for coreutils, this module will soon be
12897         used by findutils, too.
12898         * MODULES.html.sh [Misc]: Add selinux-at.
12899         * lib/selinux-at.h: New file, from coreutils.
12900         * lib/selinux-at.c: Likewise.
12901         * modules/selinux-at: Likewise.
12902         (License): Change from LGPL to GPL, since it depends
12903         on the GPL'd openat module.
12904
12905         doc: update README
12906         * README: Remove references to cogito.
12907         Remove cvs-repo-updating instructions from 2007.
12908         Don't imply that CVS is better if you have limited disk space.
12909
12910 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12911
12912         update-copyright: support C-style comments
12913         * build-aux/update-copyright: Implement and document.
12914         * tests/test-update-copyright.sh: Test.
12915
12916 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12917
12918         update-copyright: support omitted "(C)"
12919         * build-aux/update-copyright: Implement and document.  Also,
12920         allow variable whitespace before "(C)".
12921         * tests/test-update-copyright.sh: Test.
12922
12923 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12924
12925         update-copyright: don't trip on non-FSF copyright statements
12926         * build-aux/update-copyright: Fix so that the first correctly
12927         formatted FSF copyright statement is recognized no matter what
12928         appears before it.  Update documentation.
12929         * tests/test-update-copyright.sh: Test that.
12930
12931 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12932
12933         update-copyright: clean up code a little
12934         * build-aux/update-copyright: Append "_re" to the name of any
12935         variable holding a regular expression.
12936         Replace "old" and "new" with "stmt" in variable names.
12937         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12938         handled correctly.
12939         Format code more consistently.
12940
12941 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12942
12943         update-copyright-tests: improve portability
12944         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12945         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12946
12947 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12948
12949         update-copyright: support @copyright{} and &copy;
12950         * build-aux/update-copyright: Implement and document.
12951         * tests/test-update-copyright.sh: Test.
12952
12953 2009-08-04  Jim Meyering  <meyering@redhat.com>
12954
12955         update-copyright-tests: correctly test EOL=\r\n handling
12956         * tests/test-update-copyright.sh: Put \r at the end of some lines
12957         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12958
12959         maint.mk: make update-copyright exclusion list more configurable
12960         * top/maint.mk (update-copyright): Default to excluding COPYING,
12961         but allow an override, in case someone does want to update that file.
12962
12963         maint.mk: don't update copyright date in COPYING
12964         * top/maint.mk (update-copyright): Exclude COPYING.
12965
12966         maint.mk: add a copyright-updating rule
12967         * top/maint.mk (update-copyright): New rule.
12968         Derived from coreutils/Makefile.am.
12969
12970         update-copyright: rename some variables
12971         * build-aux/update-copyright: Rename a few variables for clarity.
12972         Tweak syntax.  List Joel E. Denny as coauthor.
12973
12974 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12975
12976         update-copyright: fix bug for 2-digit last year and add tests
12977         * build-aux/update-copyright: Fix bug.
12978         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12979         specified.
12980         * modules/update-copyright-tests: New
12981         * tests/test-update-copyright.sh: New.
12982
12983 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12984
12985         update-copyright: handle leading tabs in line prefix
12986         * build-aux/update-copyright: Count leading tabs as 8 spaces
12987         when computing margin.  This helps with the formatting of
12988         ChangeLogs, for example.
12989         Fix documentation a little.
12990
12991 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12992
12993         update-copyright: support EOL=\r\n
12994         * build-aux/update-copyright: Implement that.
12995
12996 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12997
12998         update-copyright: automatically format copyright statements
12999         * build-aux/update-copyright: Implement that.
13000         Also, be a little more predictable and safer by always failing
13001         when the full copyright format is not perfectly recognized as an
13002         unbroken whole.  Discussed at
13003         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13004         Rewrite documentation.
13005
13006 2009-08-03  Bruno Haible  <bruno@clisp.org>
13007
13008         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13009
13010 2009-08-02  Bruno Haible  <bruno@clisp.org>
13011
13012         Tests for module 'uname'.
13013         * modules/uname-tests: New file.
13014         * tests/test-uname.c: New file.
13015
13016         New module 'uname'.
13017         * lib/uname.c: New file.
13018         * m4/uname.m4: New file.
13019         * modules/uname: New file.
13020         * doc/posix-functions/uname.texi: Mention the new module.
13021
13022 2009-08-02  Bruno Haible  <bruno@clisp.org>
13023
13024         Tests for module 'sys_utsname'.
13025         * modules/sys_utsname-tests: New file.
13026         * tests/test-sys_utsname.c: New file.
13027
13028         New module 'sys_utsname'.
13029         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13030         * m4/sys_utsname_h.m4: New file.
13031         * modules/sys_utsname: New file.
13032         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13033
13034 2009-08-02  Bruno Haible  <bruno@clisp.org>
13035
13036         Implicitly initialize the sockets library.
13037         * lib/gethostname.c: Include sockets.h.
13038         (rpl_gethostname): Invoke gl_sockets_startup.
13039         * lib/socket.c: Include sockets.h.
13040         (rpl_socket): Invoke gl_sockets_startup.
13041         * modules/gethostname (Depends-on): Add sockets.
13042         * modules/socket (Depends-on): Likewise.
13043         * tests/test-poll.c: Don't include sockets.h.
13044         (main): Don't invoke gl_sockets_startup.
13045         * tests/test-select.c: Don't include sockets.h.
13046         (main): Don't invoke gl_sockets_startup.
13047
13048 2009-08-02  Bruno Haible  <bruno@clisp.org>
13049
13050         Allow multiple calls to gl_sockets_startup.
13051         * lib/sockets.c (initialized_sockets_version): New variable.
13052         (gl_sockets_startup): Do nothing if already called for this or a higher
13053         version.
13054         (gl_sockets_cleanup): Reset initialized_sockets_version.
13055
13056 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13057
13058         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13059         different project/version.
13060
13061 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13062             Bruno Haible  <bruno@clisp.org>
13063
13064         Tests for module 'pipe-filter-gi'.
13065         * modules/pipe-filter-gi-tests: New file.
13066         * tests/test-pipe-filter-gi1.sh: New file.
13067         * tests/test-pipe-filter-gi1.c: New file.
13068         * tests/test-pipe-filter-gi2.sh: New file.
13069         * tests/test-pipe-filter-gi2-main.c: New file.
13070         * tests/test-pipe-filter-gi2-child.c: New file.
13071
13072         New module 'pipe-filter-gi'.
13073         * lib/pipe-filter-gi.c: New file.
13074         * modules/pipe-filter-gi: New file.
13075
13076 2009-08-02  Bruno Haible  <bruno@clisp.org>
13077             Paolo Bonzini  <bonzini@gnu.org>
13078
13079         Tests for module 'pipe-filter-ii'.
13080         * modules/pipe-filter-ii-tests: New file.
13081         * tests/test-pipe-filter-ii1.sh: New file.
13082         * tests/test-pipe-filter-ii1.c: New file.
13083         * tests/test-pipe-filter-ii2.sh: New file.
13084         * tests/test-pipe-filter-ii2-main.c: New file.
13085         * tests/test-pipe-filter-ii2-child.c: New file.
13086
13087         New module 'pipe-filter-ii'.
13088         * lib/pipe-filter.h: New file.
13089         * lib/pipe-filter-ii.c: New file.
13090         * lib/pipe-filter-aux.h: New file.
13091         * modules/pipe-filter-ii: New file.
13092
13093 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13094
13095         * lib/gc-libgcrypt.c: Change copyright to FSF.
13096         * lib/gc-gnulib.c: Likewise.
13097
13098 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13099
13100         * lib/gethostname.c: Include limits.h.
13101
13102 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13103             Bruno Haible  <bruno@clisp.org>
13104
13105         Ensure HOST_NAME_MAX as part of the gethostname module.
13106         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13107         define also HOST_NAME_MAX.
13108         * tests/test-gethostname.c: Include <limits.h>.
13109         (main): Check also HOST_NAME_MAX.
13110         * doc/posix-headers/limits.texi: Document the mingw problem.
13111
13112 2009-08-02  Bruno Haible  <bruno@clisp.org>
13113
13114         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13115         Add comments.
13116
13117 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13118
13119         * lib/gethostname.c: Add Windows wrapper.
13120         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13121         * modules/gethostname: Depend on sys_socket & errno, for also
13122         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13123         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13124
13125 2009-07-31  Jim Meyering  <meyering@redhat.com>
13126
13127         getloadavg: fix symbol name in comment
13128         * lib/getloadavg.c: Correct a typo I introduced when adding
13129         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13130         Matt Kraai spotted the problem.
13131
13132 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13133
13134         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13135         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13136         code also if ! defined N_NAME_POINTER.
13137         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13138         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13139         but the n_name member is a 12-byte array.
13140
13141 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13142
13143         update-copyright: generalize comment handling
13144         * build-aux/update-copyright: Handle copyright statements
13145         within more comment styles.
13146         Document usage.
13147         Report any file with an external copyright holder or parse failure.
13148
13149 2009-07-29  Jim Meyering  <meyering@redhat.com>
13150
13151         mktime: correct setting of REPLACE_MKTIME
13152         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13153
13154         update-copyright: new module
13155         * modules/update-copyright: New file.
13156         * build-aux/update-copyright: New file.
13157         * MODULES.html.sh (maint+release support): Add update-copyright.
13158
13159 2009-07-27  Bruno Haible  <bruno@clisp.org>
13160
13161         Fix compilation error when <ctime> is used and mktime is replaced.
13162         * lib/time.in.h (mktime): New declaration.
13163         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13164         REPLACE_MKTIME instead of defining mktime in config.h.
13165         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13166         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13167         Reported by Ross McFarland <rwmcfa1@neces.com>.
13168
13169 2009-07-27  Bruno Haible  <bruno@clisp.org>
13170
13171         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13172         Reported by Matt Kraai <mkraai@beckman.com>.
13173
13174 2009-07-25  Jim Meyering  <meyering@redhat.com>
13175
13176         maint.mk: avoid warnings about missing files
13177         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13178         diagnostic when .prev-version does not exist.
13179         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13180         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13181         nonexistent cfg.mk.
13182         Suggestions from Simon Josefsson.
13183
13184 2009-07-25  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13187         defined as macros. Needed on QNX 6.4.1.
13188         Reported by Matt Kraai <mkraai@beckman.com>.
13189
13190 2009-07-23  Jim Meyering  <meyering@redhat.com>
13191
13192         maint.mk: invoke "make dist" with a working value of XZ_OPT
13193         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13194
13195 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13196
13197         Make fseeko.c compile on QNX.
13198         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13199
13200 2009-07-22  Peter Simons  <simons@cryp.to>
13201
13202         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13203         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13204         * lib/md4.h: Likewise.
13205         * lib/md5.h: Likewise.
13206         * lib/sha1.h: Likewise.
13207         * lib/sha256.h: Likewise.
13208         * lib/sha512.h: Likewise.
13209
13210         tests-sha1: don't assign literal string to 'char *' variable
13211         * tests/test-sha1.c (main): Declare locals with "const" to match
13212         attributes of the right hand side.
13213
13214 2009-07-21  Eric Blake  <ebb9@byu.net>
13215
13216         dup2: fix more mingw problems
13217         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13218         fd to itself.
13219         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13220         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13221         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13222         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13223         care of mingw bugs.
13224
13225 2009-07-21  Jim Meyering  <meyering@redhat.com>
13226
13227         vc-list-files: avoid failure when /bin/sh is dash
13228         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13229         On some Debian based systems, /bin/sh is a symlink to dash, and running
13230         this command would omit the "/" following each 'tests' prefix:
13231           dash -x build-aux/vc-list-files -C . tests
13232         That is because bash and dash work differently:
13233           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13234           bash ok
13235           dash odd
13236
13237 2009-07-21  Eric Blake  <ebb9@byu.net>
13238
13239         dup2-tests: test previous patch
13240         * modules/dup2-tests: New file.
13241         * tests/test-dup2.c: Likewise.
13242         * tests/test-open.c (main): Avoid unspecified behavior.
13243         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13244         test.
13245
13246         dup2: work around mingw and cygwin 1.5 bug
13247         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13249         * modules/unistd (Makefile.am): Substitute it.
13250         * lib/unistd.in.h (dup2): Declare the replacement.
13251         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13252         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13253         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13254         * modules/execute (Depends-on): Add dup2.
13255         * modules/fseterr (Depends-on): Likewise.
13256         * modules/pipe (Depends-on): Likewise.
13257         * modules/posix_spawn-internal (Depends-on): Likewise.
13258
13259 2009-07-21  Bruno Haible  <bruno@clisp.org>
13260
13261         * modules/.gitattributes: New file.
13262
13263 2009-07-20  Bruno Haible  <bruno@clisp.org>
13264
13265         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13266         (main): Use it.
13267
13268 2009-07-20  Eric Blake  <ebb9@byu.net>
13269
13270         test-pipe: make a bit more robust.
13271         * tests/test-pipe.c (myerr): Allow error messages regardless of
13272         what we do to stderr.
13273         (test_pipe): Rearrange to avoid deadlock.
13274         (child_main): Try a larger read, to ensure we avoided deadlock.
13275         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13276         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13277         if misused.
13278
13279 2009-07-19  Jim Meyering  <meyering@redhat.com>
13280
13281         fts: avoid false-positive cycle-detection
13282         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13283         for each new command line argument.
13284
13285 2009-07-19  Bruno Haible  <bruno@clisp.org>
13286
13287         Fix build error on mingw with the modules sys_select and unistd.
13288         * modules/acl-tests (Depends-on): Add close.
13289         * modules/binary-io-tests (Depends-on): Likewise.
13290         * modules/closein-tests (Depends-on): Likewise.
13291         * modules/flock-tests (Depends-on): Likewise.
13292         * modules/fsync-tests (Depends-on): Likewise.
13293         * modules/lseek-tests (Depends-on): Likewise.
13294         * modules/pipe-tests (Depends-on): Likewise.
13295         * modules/posix_spawn-tests (Depends-on): Likewise.
13296         * modules/posix_spawnp-tests (Depends-on): Likewise.
13297         * modules/stat-time-tests (Depends-on): Likewise.
13298         * modules/yesno-tests (Depends-on): Likewise.
13299
13300 2009-07-19  Bruno Haible  <bruno@clisp.org>
13301
13302         Unify conditionals.
13303         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13304         macros, not at the compiler macros.
13305         * lib/pipe.c: Likewise.
13306         * lib/execute.c: Likewise.
13307         * lib/spawni.c: Likewise.
13308
13309 2009-07-19  Bruno Haible  <bruno@clisp.org>
13310
13311         Fix handling of closed stdin/stdout/stderr on mingw.
13312         * lib/w32spawn.h: Include unistd.h.
13313         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13314         file descriptor with O_NOINHERIT flag.
13315         (fd_safer_noinherit): New function, based on fd-safer.c.
13316         (dup_safer_noinherit): New function, based on dup-safer.c.
13317         (undup_safer_noinherit): New function.
13318         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13319         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13320         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13321         instead of fd_safer.
13322         * tests/test-pipe.c: Include <windows.h>.
13323         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13324
13325         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13326         from main.
13327         (test_pipe): Pass an extra argument for disambiguation.
13328         (main): Invoke parent_main or child_main.
13329
13330         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13331         consistently.
13332
13333 2009-07-18  Eric Blake  <ebb9@byu.net>
13334
13335         test-pipe: fix mingw build
13336         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13337
13338 2009-07-18  Bruno Haible  <bruno@clisp.org>
13339
13340         * modules/pipe-tests (Makefile.am): Fix typo.
13341
13342 2009-07-18  Eric Blake  <ebb9@byu.net>
13343
13344         error: fix mingw build
13345         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13346         Reported by Bruno Haible.
13347
13348         error: avoid undefined use of stdout
13349         * lib/error.c (error, error_at_line): Check that fd 1 is open
13350         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13351         is handling faults and the close_stdout module wants to report the
13352         detection of closed stdout as an error.
13353
13354 2009-07-17  Eric Blake  <ebb9@byu.net>
13355
13356         pipe: be robust in face of closed fds
13357         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13358         should cause child to misbehave.
13359         * modules/pipe-tests: New module.
13360         * tests/test-pipe.c: New file.
13361         * tests/test-pipe.sh: New file.
13362         Reported by Akim Demaille.
13363
13364 2009-07-14  Bruno Haible  <bruno@clisp.org>
13365
13366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13367         Reported by anonymous kc.
13368
13369 2009-07-07  Jim Meyering  <meyering@redhat.com>
13370
13371         maint.mk: don't look for translatable strings in *.m4 or *.mk
13372         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13373         when searching for translatable strings.
13374
13375 2009-07-05  Jim Meyering  <meyering@redhat.com>
13376
13377         remove superfluous parentheses in STREQ definition
13378         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13379         * lib/getugroups.c (STREQ): Likewise.
13380         * lib/fnmatch.c (STREQ): Likewise.
13381         Spotted by Bruno Haible.
13382
13383 2009-07-04  Jim Meyering  <meyering@redhat.com>
13384
13385         argv-iter: new module
13386         * MODULES.html.sh: Add argv-iter.
13387         * lib/argv-iter.c, lib/argv-iter.h: New files.
13388         * modules/argv-iter: New file.
13389         * modules/argv-iter-tests: New file.
13390         * tests/test-argv-iter.c: Test it.
13391
13392 2009-07-04  Bruno Haible  <bruno@clisp.org>
13393
13394         Fix assertion.
13395         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13396         contains more exact copies of a given entry than file2, leave the extra
13397         copies unpaired rather than aborting.
13398         Reported by Eric Blake.
13399
13400 2009-07-02  Bruno Haible  <bruno@clisp.org>
13401
13402         Speedup git-merge-changelog for git cherry-pick.
13403         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13404         (entries_mapping_get): New function, extracted from compute_mapping.
13405         (entries_mapping_reverse_get): New function.
13406         (compute_mapping): Add a 'full' argument. Return the result in a
13407         'struct entries_mapping'.
13408         (main): Update. Access the mappings through entries_mapping_get.
13409         Reported by Eric Blake.
13410
13411 2009-07-02  Bruno Haible  <bruno@clisp.org>
13412
13413         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13414         best_i.
13415
13416 2009-07-02  Bruno Haible  <bruno@clisp.org>
13417
13418         Speed up approximate search for matching ChangeLog entries.
13419         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13420         argument. Call fstrcmp_bounded instead of fstrcmp.
13421         (compute_mapping, try_split_merged_entry, main): Update callers.
13422
13423 2009-07-02  Bruno Haible  <bruno@clisp.org>
13424
13425         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13426
13427 2009-06-30  Bruno Haible  <bruno@clisp.org>
13428
13429         Reduce the number of uc_is_cased calls.
13430         * lib/unicase.h (casing_suffix_context_t): Add
13431         'first_char_except_ignorable' field.
13432         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13433         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13434         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13435         Update initializer.
13436         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13437         case-ignorable characters.
13438         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13439         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13440         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13441         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13442         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13443
13444 2009-06-30  Bruno Haible  <bruno@clisp.org>
13445
13446         Tests for module 'unicase/ignorable'.
13447         * modules/unicase/ignorable-tests: New file.
13448         * tests/unicase/test-ignorable.c: New file, generated by
13449         gen-uni-tables.
13450
13451         Tests for module 'unicase/cased'.
13452         * modules/unicase/cased-tests: New file.
13453         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13454         * tests/unicase/test-predicate-part1.h: New file, derived from
13455         tests/unictype/test-predicate-part1.h.
13456         * tests/unicase/test-predicate-part2.h: New file, same as
13457         tests/unictype/test-predicate-part2.h.
13458
13459         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13460         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13461         (output_casing_properties): New function.
13462         (main): Call it.
13463         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13464         * lib/unicase/cased.c: Include unictype/bitmap.h.
13465         (uc_is_cased): Define through a bitmap lookup.
13466         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13467         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13468         (uc_is_case_ignorable): Define through a bitmap lookup.
13469         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13470         lib/unictype/bitmap.h.
13471         (Depends-on): Add inline. Clean up.
13472         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13473         lib/unictype/bitmap.h.
13474         (Depends-on): Add inline. Clean up.
13475         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13476         recognition.
13477         * tests/unicase/test-u16-tolower.c (main): Likewise.
13478         * tests/unicase/test-u32-tolower.c (main): Likewise.
13479
13480 2009-06-30  Bruno Haible  <bruno@clisp.org>
13481
13482         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13483         * lib/unicase/u16-casemap.c: Likewise.
13484         * lib/unicase/u32-casemap.c: Likewise.
13485
13486 2009-06-29  Bruno Haible  <bruno@clisp.org>
13487
13488         Define u32_casefold as a wrapper around u32_ct_casefold.
13489         * lib/unicase/u32-casefold.c: Update.
13490         * modules/unicase/u32-casefold (Depends-on): Add
13491         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13492         unicase/empty-suffix-context. Clean up.
13493
13494         Define u16_casefold as a wrapper around u16_ct_casefold.
13495         * lib/unicase/u16-casefold.c: Update.
13496         * modules/unicase/u16-casefold (Depends-on): Add
13497         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13498         unicase/empty-suffix-context. Clean up.
13499
13500         Define u8_casefold as a wrapper around u8_ct_casefold.
13501         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13502         * lib/unicase/u8-casefold.c: Update.
13503         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13504         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13505
13506         Define u32_totitle as a wrapper around u32_ct_totitle.
13507         * lib/unicase/u32-totitle.c: Update.
13508         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13509         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13510
13511         Define u16_totitle as a wrapper around u16_ct_totitle.
13512         * lib/unicase/u16-totitle.c: Update.
13513         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13514         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13515
13516         Define u8_totitle as a wrapper around u8_ct_totitle.
13517         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13518         functions.
13519         (FUNC): Delegate to U_CT_TOTITLE.
13520         * lib/unicase/u8-totitle.c: Update.
13521         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13522         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13523
13524         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13525         invocation.
13526         * modules/unicase/u32-tolower (Depends-on): Add
13527         unicase/empty-prefix-context, unicase/empty-suffix-context.
13528
13529         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13530         invocation.
13531         * modules/unicase/u16-tolower (Depends-on): Add
13532         unicase/empty-prefix-context, unicase/empty-suffix-context.
13533
13534         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13535         * modules/unicase/u8-tolower (Depends-on): Add
13536         unicase/empty-prefix-context, unicase/empty-suffix-context.
13537
13538         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13539         invocation.
13540         * modules/unicase/u32-toupper (Depends-on): Add
13541         unicase/empty-prefix-context, unicase/empty-suffix-context.
13542
13543         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13544         invocation.
13545         * modules/unicase/u16-toupper (Depends-on): Add
13546         unicase/empty-prefix-context, unicase/empty-suffix-context.
13547
13548         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13549         * modules/unicase/u8-toupper (Depends-on): Add
13550         unicase/empty-prefix-context, unicase/empty-suffix-context.
13551
13552         New module 'unicase/u32-ct-casefold'.
13553         * lib/unicase/u32-ct-casefold.c: New file.
13554         * modules/unicase/u32-ct-casefold: New file.
13555
13556         New module 'unicase/u16-ct-casefold'.
13557         * lib/unicase/u16-ct-casefold.c: New file.
13558         * modules/unicase/u16-ct-casefold: New file.
13559
13560         New module 'unicase/u8-ct-casefold'.
13561         * lib/unicase/u8-ct-casefold.c: New file.
13562         * lib/unicase/u-ct-casefold.h: New file, derived from
13563         lib/unicase/u-casefold.h.
13564         * modules/unicase/u8-ct-casefold: New file.
13565
13566         New module 'unicase/u32-ct-totitle'.
13567         * lib/unicase/u32-ct-totitle.c: New file.
13568         * modules/unicase/u32-ct-totitle: New file.
13569
13570         New module 'unicase/u16-ct-totitle'.
13571         * lib/unicase/u16-ct-totitle.c: New file.
13572         * modules/unicase/u16-ct-totitle: New file.
13573
13574         New module 'unicase/u8-ct-totitle'.
13575         * lib/unicase/u8-ct-totitle.c: New file.
13576         * lib/unicase/u-ct-totitle.h: New file, derived from
13577         lib/unicase/u-totitle.h.
13578         * modules/unicase/u8-ct-totitle: New file.
13579
13580         New module 'unicase/u32-ct-tolower'.
13581         * lib/unicase/u32-ct-tolower.c: New file.
13582         * modules/unicase/u32-ct-tolower: New file.
13583
13584         New module 'unicase/u16-ct-tolower'.
13585         * lib/unicase/u16-ct-tolower.c: New file.
13586         * modules/unicase/u16-ct-tolower: New file.
13587
13588         New module 'unicase/u8-ct-tolower'.
13589         * lib/unicase/u8-ct-tolower.c: New file.
13590         * modules/unicase/u8-ct-tolower: New file.
13591
13592         New module 'unicase/u32-ct-toupper'.
13593         * lib/unicase/u32-ct-toupper.c: New file.
13594         * modules/unicase/u32-ct-toupper: New file.
13595
13596         New module 'unicase/u16-ct-toupper'.
13597         * lib/unicase/u16-ct-toupper.c: New file.
13598         * modules/unicase/u16-ct-toupper: New file.
13599
13600         New module 'unicase/u8-ct-toupper'.
13601         * lib/unicase/u8-ct-toupper.c: New file.
13602         * modules/unicase/u8-ct-toupper: New file.
13603
13604         Add context arguments to u*_casemap functions.
13605         * lib/unicase/unicasemap.h: Include unicase.h.
13606         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13607         suffix_context arguments.
13608         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13609         functions.
13610         (FUNC): Add prefix_context and suffix_context arguments. Use
13611         uc_is_cased and uc_is_case_ignorable.
13612         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13613         * lib/unicase/u16-casemap.c: Likewise.
13614         * lib/unicase/u32-casemap.c: Likewise.
13615         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13616         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13617         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13618         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13619         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13620         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13621
13622         New module 'unicase/u32-suffix-context'.
13623         * lib/unicase/u32-suffix-context.c: New file.
13624         * modules/unicase/u32-suffix-context: New file.
13625
13626         New module 'unicase/u16-suffix-context'.
13627         * lib/unicase/u16-suffix-context.c: New file.
13628         * modules/unicase/u16-suffix-context: New file.
13629
13630         New module 'unicase/u8-suffix-context'.
13631         * lib/unicase/u8-suffix-context.c: New file.
13632         * lib/unicase/u-suffix-context.h: New file.
13633         * modules/unicase/u8-suffix-context: New file.
13634
13635         New module 'unicase/empty-suffix-context'.
13636         * lib/unicase/empty-suffix-context.c: New file.
13637         * modules/unicase/empty-suffix-context: New file.
13638
13639         New module 'unicase/u32-prefix-context'.
13640         * lib/unicase/u32-prefix-context.c: New file.
13641         * modules/unicase/u32-prefix-context: New file.
13642
13643         New module 'unicase/u16-prefix-context'.
13644         * lib/unicase/u16-prefix-context.c: New file.
13645         * modules/unicase/u16-prefix-context: New file.
13646
13647         New module 'unicase/u8-prefix-context'.
13648         * lib/unicase/u8-prefix-context.c: New file.
13649         * lib/unicase/u-prefix-context.h: New file.
13650         * lib/unicase/context.h: New file.
13651         * modules/unicase/u8-prefix-context: New file.
13652
13653         New module 'unicase/empty-prefix-context'.
13654         * lib/unicase/empty-prefix-context.c: New file.
13655         * modules/unicase/empty-prefix-context: New file.
13656
13657         New module 'unicase/ignorable'.
13658         * lib/unicase/ignorable.c: New file.
13659         * modules/unicase/ignorable: New file.
13660
13661         New module 'unicase/cased'.
13662         * lib/unicase/caseprop.h: New file.
13663         * lib/unicase/cased.c: New file.
13664         * modules/unicase/cased: New file.
13665
13666         New functions for case mapping of substrings.
13667         * lib/unicase.h (casing_prefix_context_t): New type.
13668         (unicase_empty_prefix_context): New variable.
13669         (u8_casing_prefix_context, u16_casing_prefix_context,
13670         u32_casing_prefix_context, u8_casing_prefixes_context,
13671         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13672         declarations.
13673         (casing_suffix_context_t): New type.
13674         (unicase_empty_suffix_context): New variable.
13675         (u8_casing_suffix_context, u16_casing_suffix_context,
13676         u32_casing_suffix_context, u8_casing_suffixes_context,
13677         u16_casing_suffixes_context, u32_casing_suffixes_context,
13678         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13679         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13680         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13681         declarations.
13682
13683 2009-06-28  Jim Meyering  <meyering@redhat.com>
13684
13685         boostrap: indent only with spaces
13686         * build-aux/bootstrap: Indent only with spaces, never TABs.
13687
13688         bootstrap: split long lines
13689         * build-aux/bootstrap: Keep line length < 80.
13690
13691         bootstrap: sync from coreutils
13692         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13693         just as autoreconf does.  Verify a list of prerequisite
13694         package-name,version-number pairs if defined in bootstrap.conf.
13695         Refer to README-prereq, if prerequisites are not satisfied.
13696
13697 2009-06-27  Eric Blake  <ebb9@byu.net>
13698
13699         tests: add test for bogus NULL definition
13700         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13701         * tests/test-stdlib.c: Likewise.
13702         * tests/test-string.c: Likewise.
13703         * tests/test-locale.c: Likewise.
13704         * tests/test-unistd.c: Likewise.
13705         * modules/stdio-tests (Depends-on): Add verify.
13706         * modules/stdlib-tests (Depends-on): Likewise.
13707         * modules/string-tests (Depends-on): Likewise.
13708         * modules/locale-tests (Depends-on): Likewise.
13709         * modules/unistd-tests (Depends-on): Likewise.
13710
13711 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13712
13713         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13714         self-explaining comment.
13715         * m4/selinux-selinux-h: Update serial.
13716         (gl_LIBSELINUX): New macro, adding a warning for missing development
13717         packages to code extracted from...
13718         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13719         Add warning for missing development packages here, too.
13720
13721 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13722
13723         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13724
13725 2009-06-25  Eric Blake  <ebb9@byu.net>
13726
13727         version-etc: fix regression
13728         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13729         gcc.
13730         (version_etc): Use it, to catch bugs with trailing NULL.
13731         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13732         (version_etc_va): Fix logic bug.
13733         * modules/version-etc-tests: Add test.
13734         * tests/test-version-etc.c: New file.
13735         * tests/test-version-etc.sh: Likewise.
13736
13737 2009-06-25  Sam Steingold  <sds@gnu.org>
13738
13739         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13740         mbtowc declaration.
13741
13742 2009-06-25  Eric Blake  <ebb9@byu.net>
13743
13744         fpurge: migrate into <stdio.h>
13745         * lib/fpurge.h: Delete...
13746         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13747         * lib/fpurge.c (fpurge): Change declaring header.
13748         * modules/fpurge (Files): Drop deleted file.
13749         (Depends-on): Add stdio.
13750         (configure.ac): Set witness.
13751         * modules/stdio (Makefile.am): Support fpurge macros.
13752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13753         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13754         * lib/fflush.c: Update client.
13755         * tests/test-fpurge.c: Likewise.
13756         * NEWS: Mention the change.
13757
13758 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13759
13760         * lib/argp-version-etc.c (program_authors): Add const
13761         qualifier.
13762         * lib/version-etc.c: Fix typos in the comments.
13763         * modules/argp-version-etc: Depends on version-etc.
13764
13765 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13766
13767         argp-version-etc: new module.
13768
13769         * lib/argp-version-etc.c: New file.
13770         * lib/argp-version-etc.h: New file.
13771         * modules/argp-version-etc: New file.
13772         * modules/argp-version-etc-tests: New file.
13773         * tests/test-argp-version-etc.c: New test.
13774         * tests/test-argp-version-etc-1.sh: New test.
13775
13776 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13777
13778         Provide additional interfaces and documentation for version-etc
13779         module.
13780
13781         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13782         interfaces.
13783         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13784         prototypes.
13785
13786 2009-06-24  Bruno Haible  <bruno@clisp.org>
13787
13788         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13789         HAVE_LIB${NAME} macro.
13790         Reported by Sam Steingold <sds@gnu.org>.
13791
13792 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13793
13794         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13795         needed.
13796
13797 2009-06-21  Bruno Haible  <bruno@clisp.org>
13798
13799         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13800         work.
13801         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13802         together with LIB${NAME}, LTLIB${NAME}.
13803         Reported by Sam Steingold <sds@gnu.org>.
13804
13805 2009-06-20  Jim Meyering  <meyering@redhat.com>
13806
13807         tests: make sc_require_test_exit_idiom more generic
13808         * top/maint.mk (Exit_witness_file): New overridable variable.
13809         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13810         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13811
13812 2009-06-19  Jim Meyering  <meyering@redhat.com>
13813
13814         hash: reverse order of src/dst parameters in an internal interface
13815         * lib/hash.c (transfer_entries): Reverse order of parameters to
13816         put DST before SRC.  Adjust callers.
13817
13818         tests: test-hash: avoid wholesale duplication
13819         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13820         Instead, use a loop and add a single conditional.
13821
13822         tests: test-hash: allow seed selection via a command line argument
13823         * tests/test-hash.c (get_seed): New function.
13824         (main): Use it.
13825
13826 2009-06-19  Eric Blake  <ebb9@byu.net>
13827
13828         hash: avoid memory leak on allocation failure
13829         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13830         failure.  Factor repeated algorithm...
13831         (transfer_entries): ...into new helper routine.
13832         (hash_delete): React to hash_rehash return value.
13833
13834         hash: reduce memory pressure in hash_rehash no-op case
13835         * lib/hash.c (next_prime): Avoid overflow.
13836         (hash_initialize): Factor bucket size computation...
13837         (compute_bucket_size): ...into new helper function.
13838         (hash_rehash): Use new function and open coding to reduce memory
13839         pressure, and avoid a memory leak in USE_OBSTACK code.
13840         Reported by Jim Meyering.
13841
13842 2009-06-18  Eric Blake  <ebb9@byu.net>
13843
13844         hash: make rotation more obvious
13845         * modules/hash (Depends-on): Add bitrotate and stdint.
13846         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13847         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13848         (SIZE_MAX): Rely on headers for definition.
13849         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13850         (raw_hasher): Use rotr_sz.
13851         Suggested by Jim Meyering.
13852
13853         hash: fix memory leak in last patch
13854         * lib/hash.c (hash_rehash): Avoid memory leak.
13855
13856         hash: avoid no-op rehashing
13857         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13858
13859         hash: provide default callback functions
13860         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13861         (hash_initialize): Use them as defaults.
13862         * tests/test-hash.c (main): Test this.
13863
13864         hash: minor optimization
13865         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13866         when possible.
13867         (hash_initialize): Document this promise.
13868         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13869         * tests/test-hash.c (hash_compare_strings): Test this.
13870
13871 2009-06-18  Bruno Haible  <bruno@clisp.org>
13872
13873         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13874         going to be replaced anyway.
13875
13876 2009-06-18  Bruno Haible  <bruno@clisp.org>
13877
13878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13879         in one place.
13880         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13881         be replaced anyway.
13882
13883 2009-06-18  Eric Blake  <ebb9@byu.net>
13884
13885         hash: check for resize before insertion
13886         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13887         threshold before insertion, so that a pathological hash_rehash
13888         that fills every bucket can still trigger another rehash.
13889
13890 2009-06-18  Jim Meyering  <meyering@redhat.com>
13891
13892         hash-tests: add a loop around the small tests
13893         * tests/test-hash.c (main): Repeat small tests with selected
13894         small initial table sizes.
13895
13896 2009-06-17  Eric Blake  <ebb9@byu.net>
13897
13898         hash: minor cleanups
13899         * lib/hash.h (hash_entry): Make opaque, by moving...
13900         * lib/hash.c (hash_entry): ...here.
13901         (hash_insert): Clarify restrictions on what can be inserted.
13902         (hash_get_next): Clarify when it is safe to remove an element
13903         during traversal.
13904         (check_tuning): Skip verification when tuning is known safe.
13905         (hash_initialize): Clarify restrictions on tuning.
13906
13907 2009-06-17  Jim Meyering  <jim@meyering.net>
13908         and Eric Blake  <ebb9@byu.net>
13909
13910         hash-tests: new module
13911         * modules/hash-tests: New file.
13912         * tests/test-hash.c: New file.
13913
13914 2009-06-17  Eric Blake  <ebb9@byu.net>
13915
13916         strstr-simple: document new module
13917         * MODULES.html.sh: Document new module.
13918
13919         strstr, strcasestr: replace on platforms with broken memchr
13920         * modules/strstr: Split into...
13921         * modules/strstr-simple: ...new module that does not care about
13922         performance, but does care about glibc bug.
13923         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13924         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13925         if platform memchr is broken, per Debian bug 521737.
13926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13927         memchr.
13928         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13929         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13930         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13931         * modules/mountlist (Depends-on): Add strstr-simple.
13932         * modules/gen-uni-tables (Depends-on): Likewise.
13933         * modules/argz (Depends-on): Add strstr.
13934
13935 2009-06-17  Bruno Haible  <bruno@clisp.org>
13936
13937         * modules/posix_spawn-internal (Depends-on): Add errno.
13938
13939 2009-06-17  Bruno Haible  <bruno@clisp.org>
13940
13941         Define missing ESTALE on Interix 3.5.
13942         * lib/errno.in.h (ESTALE): Assign a value if missing.
13943         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13944         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13945         missing.
13946         * doc/posix-headers/errno.texi: Mention the Interix bug.
13947         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13948
13949 2009-06-15  Eric Blake  <ebb9@byu.net>
13950
13951         memchr, memchr2: add valgrind exception
13952         * lib/memchr.valgrind: New file.
13953         * lib/memchr2.valgrind: New file.
13954         * modules/memchr (Files): Distribute valgrind file.
13955         * modules/memchr2 (Files): Likewise.
13956
13957         docs: memchr is no longer obsolete
13958         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13959         * lib/string.in.h (memchr): Simplify logic.
13960
13961 2009-06-14  Jim Meyering  <meyering@redhat.com>
13962
13963         link-follow: fix the "checking..." message to not mention trailing slash
13964         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13965         never considered trailing slashes.
13966
13967 2009-06-14  Bruno Haible  <bruno@clisp.org>
13968
13969         * m4/memchr.m4: Mention also the bug on IA-64.
13970         * doc/posix-functions/memchr.texi: Likewise.
13971
13972 2009-06-12  Eric Blake  <ebb9@byu.net>
13973
13974         memchr: detect broken x86_64 and alpha implementations
13975         * modules/memchr-tests (Depends-on): Move mmap detection...
13976         * modules/memchr (Depends-on): ...here.
13977         (configure.ac): Set indicator.
13978         * lib/string.in.h (memchr): Declare replacement.
13979         * modules/string (Makefile.am): Trigger replacement.
13980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13981         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13982         bugs.
13983         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13984         * modules/getpagesize (License): Relax license.
13985
13986 2009-06-11  Bruno Haible  <bruno@clisp.org>
13987
13988         * lib/idpriv.h: Add more references.
13989
13990 2009-06-08  Bruno Haible  <bruno@clisp.org>
13991
13992         Tests for module 'idpriv-droptemp'.
13993         * modules/idpriv-droptemp-tests: New file.
13994         * tests/test-idpriv-droptemp.sh: New file.
13995         * tests/test-idpriv-droptemp.su.sh: New file.
13996         * tests/test-idpriv-droptemp.c: New file.
13997
13998         New module 'idpriv-droptemp'.
13999         * lib/idpriv-droptemp.c: New file.
14000         * modules/idpriv-droptemp: New file.
14001
14002 2009-06-08  Bruno Haible  <bruno@clisp.org>
14003
14004         Tests for module 'idpriv-drop'.
14005         * modules/idpriv-drop-tests: New file.
14006         * tests/test-idpriv-drop.sh: New file.
14007         * tests/test-idpriv-drop.su.sh: New file.
14008         * tests/test-idpriv-drop.c: New file.
14009
14010         New module 'idpriv-drop'.
14011         * lib/idpriv.h: New file.
14012         * lib-idpriv-drop.c: New file.
14013         * m4/idpriv.m4: New file.
14014         * modules/idpriv-drop: New file.
14015
14016 2009-06-08  Bruno Haible  <bruno@clisp.org>
14017
14018         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14019         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14020         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14021         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14022         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14023         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14024         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14025
14026 2009-06-08  Eric Blake  <ebb9@byu.net>
14027
14028         test-strstr: use memory fence, when possible
14029         * tests/test-strstr.c (main): Use memory fence, in order to be
14030         more likely to trigger Debian bug 521737.
14031         * modules/strstr-tests (Files): Pull in additional files.
14032
14033         memchr: no longer obsolete, for wider field testing
14034         * modules/memchr (Status, Notice): Delete, this module is no
14035         longer obsolete.
14036         * modules/vasnprintf (Depends-on): Add memchr.
14037
14038 2009-06-07  Jim Meyering  <meyering@redhat.com>
14039
14040         hash: declare some functions with the warn_unused_result attribute
14041         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14042
14043 2009-06-07  Bruno Haible  <bruno@clisp.org>
14044
14045         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14046         Reported by Eric Blake.
14047
14048 2009-06-06  Eric Blake  <ebb9@byu.net>
14049
14050         test-alignof: fix typo with long double
14051         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14052         compiler error.
14053
14054 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14055
14056         Escape non-texinfo { and }s.
14057         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14058         markup error.
14059
14060 2009-06-04  Jim Meyering  <meyering@redhat.com>
14061
14062         gitlog-to-changelog: don't infloop on an empty commit log
14063         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14064         Reported by Boris Petersen <transacid@centerim.org>.
14065
14066 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14067
14068         version-etc: extend for packagers
14069         Add three new configure options, intended for packagers:
14070           --with-packager="packager name"
14071           --with-packager-version="packager-specific version"
14072           --with-packager-bug-reports="packager bug reporting"
14073         An example with coreutils:
14074           $ ./configure \
14075             --with-packager=Gentoo \
14076             --with-packager-bug-report=http://bugs.gentoo.org/ \
14077             --with-packager-version="patchset 1.6"
14078           $ ./src/ls --version | head -n2
14079           ls (GNU coreutils) 7.1-dirty
14080           Packaged by Gentoo (patchset 1.6)
14081         Note that the bug reporting info via --help doesn't show up because
14082         coreutils uses its own custom emit_bug_reporting_address() implementation
14083         in src/system.h.  If it didn't, it'd look like:
14084           $ ./src/ls --help | tail -n4
14085           Report bugs to <bug-coreutils@gnu.org>.
14086           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14087           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14088           General help using GNU software: <http://www.gnu.org/gethelp/>.
14089         * lib/version-etc.c: Print new information, if provided.
14090         * m4/version-etc.m4: New file.
14091         * modules/version-etc (Files): Add m4/version-etc.m4.
14092         (configure.ac): Add gl_VERSION_ETC.
14093
14094 2009-05-31  Bruno Haible  <bruno@clisp.org>
14095
14096         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14097         and 'int64_t'.
14098         * modules/alignof-tests (Dependencies): Add stdint.
14099         Reported by Eric Blake.
14100
14101 2009-05-31  Bruno Haible  <bruno@clisp.org>
14102
14103         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14104         restriction due to compiler bugs.
14105         Reported by Eric Blake.
14106
14107 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14108             Bruno Haible  <bruno@clisp.org>
14109
14110         Fix test-alignof failure.
14111         * lib/alignof.h (alignof_slot): New macro.
14112         (alignof_type): New macro, with the same semantics as the previous
14113         'alignof'.
14114         (alignof): Alias to alignof_slot.
14115         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14116         check that the results are usable as constant expressions.
14117
14118 2009-05-31  Bruno Haible  <bruno@clisp.org>
14119
14120         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14121         * tests/test-memchr.c (main): Check that memchr does not read past the
14122         first occurrence of the byte.
14123         * tests/test-strstr.c (main): Update comment.
14124         Suggested by Eric Blake.
14125
14126 2009-05-30  Bruno Haible  <bruno@clisp.org>
14127
14128         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14129         detail how to use dumpbin.
14130         Reported by David Byron <dbyron@dbyron.com>.
14131
14132 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14133
14134         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14135
14136 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14137
14138         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14139
14140 2009-05-28  Bruno Haible  <bruno@clisp.org>
14141
14142         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14143         build-aux/ files.
14144
14145 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14146
14147         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14148
14149 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14150
14151         * gnulib-tool (sed_transform_main_lib_file)
14152         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14153         regexps.
14154
14155 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14156
14157         * tests/test-strstr.c: Add another self-test.
14158         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14159         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14160
14161 2009-05-23  Bruno Haible  <bruno@clisp.org>
14162
14163         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14164         change.
14165
14166 2009-05-21  Bruno Haible  <bruno@clisp.org>
14167
14168         Simplify use of mode_t varargs.
14169         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14170         uses 'mode_t' or 'int'.
14171         * lib/openat.c (openat): Likewise.
14172         * lib/open-safer.c (open_safer): Likewise.
14173         * m4/mode_t.m4: New file.
14174         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14175         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14176         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14177         * modules/open (Files): Add m4/mode_t.m4.
14178         * modules/openat (Files): Likewise.
14179         * modules/fcntl-safer (Files): Likewise.
14180         Suggested by Eric Blake.
14181
14182 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14183
14184         * doc/glibc-functions/fallocate.texi: New file.
14185         * doc/gnulib.texi: Include it.
14186
14187 2009-05-21  Eric Blake  <ebb9@byu.net>
14188             Bruno Haible  <bruno@clisp.org>
14189
14190         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14191         invocations.
14192         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14193
14194 2009-05-21  Eric Blake  <ebb9@byu.net>
14195             Bruno Haible  <bruno@clisp.org>
14196
14197         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14198         include_next. Fix of 2008-11-20 commit.
14199         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14200         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14201         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14202         NEXT_MATH_H.
14203         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14204         instead of NEXT_MATH_H.
14205
14206 2009-05-21  Bruno Haible  <bruno@clisp.org>
14207
14208         Avoid redefinition warnings for SIZE_MAX.
14209         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14210         Reported by Simon Josefsson.
14211
14212 2009-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14215         AC_CACHE_VAL.
14216
14217 2009-05-20  Bruno Haible  <bruno@clisp.org>
14218
14219         Make zeroptr.h work on mingw.
14220         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14221         mprotect.
14222         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14223         * modules/memchr2-tests (configure.ac): Likewise.
14224         * modules/memcmp-tests (configure.ac): Likewise.
14225         * modules/memmem-tests (configure.ac): Likewise.
14226         * modules/memrchr-tests (configure.ac): Likewise.
14227         Reported by Simon Josefsson.
14228
14229 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14230
14231         * tests/test-glob.c: Include string.h for strcmp prototype.
14232
14233 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14234
14235         * modules/getdelim (Depends-on): Add explicit stdint, although it
14236         was implicitly already pulled in via realloc-posix.
14237         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14238
14239 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14240
14241         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14242         G. Christensen" <tgc@jupiterrise.com>.
14243         * m4/sys_socket_h.m4: Check for sa_family_t.
14244         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14245         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14246         * tests/test-sys_socket.c: Check that sa_family_t works.
14247
14248 2009-05-18  Eric Blake  <ebb9@byu.net>
14249
14250         maint.mk: allow gnulib_dir in VPATH build
14251         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14252
14253 2009-05-15  Jim Meyering  <meyering@redhat.com>
14254
14255         maint.mk: Give gnulib_dir a default definition.
14256         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14257         Thus, most packages no longer need to specify this variable in cfg.mk
14258
14259 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14260
14261         rename.m4: fix typos that would make non-mingw cross-configure fail
14262         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14263
14264 2009-05-13  Eric Blake  <ebb9@byu.net>
14265
14266         mmap-anon: avoid out-of-order autoconf expansion
14267         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14268         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14269         * modules/memchr-tests (Depends-on): Add extensions.
14270         * modules/memchr2-tests (Depends-on): Add extensions.
14271         * modules/memcmp-tests (Depends-on): Add extensions.
14272         * modules/memmem-tests (Depends-on): Add extensions.
14273         * modules/memrchr-tests (Depends-on): Add extensions.
14274
14275 2009-05-13  Bruno Haible  <bruno@clisp.org>
14276
14277         Make some tests ISO C 99 compliant.
14278         * tests/zerosize-ptr.h: New file.
14279         * tests/test-memchr.c: Include zerosize-ptr.h.
14280         (main): Use a zero-size object pointer instead of NULL.
14281         * tests/test-memchr2.c: Include zerosize-ptr.h.
14282         (main): Use a zero-size object pointer instead of NULL.
14283         * tests/test-memcmp.c: Include zerosize-ptr.h.
14284         (main): Use a zero-size object pointer instead of NULL.
14285         * tests/test-memmem.c: Include zerosize-ptr.h.
14286         (main): Use a zero-size object pointer instead of NULL.
14287         * tests/test-memrchr.c: Include zerosize-ptr.h.
14288         (main): Use a zero-size object pointer instead of NULL.
14289         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14290         m4/mmap-anon.m4.
14291         (Depends-on): Add getpagesize.
14292         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14293         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14294         m4/mmap-anon.m4.
14295         (Depends-on): Add getpagesize.
14296         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14297         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14298         m4/mmap-anon.m4.
14299         (Depends-on): Add getpagesize.
14300         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14301         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14302         m4/mmap-anon.m4.
14303         (Depends-on): Add getpagesize.
14304         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14305         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14306         m4/mmap-anon.m4.
14307         (Depends-on): Add getpagesize.
14308         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14309
14310 2009-05-12  Bruno Haible  <bruno@clisp.org>
14311
14312         Tests for module 'alignof'.
14313         * modules/alignof-tests: New file.
14314         * tests/test-alignof.c: New file.
14315
14316 2009-05-12  Bruno Haible  <bruno@clisp.org>
14317
14318         Fix alignof macro.
14319         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14320         vendor compilers that are always correct.
14321
14322 2009-05-12  Bruno Haible  <bruno@clisp.org>
14323
14324         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14325         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14326         not whether its fully works.
14327
14328 2009-05-12  Bruno Haible  <bruno@clisp.org>
14329
14330         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14331
14332 2009-05-12  Jim Meyering  <meyering@redhat.com>
14333
14334         * top/maint.mk: Adjust backslash alignment.
14335
14336 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14337
14338         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14339
14340 2009-05-11  Eric Blake  <ebb9@byu.net>
14341
14342         argp: avoid undefined behavior
14343         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14344         macros.
14345
14346 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14347
14348         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14349         user.name to prevent git commit from complaining.
14350
14351 2009-05-10  Bruno Haible  <bruno@clisp.org>
14352
14353         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14354         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14355         it rewrites every file name only once.
14356         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14357
14358 2009-05-08  Bruno Haible  <bruno@clisp.org>
14359
14360         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14361         instead of 'max'.
14362
14363 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14364
14365         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14366         sockaddr_storage test.
14367
14368 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14369
14370         * modules/sys_socket (Makefile.am): Substitute
14371         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14372         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14373         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14374         * tests/test-sys_socket.c: Check sockaddr_storage.
14375
14376 2009-05-08  Bruno Haible  <bruno@clisp.org>
14377
14378         New module 'alignof'.
14379         * lib/alignof.h: New file.
14380         * modules/alignof: New file.
14381
14382 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14383             Bruno Haible  <bruno@clisp.org>
14384
14385         Fix test-file-has-acl on FreeBSD.
14386         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14387         mask is implicitly added.
14388         * tests/test-file-has-acl.c: Include <signal.h>.
14389         (main): Terminate the test after 5 seconds.
14390         * modules/acl-tests (configure.ac): Check for alarm function.
14391
14392 2009-05-04  Bruno Haible  <bruno@clisp.org>
14393
14394         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14396         * modules/errno (configure.ac): Drop AC_REQUIRE.
14397         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14398         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14399
14400 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14401
14402         * modules/glob-tests: New module.
14403         * tests/test-glob.c: Add.
14404
14405 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14406
14407         * modules/fnmatch-tests: New module.
14408         * tests/test-fnmatch.c: Add.
14409
14410 2009-05-04  Eric Blake  <ebb9@byu.net>
14411
14412         maint: make the new no-submodule-changes rule VPATH-safe
14413         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14414
14415 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14416             Bruno Haible  <bruno@clisp.org>
14417
14418         acl: Fix infinite loop on FreeBSD.
14419         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14420         of return value from acl_get_entry.
14421         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14422         Likewise.
14423
14424 2009-05-03  Bruno Haible  <bruno@clisp.org>
14425
14426         * lib/acl-internal.h (acl_entries): Clarify return value.
14427         * lib/acl_entries.c (acl_entries): Likewise.
14428
14429 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14430
14431         Bug fix in acl module.
14432         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14433
14434 2009-05-03  Bruno Haible  <bruno@clisp.org>
14435
14436         Create gperf-generated file in the source dir, not in the build dir.
14437         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14438         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14439         * modules/unicase/locale-language (unicase/locale-languages.h):
14440         Likewise.
14441         * modules/unicase/special-casing (unicase/special-casing-table.h):
14442         Likewise.
14443         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14444         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14445         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14446         Reported by Ralf Wildenhues.
14447
14448 2009-05-03  Bruno Haible  <bruno@clisp.org>
14449
14450         * modules/fnmatch (Description, configure.ac): Taken from
14451         fnmatch-posix.
14452         * modules/fnmatch-posix: Turn into a symbolic reference to the
14453         'fnmatch' module, and deprecate.
14454         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14455
14456 2009-05-03  Bruno Haible  <bruno@clisp.org>
14457
14458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14459         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14460         Reported by Ralf Wildenhues.
14461
14462 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14463
14464         * m4/fnmatch.m4: Fix fnmatch re-define.
14465
14466 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14467
14468         priv-set: new module and tests; adapt write-any-file
14469         * lib/priv-set.c: New file.
14470         * lib/priv-set.h: New file.
14471         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14472         * lib/write-any-file.c: Simplify by using priv-set module.
14473         * m4/priv-set.m4: New file.
14474         * modules/priv-set: New file.
14475         * modules/unlinkdir: Add dependency on priv-set module.
14476         * modules/write-any-file: Likewise.
14477
14478         Tests for module 'priv-set'.
14479         * modules/priv-set-tests: New file.
14480         * tests/test-priv-set.c: New file.
14481
14482 2009-05-03  Jim Meyering  <meyering@redhat.com>
14483             Bruno Haible  <bruno@clisp.org>
14484
14485         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14486         use the converted UTF-8 variant of the name instead.
14487
14488 2009-05-03  Jim Meyering  <meyering@redhat.com>
14489
14490         tests: tighten some getdate tests
14491         * tests/test-getdate.c (main): Tighten tests: require equality,
14492         not just greater than.  Set TZ envvar to UTC0.
14493
14494 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14495
14496         getdate: correctly interpret "next monday" when run on a Monday
14497         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14498         that e.g., "next tues" (when run on a tuesday) results in a date
14499         that is one week in the future, and not today's date.
14500         I.e., add a week when the wday is the same as the current one.
14501         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14502         and earlier by Martin Bernreuther and Jan Minář.
14503         * tests/test-getdate.c (main): Check that "next DAY" is always in
14504         the future and that "last DAY" is always in the past.
14505
14506 2009-05-02  Jim Meyering  <meyering@redhat.com>
14507
14508         build: ensure that a release build fails when a submodule is unclean
14509         * top/maint.mk (no-submodule-changes): New rule.
14510         (alpha beta major): Depend on it.
14511
14512 2009-05-02  Bruno Haible  <bruno@clisp.org>
14513
14514         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14515         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14516         shell variable gl_fnmatch_required to detect which variant is
14517         requested.
14518         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14519         gl_FUNC_FNMATCH_POSIX.
14520         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14521         exclude fnmatch-posix.
14522
14523 2009-05-02  Bruno Haible  <bruno@clisp.org>
14524
14525         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14526         * modules/mbsrtowcs (License): Change to LGPLv2+.
14527         * modules/strnlen1 (License): Likewise.
14528         Reported by Simon Josefsson.
14529
14530 2009-05-02  Bruno Haible  <bruno@clisp.org>
14531
14532         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14533         "cross".
14534         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14535         gnulib-tool was called with option --source-base=lib.
14536
14537 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14538
14539         Use automake *-local hooks without commands, for extensibility.
14540         * modules/localcharset (Makefile.am): Rename install-exec-local
14541         rule to install-exec-localcharset, and make it a prerequisite of
14542         install-exec-local.  Likewise, rename the uninstall-local rule to
14543         uninstall-localcharset, and make it a prerequisite of the former.
14544
14545 2009-05-01  Bruno Haible  <bruno@clisp.org>
14546
14547         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14548         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14549         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14551         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14552         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14553         m4/locale-zh.m4, m4/codeset.m4.
14554
14555         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14556         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14557         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14558         m4/locale-zh.m4.
14559
14560         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14561         REPLACE_WCRTOMB if mbstate_t must be replaced.
14562         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14563         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14564
14565 2009-05-01  Bruno Haible  <bruno@clisp.org>
14566
14567         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14568         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14569         dngettext, dcngettext, textdomain, bindtextdomain,
14570         bind_textdomain_codeset): Undefine before redefining.
14571
14572 2009-04-30  Bruno Haible  <bruno@clisp.org>
14573
14574         Fix bug introduced on 2009-04-25.
14575         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14576         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14577         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14578         is defined.
14579         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14580         is defined.
14581         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14582         is defined.
14583         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14584
14585 2009-04-28  Bruno Haible  <bruno@clisp.org>
14586
14587         Comment tweaks.
14588         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14589         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14590         * lib/unicase.h (u*_casexfrm): Likewise.
14591         Reported by Paolo Bonzini.
14592
14593 2009-04-28  Bruno Haible  <bruno@clisp.org>
14594
14595         Fix a compilation error.
14596         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14597         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14598         Reported by Jim Meyering.
14599
14600 2009-04-27  Bruno Haible  <bruno@clisp.org>
14601
14602         New module 'libunistring'.
14603         * modules/libunistring: New file.
14604         * m4/libunistring.m4: New file.
14605         * MODULES.html.sh (Unicode string functions): Add it.
14606
14607 2009-04-27  Eric Blake  <ebb9@byu.net>
14608
14609         maint.mk: allow package-specific header to provide <config.h>
14610         * top/maint.mk (sc_require_config_h): New variable.
14611         (sc_require_config_h, sc_require_config_h_first): Use it.
14612
14613 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14614
14615         * top/maint.mk (sc_avoid_if_before_free): Except
14616         useless-if-before-free script.
14617
14618 2009-04-27  Eric Blake  <ebb9@byu.net>
14619
14620         maintainer-makefile: depend on all required helper scripts
14621         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14622         useless-if-before-free.
14623         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14624         version, rather than assuming gnulib checkout is available.
14625         Reported by Simen Josefsson.
14626
14627 2009-04-26  Bruno Haible  <bruno@clisp.org>
14628
14629         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14630         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14631         "../" or "..".
14632
14633 2009-04-26  Bruno Haible  <bruno@clisp.org>
14634
14635         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14636         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14637         AC_LIB_HAVE_LINKFLAGS.
14638
14639 2009-04-26  Bruno Haible  <bruno@clisp.org>
14640
14641         Simplify calling convention of u*_conv_from_encoding.
14642         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14643         u32_conv_from_encoding): Expect a resultbuf argument and return the
14644         result directly as a pointer.
14645         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14646         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14647         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14648         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14649         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14650         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14651         Update.
14652         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14653         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14654         * lib/vasnprintf.c (VASNPRINTF): Update.
14655         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14656         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14657         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14658         * NEWS: Mention the change.
14659
14660 2009-04-26  Bruno Haible  <bruno@clisp.org>
14661
14662         Simplify calling convention of u*_conv_to_encoding.
14663         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14664         u32_conv_to_encoding): Expect a resultbuf argument and return the
14665         result directly as a pointer.
14666         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14667         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14668         freeing scaled_offsets if mem_iconveha failed.
14669         * lib/unicase/u-casexfrm.h (FUNC): Update.
14670         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14671         * lib/vasnprintf.c (VASNPRINTF): Update.
14672         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14673         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14674         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14675         * NEWS: Mention the change.
14676
14677 2009-04-26  Bruno Haible  <bruno@clisp.org>
14678
14679         Avoid test failures on AIX and OSF/1.
14680         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14681         malloc(0).
14682         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14683         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14684         Likewise.
14685         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14686         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14687         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14688         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14689         * doc/posix-functions/malloc.texi: Document the portability problem
14690         related to malloc(0).
14691
14692 2009-04-26  Bruno Haible  <bruno@clisp.org>
14693
14694         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14695         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14696         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14697
14698 2009-04-25  Bruno Haible  <bruno@clisp.org>
14699
14700         Avoid link error when creating a namespace clean library.
14701         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14702         as macro with arguments if already defined as an alias.
14703         * lib/signbitf.c (gl_signbitf): Don't undefine.
14704         * lib/signbitd.c (gl_signbitd): Don't undefine.
14705         * lib/signbitl.c (gl_signbitl): Don't undefine.
14706
14707 2009-04-25  Jim Meyering  <meyering@redhat.com>
14708
14709         vc-list-files: fix another quoting bug
14710         * build-aux/vc-list-files: Avoid sed backslash expansion
14711         of pathological directory names.
14712
14713 2009-04-25  Eric Blake  <ebb9@byu.net>
14714
14715         vc-list-files: fix shell quoting error
14716         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14717         timestamp.
14718
14719 2009-04-25  Jim Meyering  <meyering@redhat.com>
14720
14721         vc-list-files: restore lost functionality with subdir argument
14722         * build-aux/vc-list-files: When given a non-"." sub-directory
14723         argument, substitute the $dir/ prefix back onto each resulting name.
14724         Otherwise, coreutils' root_tests check would fail.
14725
14726 2009-04-24  Eric Blake  <ebb9@byu.net>
14727
14728         vc-list-files: ignore git symlinks
14729         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14730         than ls-files, to ignore git symlinks.
14731
14732         maint.mk: import improvements from m4
14733         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14734         (move_if_change): Delete unused macro.
14735         (news-date-check, vc-diff-check): Support VPATH builds.
14736         (announcement): Likewise.  Split --bootstrap-tools list...
14737         (boostrap-tools): ...into separate list, which can be overridden
14738         in cfg.mk.
14739         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14740         requiring dependency on useless-if-before-free module.
14741         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14742         Support VPATH builds.
14743
14744 2009-04-24  Jim Meyering  <meyering@redhat.com>
14745
14746         maint.mk: remove coreutils-specific rules and variables
14747         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14748         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14749         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14750
14751         maint.mk: remove obsolete rule
14752         * top/maint.mk (rel-check): Remove rule.
14753         (WGET, WGETFLAGS): Remove now-unused variables.
14754
14755 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14756
14757         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14758         consistency.
14759
14760         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14761         '$(PATH_SEPARATOR)' instead of ':'.
14762
14763 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14764
14765         * lib/getopt1.c (main): Use 'const' for static array.
14766
14767 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14768
14769         * top/maint.mk: Sync with coreutils.
14770         * NEWS: Explain incompatibilities.
14771
14772 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14773             Bruno Haible  <bruno@clisp.org>
14774
14775         Fix cross-compilation results.
14776         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14777         statement, as third argument of AC_TRY_RUN.
14778         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14779         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14780         Likewise.
14781         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14782         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14783         Likewise.
14784         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14785         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14786         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14787
14788 2009-04-20  Bruno Haible  <bruno@clisp.org>
14789
14790         Avoid test failure on mingw.
14791         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14792
14793 2009-04-20  Bruno Haible  <bruno@clisp.org>
14794
14795         Avoid compilation error on mingw.
14796         * modules/localename-tests (Depends-on): Add locale.
14797
14798 2009-04-19  Bruno Haible  <bruno@clisp.org>
14799
14800         Support for building a shared library on Windows platforms.
14801         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14802         (main): Test the presence of UNINORM_NFC here.
14803         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14804         (main): Test the presence of UNINORM_NFD here.
14805         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14806         (main): Test the presence of UNINORM_NFKC here.
14807         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14808         (main): Test the presence of UNINORM_NFKD here.
14809
14810 2009-04-19  Bruno Haible  <bruno@clisp.org>
14811
14812         Avoid a compiler warning.
14813         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14814         Change type of variable 'sequence'.
14815
14816 2009-04-19  Bruno Haible  <bruno@clisp.org>
14817
14818         * modules/configmake (Makefile.am): When the contents of configmake.h
14819         does not change, arrange to preserve its modification time.
14820
14821 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14822
14823         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14824         gettext domain.
14825
14826 2009-04-16  Jim Meyering  <meyering@redhat.com>
14827
14828         useless-if-before-free: improve conversion code
14829         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14830         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14831
14832 2009-04-14  Bruno Haible  <bruno@clisp.org>
14833
14834         * modules/fcntl (Depends-on): Add extensions.
14835         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14836
14837 2009-04-12  Ben Pfaff  <blp@gnu.org>
14838
14839         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14840         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14841
14842 2009-03-20  Ben Pfaff  <blp@gnu.org>
14843
14844         Make rename replace existing destinations on Windows.
14845         * m4/rename.m4: Add test for Mingw.
14846         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14847         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14848         * doc/posix-functions/rename.texi: Document.
14849
14850 2009-04-10  Bruno Haible  <bruno@clisp.org>
14851
14852         New include file "iconveh.h".
14853         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14854         * lib/striconveh.h: Include it.
14855         (enum iconv_ilseq_handler): Remove definition.
14856         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14857         striconveh.h.
14858         * lib/striconveha.c: Include striconveh.h.
14859         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14860         * modules/striconveh (Files): Add lib/iconveh.h.
14861         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14862         lib/striconveh.h.
14863
14864 2009-04-10  Bruno Haible  <bruno@clisp.org>
14865
14866         * lib/uniconv.h: Update comment.
14867
14868 2009-04-10  Bruno Haible  <bruno@clisp.org>
14869
14870         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14871         always.
14872         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14873         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14874         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14875         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14876         "unistring-notinline.h", so that the function gets defined always.
14877         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14878         * lib/unistr/u8-uctomb.c: Likewise.
14879         * lib/unistr/u16-mbtouc.c: Likewise.
14880         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14881         * lib/unistr/u16-uctomb.c: Likewise.
14882         * lib/unistr/u32-mbtouc.c: Likewise.
14883         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14884         * lib/unistr/u32-uctomb.c: Likewise.
14885
14886 2009-04-10  Bruno Haible  <bruno@clisp.org>
14887
14888         Mark 'utime' obsolete.
14889         * modules/utime (Status, Notice): New sections.
14890         Suggested by Jim Meyering.
14891
14892         Fix cross-compile guess for utime test.
14893         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14894         autoconf.
14895         * doc/posix-functions/utime.texi: Give more precisions.
14896         Reported by Jan <ipif@ymail.com>.
14897
14898 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14899
14900         filevercmp: correct today's change
14901         * lib/filevercmp.c: Also handle coreutils' test inputs.
14902         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14903
14904         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14905         for reporting it.
14906         * lib/filevercmp.c: Special handle for "", "." and "..".
14907         * tests/test-filevercmp.c: Enlarge the set suite.
14908
14909 2009-04-07  Jim Meyering  <meyering@redhat.com>
14910
14911         useless-if-before-free: show how to remove braced useless free, too
14912         * build-aux/useless-if-before-free: still only in a comment, though.
14913
14914 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14915
14916         maint.mk: import changes to syntax-check macros from coreutils
14917         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14918         Use them in the relevant macros.
14919
14920 2009-04-06  Bruno Haible  <bruno@clisp.org>
14921
14922         Fix unportable use of bit-fields.
14923         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14924         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14925         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14926
14927 2009-04-06  Bruno Haible  <bruno@clisp.org>
14928
14929         Avoid test failures on AIX and OSF/1.
14930         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14931         that malloc(0) = NULL.
14932         * tests/unicase/test-u8-tolower.c (check): Likewise.
14933         * tests/unicase/test-u8-totitle.c (check): Likewise.
14934         * tests/unicase/test-u8-toupper.c (check): Likewise.
14935         * tests/unicase/test-u16-casefold.c (check): Likewise.
14936         * tests/unicase/test-u16-tolower.c (check): Likewise.
14937         * tests/unicase/test-u16-totitle.c (check): Likewise.
14938         * tests/unicase/test-u16-toupper.c (check): Likewise.
14939         * tests/unicase/test-u32-casefold.c (check): Likewise.
14940         * tests/unicase/test-u32-tolower.c (check): Likewise.
14941         * tests/unicase/test-u32-totitle.c (check): Likewise.
14942         * tests/unicase/test-u32-toupper.c (check): Likewise.
14943         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14944         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14945         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14946         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14947         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14948         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14949         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14950         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14951         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14952         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14953         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14954         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14955
14956 2009-04-05  Bruno Haible  <bruno@clisp.org>
14957
14958         Work around an autoconf limitation.
14959         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14960         comment line if it would be longer than 3 KB.
14961
14962 2009-04-05  Bruno Haible  <bruno@clisp.org>
14963
14964         Avoid test failure with libiconv-1.13.
14965         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14966         of the expected test results.
14967
14968 2009-04-05  Bruno Haible  <bruno@clisp.org>
14969
14970         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14971         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14972         that it should be installed.
14973
14974 2009-04-05  Bruno Haible  <bruno@clisp.org>
14975
14976         * gnulib-tool: New option --copy-file.
14977         (func_usage): Document it.
14978         (func_dest_tmpfilename): Moved out of func_import.
14979         (func_add_file, func_update_file): New functions, extracted from
14980         func_import.
14981         (func_import): Update.
14982
14983 2009-04-05  Karl Berry  <karl@gnu.org>
14984
14985         * README: prominently mention gnulib-tool.
14986         Rearrange sections so getting the code is near the top.
14987
14988 2009-04-05  Bruno Haible  <bruno@clisp.org>
14989
14990         * lib/unicase.h: Mention u*_cmp2.
14991         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14992         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14993         * lib/unicase/ulc-casecmp.c: Likewise.
14994         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14995         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14996         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14997         unistr/u8-cmp.
14998         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14999         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15000         unistr/u16-cmp.
15001         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15002         unistr/u32-cmp.
15003
15004         * lib/uninorm.h: Mention u*_cmp2.
15005         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15006         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15007         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15008         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15009         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15010         unistr/u8-cmp.
15011         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15012         unistr/u16-cmp.
15013         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15014         unistr/u32-cmp.
15015
15016         New module 'unistr/u32-cmp2'.
15017         * lib/unistr/u32-cmp2.c: New file.
15018         * modules/unistr/u32-cmp2: New file.
15019
15020         New module 'unistr/u16-cmp2'.
15021         * lib/unistr/u16-cmp2.c: New file.
15022         * modules/unistr/u16-cmp2: New file.
15023
15024         New module 'unistr/u8-cmp2'.
15025         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15026         * lib/unistr/u8-cmp2.c: New file.
15027         * lib/unistr/u-cmp2.h: New file.
15028         * modules/unistr/u8-cmp2: New file.
15029
15030 2009-04-05  Bruno Haible  <bruno@clisp.org>
15031
15032         * lib/unictype.h (uc_property_is_valid): New macro.
15033         * tests/unictype/test-pr_byname.c (main): Use it.
15034
15035         * lib/unistr.h: Doc fixes.
15036         * lib/uniconv.h: Doc fixes.
15037         * lib/unictype.h: Doc fixes.
15038
15039 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15040
15041         Port coreutils 7.2 to Solaris 8.
15042
15043         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15044         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15045         for Solaris 8.  This is a bit of a hack, as it means it's the
15046         caller's responsibility to add -lnsl if needed, but most likely it
15047         won't be needed since only getaddrinfo uses this and getaddrinfo
15048         isn't needed on Solaris 8.
15049
15050         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15051         problem to Solaris 8 encountered with coreutils 7.2, which
15052         resulted in a message "fnmatch.c:292: warning: passing argument 4
15053         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15054         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15055
15056 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15057
15058         * m4/ld-version-script.m4: Add FIXME comment.
15059
15060 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15061
15062         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15063         SOVERSION variable.
15064
15065 2009-04-02  Bruno Haible  <bruno@clisp.org>
15066
15067         * Makefile (info, html, dvi, pdf): Combine the rules.
15068         Suggested by Jim Meyering.
15069
15070 2009-04-01  Bruno Haible  <bruno@clisp.org>
15071
15072         * Makefile (info, html, dvi, pdf): New targets.
15073         Reported by Reuben Thomas <rrt@sc3d.org>.
15074
15075 2009-04-01  Bruno Haible  <bruno@clisp.org>
15076
15077         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15078         can be put into PATH.
15079         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15080
15081 2009-04-01  Bruno Haible  <bruno@clisp.org>
15082
15083         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15084
15085 2009-04-01  Bruno Haible  <bruno@clisp.org>
15086
15087         Rename module 'visibility'.
15088         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15089         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15090         * doc/gnulib.texi: Update.
15091         * MODULES.html.sh (Misc): Update.
15092         * NEWS: Mention the change.
15093
15094 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15095
15096         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15097         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15098         Eric Blake <ebb9@byu.net> for review.
15099         * MODULES.html.sh: Add lib-msvc-compat.
15100         * doc/gnulib.texi: Link to new section.
15101         * m4/ld-output-def.m4: New file.
15102         * doc/ld-output-def.texi: New file.
15103
15104 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15105
15106         Rename ld-version-script to lib-symbol-versions.  Suggested by
15107         Bruno Haible <bruno@clisp.org>.
15108         * modules/ld-version-script: Renamed to lib-symbol-versions.
15109         * doc/ld-version-script.texi: Fix module name.
15110         * MODULES.html.sh: Add lib-symbol-versions.
15111
15112 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15113
15114         * modules/u64-tests: New file.
15115         * tests/test-u64.c: New file.
15116
15117 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15118
15119         * MODULES.html.sh: Mention u64.
15120         * modules/u64: New module.
15121         * modules/crypto/sha512: Depend on u64 module instead of providing
15122         u64.h.
15123
15124 2009-03-27  Eric Blake  <ebb9@byu.net>
15125
15126         test-strerror: make debugging EAI_SYSTEM easier
15127         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15128         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15129         failure was EAI_SYSTEM.
15130
15131 2009-03-25  Bruno Haible  <bruno@clisp.org>
15132
15133         Fix a problem with --enable-relocatable on Solaris 7.
15134         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15135         since 2008-02-24.
15136
15137 2009-03-25  Eric Blake  <ebb9@byu.net>
15138
15139         test-sockets: avoid gcc warning
15140         * tests/test-sockets.c (main): Silence compiler warning.
15141
15142 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15143
15144         New modules nproc, pthread, contributed by Glen Lenker.
15145
15146         * MODULES.html.sh: Add pthread, nproc.
15147         * lib/nproc.c: New file.
15148         * lib/nproc.h: New file.
15149         * lib/pthread.in.h: New file.
15150         * m4/pthread.m4: New file.
15151         * modules/nproc: New file.
15152         * modules/pthread: New file.
15153
15154 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15155
15156         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15157         New variable.
15158
15159 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15160
15161         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15162         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15163         * tests/test-filevercmp.c: Add tests for backup suffixes.
15164
15165 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15166
15167         * modules/stdlib (Depends-on): Add stdint, needed when defining
15168         struct random_data on, for example, HP-UX 10.20.  Reported by
15169         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15170
15171 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15172
15173         * lib/readline.c (readline): Call fflush on stdout after printing
15174         prompt.
15175
15176 2009-03-20  Bruno Haible  <bruno@clisp.org>
15177
15178         Remove dependency from 'close' module to -lws2_32 on native Windows.
15179         * lib/close-hook.h: New file.
15180         * lib/close-hook.c: New file.
15181         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15182         w32sock.h.
15183         (_gl_close_fd_maybe_socket): Remove function.
15184         (rpl_close): Invoke execute_all_close_hooks instead of
15185         _gl_close_fd_maybe_socket.
15186         * lib/sockets.c: Include close-hook.h, w32sock.h.
15187         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15188         (close_sockets_hook): New variable.
15189         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15190         (gl_sockets_cleanup): Unregister it.
15191         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15192         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15193         * modules/close-hook: New file.
15194         * modules/close (Files): Remove lib/w32sock.h.
15195         (Depends-on): Add close-hook.
15196         (Link): Remove section.
15197         * modules/sockets (Files): Add lib/w32sock.h.
15198         (Depends-on): Add close-hook.
15199         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15200         invocation.
15201         * NEWS: Mention that LIB_CLOSE is gone.
15202
15203 2009-03-23  Eric Blake  <ebb9@byu.net>
15204
15205         signal-tests: test previous patch
15206         * tests/test-signal.c: New file.
15207         * modules/signal-tests: Likewise.
15208
15209         signal.h: always support 'volatile sig_atomic_t'
15210         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15211         (gl_SIGNAL_H_DEFAULTS): Add a default.
15212         * modules/signal (Makefile.am): Substitute if needed.
15213         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15214         users can blindly add volatile.
15215         * doc/posix-headers/signal.texi (signal.h): Document it.
15216         Reported by Matthew Woehlke.
15217
15218 2009-03-23  Jim Meyering  <meyering@redhat.com>
15219
15220         pathmax: PATH_MAX: use pathconf only when available
15221         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15222         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15223         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15224         This avoids a link failure in a PSP cross-compilation environment
15225         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15226
15227         * lib/vasnprintf.c (divide): Fix typo in comment.
15228
15229 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15230
15231         * gnulib-tool (func_filter_filelist): Fix comment.
15232
15233 2009-03-20  Bruno Haible  <bruno@clisp.org>
15234
15235         Make sockets.h self-contained.
15236         * lib/sockets.c: Include sockets.h first.
15237         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15238
15239 2009-03-19  Eric Blake  <ebb9@byu.net>
15240
15241         doc: mention more functions added in cygwin 1.7.0
15242         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15243         addition.
15244         * doc/posix-functions/log2f.texi: Likewise.
15245
15246 2009-03-19  Jim Meyering  <meyering@redhat.com>
15247
15248         fsusage: avoid syntax error due to statement-before-declaration
15249         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15250         after all declarations.  Reported by Matthew Woehlke in
15251         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15252
15253 2009-03-18  Eric Blake  <ebb9@byu.net>
15254
15255         build-aux/compile: sync from automake
15256         * build-aux/compile: New file, from automake.
15257         * config/srclist.txt: Mention build-aux/compile.
15258
15259 2009-03-17  Bruno Haible  <bruno@clisp.org>
15260
15261         * lib/git-merge-changelog.c: Fix typo in comment.
15262         Reported by Reuben Thomas <rrt@sc3d.org>.
15263
15264 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15265
15266         * m4/regex.m4: update and improve help for
15267         --without-included-regex.
15268
15269 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15270
15271         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15272         failure on missing include files.
15273
15274 2009-03-17  Eric Blake  <ebb9@byu.net>
15275
15276         doc: mention more functions added in cygwin 1.7.0
15277         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15278         addition.
15279         * doc/posix-functions/fwscanf.texi: Likewise.
15280         * doc/posix-functions/swprintf.texi: Likewise.
15281         * doc/posix-functions/swscanf.texi: Likewise.
15282         * doc/posix-functions/vfwprintf.texi: Likewise.
15283         * doc/posix-functions/vfwscanf.texi: Likewise.
15284         * doc/posix-functions/vswprintf.texi: Likewise.
15285         * doc/posix-functions/vswscanf.texi: Likewise.
15286         * doc/posix-functions/vwprintf.texi: Likewise.
15287         * doc/posix-functions/vwscanf.texi: Likewise.
15288         * doc/posix-functions/wcscasecmp.texi: Likewise.
15289         * doc/posix-functions/wcsdup.texi: Likewise.
15290         * doc/posix-functions/wcsftime.texi: Likewise.
15291         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15292         * doc/posix-functions/wprintf.texi: Likewise.
15293         * doc/posix-functions/wscanf.texi: Likewise.
15294         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15295
15296 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15297
15298         maint.mk: really add $(AM_MAKEFLAGS)
15299         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15300         was inadvertently omitted in the last commit.
15301         Spotted by Bruno Haible.
15302
15303         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15304         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15305         $(AM_MAKEFLAGS)' rather than plain `make'.
15306
15307         gnulib-tool: execute $MAKE not make
15308         * gnulib-tool: Default $MAKE to 'make'.
15309         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15310         than make.  Initialize $MAKE in the do-autobuild script.
15311
15312         gnulib-tool: use $MAKE not make in generated files
15313         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15314         make, in generated files.  Initialize $MAKE in the do-autobuild
15315         script.
15316
15317         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15318
15319         GNUmakefile: disable parallelism only for multiple, recursive targets
15320         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15321         additions in the Makefile.
15322         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15323         by Automake.
15324         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15325         are listed on the command line and at least one of them is
15326         listed in $(ALL_RECURSIVE_TARGETS).
15327
15328 2009-03-14  Bruno Haible  <bruno@clisp.org>
15329
15330         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15331         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15332         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15333         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15334         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15335         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15336         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15337         unistr/u8-uctomb.
15338         * modules/unistr/u8-strchr (Depends-on): Likewise.
15339         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15340         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15341         unistr/u16-uctomb.
15342         * modules/unistr/u16-strchr (Depends-on): Likewise.
15343         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15344
15345 2009-03-12  Bruno Haible  <bruno@clisp.org>
15346
15347         Work around select() bug on Interix 3.5.
15348         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15349         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15350         * m4/select.m4: New file.
15351         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15352         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15353         * modules/select (Files): Add m4/select.m4.
15354         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15355         * modules/nanosleep (Depends-on): Add select.
15356         * modules/poll (Depends-on): Likewise.
15357         * doc/posix-functions/select.texi: Mention the Interix bug.
15358         Reported by Markus Duft <mduft@gentoo.org>.
15359
15360         * lib/select.c: Renamed from lib/winsock-select.c.
15361         * modules/select (Files): Add lib/select.c, remove
15362         lib/winsock-select.c.
15363         (configure.ac): Update.
15364
15365 2009-03-12  Jim Meyering  <meyering@redhat.com>
15366
15367         avoid gcc warnings about unused macro definitions
15368         * lib/readtokens.c (STREQ): Remove unused definition.
15369         * lib/xmalloc.c (SIZE_MAX): Likewise.
15370         * lib/openat-die.c (N_): Likewise.
15371         * lib/mountlist.c (SIZE_MAX): Remove definition.
15372         Instead, include <stdint.h>.
15373         * lib/readutmp.c: Likewise.
15374         * modules/readutmp (Depends-on): Add stdint.
15375         * modules/mountlist (Depends-on): Add stdint.
15376         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15377
15378 2009-03-10  Bruno Haible  <bruno@clisp.org>
15379
15380         Tests for module 'mbmemcasecoll'.
15381         * modules/mbmemcasecoll-tests: New file.
15382         * tests/test-mbmemcasecoll1.sh: New file.
15383         * tests/test-mbmemcasecoll2.sh: New file.
15384         * tests/test-mbmemcasecoll3.sh: New file.
15385         * tests/test-mbmemcasecoll.c: New file.
15386
15387         New module 'mbmemcasecoll'.
15388         * lib/mbmemcasecoll.h: New file.
15389         * lib/mbmemcasecoll.c: New file.
15390         * modules/mbmemcasecoll: New file.
15391
15392         * tests/test-mbmemcasecmp.h: New file, extracted from
15393         tests/test-mbmemcasecmp.c.
15394         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15395         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15396         (main): Update.
15397         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15398
15399 2009-03-09  Bruno Haible  <bruno@clisp.org>
15400
15401         Tests for module 'mbmemcasecmp'.
15402         * modules/mbmemcasecmp-tests: New file.
15403         * tests/test-mbmemcasecmp1.sh: New file.
15404         * tests/test-mbmemcasecmp2.sh: New file.
15405         * tests/test-mbmemcasecmp3.sh: New file.
15406         * tests/test-mbmemcasecmp.c: New file.
15407
15408         New module 'mbmemcasecmp'.
15409         * lib/mbmemcasecmp.h: New file.
15410         * lib/mbmemcasecmp.c: New file.
15411         * modules/mbmemcasecmp: New file.
15412
15413 2009-03-09  Bruno Haible  <bruno@clisp.org>
15414
15415         Tests for module 'unicase/ulc-casecoll'.
15416         * modules/unicase/ulc-casecoll-tests: New file.
15417         * tests/unicase/test-ulc-casecoll1.sh: New file.
15418         * tests/unicase/test-ulc-casecoll2.sh: New file.
15419         * tests/unicase/test-ulc-casecoll.c: New file.
15420
15421         New module 'unicase/ulc-casecoll'.
15422         * lib/unicase.h (ulc_casecoll): New declaration.
15423         * lib/unicase/ulc-casecoll.c: New file.
15424         * modules/unicase/ulc-casecoll: New file.
15425
15426         New module 'unicase/ulc-casexfrm'.
15427         * lib/unicase.h (ulc_casexfrm): New declaration.
15428         * lib/unicase/ulc-casexfrm.c: New file.
15429         * modules/unicase/ulc-casexfrm: New file.
15430
15431 2009-03-09  Bruno Haible  <bruno@clisp.org>
15432
15433         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15434         invocations.
15435
15436         * m4/mbscasecmp.m4: Remove file.
15437         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15438         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15439
15440         * m4/mbscasestr.m4: Remove file.
15441         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15442         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15443
15444         * m4/mbschr.m4: Remove file.
15445         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15446         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15447
15448         * m4/mbscspn.m4: Remove file.
15449         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15450         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15451
15452         * m4/mbslen.m4: Remove file.
15453         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15454         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15455
15456         * m4/mbsncasecmp.m4: Remove file.
15457         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15458         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15459
15460         * m4/mbsnlen.m4: Remove file.
15461         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15462         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15463
15464         * m4/mbspbrk.m4: Remove file.
15465         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15466         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15467
15468         * m4/mbspcasecmp.m4: Remove file.
15469         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15470         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15471
15472         * m4/mbsrchr.m4: Remove file.
15473         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15474         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15475
15476         * m4/mbssep.m4: Remove file.
15477         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15478         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15479
15480         * m4/mbsspn.m4: Remove file.
15481         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15482         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15483
15484         * m4/mbsstr.m4: Remove file.
15485         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15486         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15487
15488         * m4/mbstok_r.m4: Remove file.
15489         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15490         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15491
15492         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15493
15494         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15495         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15496
15497         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15498
15499 2009-03-08  Bruno Haible  <bruno@clisp.org>
15500
15501         Tests for module 'unicase/ulc-casecmp'.
15502         * modules/unicase/ulc-casecmp-tests: New file.
15503         * tests/unicase/test-ulc-casecmp1.sh: New file.
15504         * tests/unicase/test-ulc-casecmp2.sh: New file.
15505         * tests/unicase/test-ulc-casecmp.c: New file.
15506
15507         New module 'unicase/ulc-casecmp'.
15508         * lib/unicase.h (ulc_casecmp): New declaration.
15509         * lib/unicase/ulc-casecmp.c: New file.
15510         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15511         'const SRC_UNIT *'.
15512         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15513         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15514         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15515         * modules/unicase/ulc-casecmp: New file.
15516
15517         Tests for module 'unicase/u32-is-cased'.
15518         * modules/unicase/u32-is-cased-tests: New file.
15519         * tests/unicase/test-u32-is-cased.c: New file.
15520
15521         Tests for module 'unicase/u16-is-cased'.
15522         * modules/unicase/u16-is-cased-tests: New file.
15523         * tests/unicase/test-u16-is-cased.c: New file.
15524
15525         Tests for module 'unicase/u8-is-cased'.
15526         * modules/unicase/u8-is-cased-tests: New file.
15527         * tests/unicase/test-u8-is-cased.c: New file.
15528         * tests/unicase/test-is-cased.h: New file.
15529
15530         New module 'unicase/u32-is-cased'.
15531         * lib/unicase/u32-is-cased.c: New file.
15532         * modules/unicase/u32-is-cased: New file.
15533
15534         New module 'unicase/u16-is-cased'.
15535         * lib/unicase/u16-is-cased.c: New file.
15536         * modules/unicase/u16-is-cased: New file.
15537
15538         New module 'unicase/u8-is-cased'.
15539         * lib/unicase/u8-is-cased.c: New file.
15540         * lib/unicase/u-is-cased.h: New file.
15541         * modules/unicase/u8-is-cased: New file.
15542
15543         Tests for module 'unicase/u32-is-casefolded'.
15544         * modules/unicase/u32-is-casefolded-tests: New file.
15545         * tests/unicase/test-u32-is-casefolded.c: New file.
15546
15547         Tests for module 'unicase/u16-is-casefolded'.
15548         * modules/unicase/u16-is-casefolded-tests: New file.
15549         * tests/unicase/test-u16-is-casefolded.c: New file.
15550
15551         Tests for module 'unicase/u8-is-casefolded'.
15552         * modules/unicase/u8-is-casefolded-tests: New file.
15553         * tests/unicase/test-u8-is-casefolded.c: New file.
15554         * tests/unicase/test-is-casefolded.h: New file.
15555
15556         New module 'unicase/u32-is-casefolded'.
15557         * lib/unicase/u32-is-casefolded.c: New file.
15558         * modules/unicase/u32-is-casefolded: New file.
15559
15560         New module 'unicase/u16-is-casefolded'.
15561         * lib/unicase/u16-is-casefolded.c: New file.
15562         * modules/unicase/u16-is-casefolded: New file.
15563
15564         New module 'unicase/u8-is-casefolded'.
15565         * lib/unicase/u8-is-casefolded.c: New file.
15566         * modules/unicase/u8-is-casefolded: New file.
15567
15568         Tests for module 'unicase/u32-is-titlecase'.
15569         * modules/unicase/u32-is-titlecase-tests: New file.
15570         * tests/unicase/test-u32-is-titlecase.c: New file.
15571
15572         Tests for module 'unicase/u16-is-titlecase'.
15573         * modules/unicase/u16-is-titlecase-tests: New file.
15574         * tests/unicase/test-u16-is-titlecase.c: New file.
15575
15576         Tests for module 'unicase/u8-is-titlecase'.
15577         * modules/unicase/u8-is-titlecase-tests: New file.
15578         * tests/unicase/test-u8-is-titlecase.c: New file.
15579         * tests/unicase/test-is-titlecase.h: New file.
15580
15581         New module 'unicase/u32-is-titlecase'.
15582         * lib/unicase/u32-is-titlecase.c: New file.
15583         * modules/unicase/u32-is-titlecase: New file.
15584
15585         New module 'unicase/u16-is-titlecase'.
15586         * lib/unicase/u16-is-titlecase.c: New file.
15587         * modules/unicase/u16-is-titlecase: New file.
15588
15589         New module 'unicase/u8-is-titlecase'.
15590         * lib/unicase/u8-is-titlecase.c: New file.
15591         * modules/unicase/u8-is-titlecase: New file.
15592
15593         Tests for module 'unicase/u32-is-lowercase'.
15594         * modules/unicase/u32-is-lowercase-tests: New file.
15595         * tests/unicase/test-u32-is-lowercase.c: New file.
15596
15597         Tests for module 'unicase/u16-is-lowercase'.
15598         * modules/unicase/u16-is-lowercase-tests: New file.
15599         * tests/unicase/test-u16-is-lowercase.c: New file.
15600
15601         Tests for module 'unicase/u8-is-lowercase'.
15602         * modules/unicase/u8-is-lowercase-tests: New file.
15603         * tests/unicase/test-u8-is-lowercase.c: New file.
15604         * tests/unicase/test-is-lowercase.h: New file.
15605
15606         New module 'unicase/u32-is-lowercase'.
15607         * lib/unicase/u32-is-lowercase.c: New file.
15608         * modules/unicase/u32-is-lowercase: New file.
15609
15610         New module 'unicase/u16-is-lowercase'.
15611         * lib/unicase/u16-is-lowercase.c: New file.
15612         * modules/unicase/u16-is-lowercase: New file.
15613
15614         New module 'unicase/u8-is-lowercase'.
15615         * lib/unicase/u8-is-lowercase.c: New file.
15616         * modules/unicase/u8-is-lowercase: New file.
15617
15618         Tests for module 'unicase/u32-is-uppercase'.
15619         * modules/unicase/u32-is-uppercase-tests: New file.
15620         * tests/unicase/test-u32-is-uppercase.c: New file.
15621
15622         Tests for module 'unicase/u16-is-uppercase'.
15623         * modules/unicase/u16-is-uppercase-tests: New file.
15624         * tests/unicase/test-u16-is-uppercase.c: New file.
15625
15626         Tests for module 'unicase/u8-is-uppercase'.
15627         * modules/unicase/u8-is-uppercase-tests: New file.
15628         * tests/unicase/test-u8-is-uppercase.c: New file.
15629         * tests/unicase/test-is-uppercase.h: New file.
15630
15631         New module 'unicase/u32-is-uppercase'.
15632         * lib/unicase/u32-is-uppercase.c: New file.
15633         * modules/unicase/u32-is-uppercase: New file.
15634
15635         New module 'unicase/u16-is-uppercase'.
15636         * lib/unicase/u16-is-uppercase.c: New file.
15637         * modules/unicase/u16-is-uppercase: New file.
15638
15639         New module 'unicase/u8-is-uppercase'.
15640         * lib/unicase/u8-is-uppercase.c: New file.
15641         * modules/unicase/u8-is-uppercase: New file.
15642
15643         New module 'unicase/u32-is-invariant'.
15644         * lib/unicase/u32-is-invariant.c: New file.
15645         * modules/unicase/u32-is-invariant: New file.
15646
15647         New module 'unicase/u16-is-invariant'.
15648         * lib/unicase/u16-is-invariant.c: New file.
15649         * modules/unicase/u16-is-invariant: New file.
15650
15651         New module 'unicase/u8-is-invariant'.
15652         * lib/unicase/u8-is-invariant.c: New file.
15653         * lib/unicase/invariant.h: New file.
15654         * lib/unicase/u-is-invariant.h: New file.
15655         * modules/unicase/u8-is-invariant: New file.
15656
15657         Tests for module 'unicase/u32-casecoll'.
15658         * modules/unicase/u32-casecoll-tests: New file.
15659         * tests/unicase/test-u32-casecoll.c: New file.
15660
15661         Tests for module 'unicase/u16-casecoll'.
15662         * modules/unicase/u16-casecoll-tests: New file.
15663         * tests/unicase/test-u16-casecoll.c: New file.
15664
15665         Tests for module 'unicase/u8-casecoll'.
15666         * modules/unicase/u8-casecoll-tests: New file.
15667         * tests/unicase/test-u8-casecoll.c: New file.
15668
15669         New module 'unicase/u32-casecoll'.
15670         * lib/unicase/u32-casecoll.c: New file.
15671         * modules/unicase/u32-casecoll: New file.
15672
15673         New module 'unicase/u16-casecoll'.
15674         * lib/unicase/u16-casecoll.c: New file.
15675         * modules/unicase/u16-casecoll: New file.
15676
15677         New module 'unicase/u8-casecoll'.
15678         * lib/unicase/u8-casecoll.c: New file.
15679         * lib/unicase/u-casecoll.h: New file.
15680         * modules/unicase/u8-casecoll: New file.
15681
15682         New module 'unicase/u32-casexfrm'.
15683         * lib/unicase/u32-casexfrm.c: New file.
15684         * modules/unicase/u32-casexfrm: New file.
15685
15686         New module 'unicase/u16-casexfrm'.
15687         * lib/unicase/u16-casexfrm.c: New file.
15688         * modules/unicase/u16-casexfrm: New file.
15689
15690         New module 'unicase/u8-casexfrm'.
15691         * lib/unicase/u8-casexfrm.c: New file.
15692         * lib/unicase/u-casexfrm.h: New file.
15693         * modules/unicase/u8-casexfrm: New file.
15694
15695         Tests for module 'unicase/u32-casecmp'.
15696         * modules/unicase/u32-casecmp-tests: New file.
15697         * tests/unicase/test-u32-casecmp.c: New file.
15698
15699         Tests for module 'unicase/u16-casecmp'.
15700         * modules/unicase/u16-casecmp-tests: New file.
15701         * tests/unicase/test-u16-casecmp.c: New file.
15702
15703         Tests for module 'unicase/u8-casecmp'.
15704         * modules/unicase/u8-casecmp-tests: New file.
15705         * tests/unicase/test-u8-casecmp.c: New file.
15706         * tests/unicase/test-casecmp.h: New file.
15707
15708         New module 'unicase/u32-casecmp'.
15709         * lib/unicase/u32-casecmp.c: New file.
15710         * modules/unicase/u32-casecmp: New file.
15711
15712         New module 'unicase/u16-casecmp'.
15713         * lib/unicase/u16-casecmp.c: New file.
15714         * modules/unicase/u16-casecmp: New file.
15715
15716         New module 'unicase/u8-casecmp'.
15717         * lib/unicase/u8-casecmp.c: New file.
15718         * lib/unicase/u-casecmp.h: New file.
15719         * modules/unicase/u8-casecmp: New file.
15720
15721         Tests for module 'unicase/u32-casefold'.
15722         * modules/unicase/u32-casefold-tests: New file.
15723         * tests/unicase/test-u32-casefold.c: New file.
15724
15725         Tests for module 'unicase/u16-casefold'.
15726         * modules/unicase/u16-casefold-tests: New file.
15727         * tests/unicase/test-u16-casefold.c: New file.
15728
15729         Tests for module 'unicase/u8-casefold'.
15730         * modules/unicase/u8-casefold-tests: New file.
15731         * tests/unicase/test-u8-casefold.c: New file.
15732
15733         New module 'unicase/u32-casefold'.
15734         * lib/unicase/u32-casefold.c: New file.
15735         * modules/unicase/u32-casefold: New file.
15736
15737         New module 'unicase/u16-casefold'.
15738         * lib/unicase/u16-casefold.c: New file.
15739         * modules/unicase/u16-casefold: New file.
15740
15741         New module 'unicase/u8-casefold'.
15742         * lib/unicase/u8-casefold.c: New file.
15743         * lib/unicase/u-casefold.h: New file.
15744         * modules/unicase/u8-casefold: New file.
15745
15746         New module 'unicase/tocasefold'.
15747         * lib/unicase/casefold.h: New file.
15748         * lib/unicase/tocasefold.c: New file.
15749         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15750         * modules/unicase/tocasefold: New file.
15751
15752         Tests for module 'unicase/u32-totitle'.
15753         * modules/unicase/u32-totitle-tests: New file.
15754         * tests/unicase/test-u32-totitle.c: New file.
15755
15756         Tests for module 'unicase/u16-totitle'.
15757         * modules/unicase/u16-totitle-tests: New file.
15758         * tests/unicase/test-u16-totitle.c: New file.
15759
15760         Tests for module 'unicase/u8-totitle'.
15761         * modules/unicase/u8-totitle-tests: New file.
15762         * tests/unicase/test-u8-totitle.c: New file.
15763
15764         New module 'unicase/u32-totitle'.
15765         * lib/unicase/u32-totitle.c: New file.
15766         * modules/unicase/u32-totitle: New file.
15767
15768         New module 'unicase/u16-totitle'.
15769         * lib/unicase/u16-totitle.c: New file.
15770         * modules/unicase/u16-totitle: New file.
15771
15772         New module 'unicase/u8-totitle'.
15773         * lib/unicase/u8-totitle.c: New file.
15774         * lib/unicase/u-totitle.h: New file.
15775         * modules/unicase/u8-totitle: New file.
15776
15777         Tests for module 'unicase/u32-tolower'.
15778         * modules/unicase/u32-tolower-tests: New file.
15779         * tests/unicase/test-u32-tolower.c: New file.
15780
15781         Tests for module 'unicase/u16-tolower'.
15782         * modules/unicase/u16-tolower-tests: New file.
15783         * tests/unicase/test-u16-tolower.c: New file.
15784
15785         Tests for module 'unicase/u8-tolower'.
15786         * modules/unicase/u8-tolower-tests: New file.
15787         * tests/unicase/test-u8-tolower.c: New file.
15788
15789         New module 'unicase/u32-tolower'.
15790         * lib/unicase/u32-tolower.c: New file.
15791         * modules/unicase/u32-tolower: New file.
15792
15793         New module 'unicase/u16-tolower'.
15794         * lib/unicase/u16-tolower.c: New file.
15795         * modules/unicase/u16-tolower: New file.
15796
15797         New module 'unicase/u8-tolower'.
15798         * lib/unicase/u8-tolower.c: New file.
15799         * modules/unicase/u8-tolower: New file.
15800
15801         Tests for module 'unicase/u32-toupper'.
15802         * modules/unicase/u32-toupper-tests: New file.
15803         * tests/unicase/test-u32-toupper.c: New file.
15804
15805         Tests for module 'unicase/u16-toupper'.
15806         * modules/unicase/u16-toupper-tests: New file.
15807         * tests/unicase/test-u16-toupper.c: New file.
15808
15809         Tests for module 'unicase/u8-toupper'.
15810         * modules/unicase/u8-toupper-tests: New file.
15811         * tests/unicase/test-u8-toupper.c: New file.
15812
15813         New module 'unicase/u32-toupper'.
15814         * lib/unicase/u32-toupper.c: New file.
15815         * modules/unicase/u32-toupper: New file.
15816
15817         New module 'unicase/u16-toupper'.
15818         * lib/unicase/u16-toupper.c: New file.
15819         * modules/unicase/u16-toupper: New file.
15820
15821         New module 'unicase/u8-toupper'.
15822         * lib/unicase/u8-toupper.c: New file.
15823         * modules/unicase/u8-toupper: New file.
15824
15825         New module 'unicase/u32-casemap'.
15826         * lib/unicase/u32-casemap.c: New file.
15827         * modules/unicase/u32-casemap: New file.
15828
15829         New module 'unicase/u16-casemap'.
15830         * lib/unicase/u16-casemap.c: New file.
15831         * modules/unicase/u16-casemap: New file.
15832
15833         New module 'unicase/u8-casemap'.
15834         * lib/unicase/unicasemap.h: New file.
15835         * lib/unicase/u8-casemap.c: New file.
15836         * lib/unicase/u-casemap.h: New file.
15837         * modules/unicase/u8-casemap: New file.
15838
15839         New module 'unicase/special-casing'.
15840         * lib/unicase/special-casing.h: New file.
15841         * lib/unicase/special-casing.c: New file.
15842         * lib/unicase/special-casing-table.gperf: New file, generated by
15843         gen-uni-tables.c.
15844         * modules/unicase/special-casing: New file.
15845
15846         Tests for module 'unicase/locale-language'.
15847         * modules/unicase/locale-language-tests: New file.
15848         * tests/unicase/test-locale-language.sh: New file.
15849         * tests/unicase/test-locale-language.c: New file.
15850
15851         New module 'unicase/locale-language'.
15852         * lib/unicase/locale-language.c: New file.
15853         * lib/unicase/locale-languages.gperf: New file.
15854         * modules/unicase/locale-language: New file.
15855
15856         Generate more tables for case conversion and case folding.
15857         * lib/gen-uni-tables.c (SCC_*): New enum items.
15858         (struct special_casing_rule): New type.
15859         (casing_rules, num_casing_rules, allocated_casing_rules): New
15860         variables.
15861         (add_casing_rule, fill_casing_rules): New functions.
15862         (struct casefold_rule): New type.
15863         (casefolding_rules, num_casefolding_rules,
15864         allocated_casefolding_rules): New variables.
15865         (fill_casefolding_rules): New function.
15866         (unicode_casefold): New variable.
15867         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15868         sort_casing_rules, output_casing_rules): New functions.
15869         (main): Accept to more arguments: SpecialCasing.txt and
15870         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15871         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15872         Output mapping for casefolding.
15873
15874         * lib/unicase.h: Include stdbool.h, uninorm.h.
15875         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15876         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15877         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15878         arguments.
15879         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15880         resultp arguments.
15881         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15882         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15883         resultp arguments.
15884         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15885         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15886         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15887         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15888         declarations.
15889         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15890
15891 2009-03-08  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15894         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15895         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15896         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15897
15898 2009-03-07  Bruno Haible  <bruno@clisp.org>
15899
15900         Adjust u*_normcmp, u*_normcoll API.
15901         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15902         u16_normcoll, u32_normcoll): Change failure conventions.
15903         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15904         errno and return -1.
15905         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15906
15907 2009-03-07  Bruno Haible  <bruno@clisp.org>
15908
15909         Tests for module 'uninorm/u32-normcoll'.
15910         * modules/uninorm/u32-normcoll-tests: New file.
15911         * tests/uninorm/test-u32-normcoll.c: New file.
15912
15913         Tests for module 'uninorm/u16-normcoll'.
15914         * modules/uninorm/u16-normcoll-tests: New file.
15915         * tests/uninorm/test-u16-normcoll.c: New file.
15916
15917         Tests for module 'uninorm/u8-normcoll'.
15918         * modules/uninorm/u8-normcoll-tests: New file.
15919         * tests/uninorm/test-u8-normcoll.c: New file.
15920
15921 2009-03-07  Bruno Haible  <bruno@clisp.org>
15922
15923         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15924         tests/uninorm/test-u32-normcmp.c.
15925         * tests/uninorm/test-u32-normcmp.c: Include it.
15926         (test_nonascii): New function, extracted from main. Add some more
15927         tests.
15928         (main): Invoke test_ascii and test_nonascii.
15929         * modules/uninorm/u32-normcmp-tests (Files): Add
15930         tests/uninorm/test-u32-normcmp.h.
15931         (Depends-on): Remove uninorm/u32-normcmp.
15932
15933         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15934         tests/uninorm/test-u16-normcmp.c.
15935         * tests/uninorm/test-u16-normcmp.c: Include it.
15936         (test_nonascii): New function, extracted from main. Add some more
15937         tests.
15938         (main): Invoke test_ascii and test_nonascii.
15939         * modules/uninorm/u16-normcmp-tests (Files): Add
15940         tests/uninorm/test-u16-normcmp.h.
15941         (Depends-on): Remove uninorm/u16-normcmp.
15942
15943         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15944         tests/uninorm/test-u8-normcmp.c.
15945         * tests/uninorm/test-u8-normcmp.c: Include it.
15946         (test_nonascii): New function, extracted from main. Add some more
15947         tests.
15948         (main): Invoke test_ascii and test_nonascii.
15949         * modules/uninorm/u8-normcmp-tests (Files): Add
15950         tests/uninorm/test-u8-normcmp.h.
15951         (Depends-on): Remove uninorm/u8-normcmp.
15952
15953 2009-03-07  Bruno Haible  <bruno@clisp.org>
15954
15955         New module 'uninorm/u32-normcoll'.
15956         * lib/uninorm/u32-normcoll.c: New file.
15957         * modules/uninorm/u32-normcoll: New file.
15958
15959         New module 'uninorm/u16-normcoll'.
15960         * lib/uninorm/u16-normcoll.c: New file.
15961         * modules/uninorm/u16-normcoll: New file.
15962
15963         New module 'uninorm/u8-normcoll'.
15964         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15965         declarations.
15966         * lib/uninorm/u8-normcoll.c: New file.
15967         * lib/uninorm/u-normcoll.h: New file.
15968         * modules/uninorm/u8-normcoll: New file.
15969
15970         New module 'uninorm/u32-normxfrm'.
15971         * lib/uninorm/u32-normxfrm.c: New file.
15972         * modules/uninorm/u32-normxfrm: New file.
15973
15974         New module 'uninorm/u16-normxfrm'.
15975         * lib/uninorm/u16-normxfrm.c: New file.
15976         * modules/uninorm/u16-normxfrm: New file.
15977
15978         New module 'uninorm/u8-normxfrm'.
15979         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15980         declarations.
15981         * lib/uninorm/u8-normxfrm.c: New file.
15982         * lib/uninorm/u-normxfrm.h: New file.
15983         * modules/uninorm/u8-normxfrm: New file.
15984
15985 2009-03-07  Bruno Haible  <bruno@clisp.org>
15986
15987         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15988         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15989         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15990
15991 2009-03-07  Bruno Haible  <bruno@clisp.org>
15992
15993         New module 'memxfrm'.
15994         * lib/memxfrm.h: New file.
15995         * lib/memxfrm.c: New file.
15996         * modules/memxfrm: New file.
15997
15998 2009-03-07  Bruno Haible  <bruno@clisp.org>
15999
16000         New module 'memcmp2'.
16001         * lib/memcmp2.h: New file.
16002         * lib/memcmp2.c: New file.
16003         * modules/memcmp2: New file.
16004
16005 2009-03-07  Bruno Haible  <bruno@clisp.org>
16006
16007         Tests for module 'uninorm/decomposing-form'.
16008         * modules/uninorm/decomposing-form-tests: New file.
16009         * tests/uninorm/test-decomposing-form.c: New file.
16010
16011         New module 'uninorm/decomposing-form'.
16012         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16013         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16014         Add 'decomposing_variant' field.
16015         * lib/uninorm/decomposing-form.c: New file.
16016         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16017         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16018         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16019         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16020         * modules/uninorm/decomposing-form: New file.
16021         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16022         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16023
16024 2009-03-07  Bruno Haible  <bruno@clisp.org>
16025
16026         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16027         strings.
16028
16029 2009-03-06  Bruno Haible  <bruno@clisp.org>
16030
16031         Tests for module 'uninorm/u32-normcmp'.
16032         * tests/uninorm/test-u32-normcmp.c: New file.
16033         * modules/uninorm/u32-normcmp-tests: New file.
16034
16035         Tests for module 'uninorm/u16-normcmp'.
16036         * tests/uninorm/test-u16-normcmp.c: New file.
16037         * modules/uninorm/u16-normcmp-tests: New file.
16038
16039         Tests for module 'uninorm/u8-normcmp'.
16040         * tests/uninorm/test-u8-normcmp.c: New file.
16041         * modules/uninorm/u8-normcmp-tests: New file.
16042
16043         New module 'uninorm/u32-normcmp'.
16044         * lib/uninorm/u32-normcmp.c: New file.
16045         * modules/uninorm/u32-normcmp: New file.
16046
16047         New module 'uninorm/u16-normcmp'.
16048         * lib/uninorm/u16-normcmp.c: New file.
16049         * modules/uninorm/u16-normcmp: New file.
16050
16051         New module 'uninorm/u8-normcmp'.
16052         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16053         declarations.
16054         * lib/uninorm/u8-normcmp.c: New file.
16055         * lib/uninorm/u-normcmp.h: New file.
16056         * modules/uninorm/u8-normcmp: New file.
16057
16058 2009-03-06  Bruno Haible  <bruno@clisp.org>
16059
16060         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16061         Reported by Eric Blake.
16062
16063 2009-03-06  Eric Blake  <ebb9@byu.net>
16064             Bruno Haible  <bruno@clisp.org>
16065
16066         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16067         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16068         condition.
16069         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16070         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16071         condition.
16072         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16073
16074 2009-03-06  Eric Blake  <ebb9@byu.net>
16075
16076         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16077         to avoid compiler warnings.
16078         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16079
16080 2009-03-05  Bruno Haible  <bruno@clisp.org>
16081
16082         * tests/test-ftell.c (main): Disable test beyond end of file on
16083         FreeMiNT.
16084         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16085
16086 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16087
16088         * lib/filevercmp.c: Move hidden files up in ordering.
16089         * tests/test-filevercmp.c: Add tests for hidden files.
16090
16091 2009-03-04  Bruno Haible  <bruno@clisp.org>
16092
16093         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16094         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16095         AM_CFLAGS.
16096         Reported by Simon Josefsson.
16097
16098 2009-03-03  Bruno Haible  <bruno@clisp.org>
16099
16100         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16101         Reported by Simon Josefsson.
16102
16103         * doc/ld-version-script.texi: Update node reference.
16104
16105 2009-03-03  Bruno Haible  <bruno@clisp.org>
16106
16107         * modules/visibility (License): Change to 'unlimited'.
16108         Suggested by Simon Josefsson.
16109
16110 2009-03-03  Jim Meyering  <meyering@redhat.com>
16111
16112         unlinkdir: cannot_unlink_dir may modify process state
16113         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16114         it's neither thread-safe nor appropriate for use in a library.
16115
16116 2009-03-03  Eric Blake  <ebb9@byu.net>
16117
16118         test-closein: silence test under Darwin
16119         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16120         care if it dies from EPIPE or EBADF.
16121
16122 2009-03-03  Bruno Haible  <bruno@clisp.org>
16123
16124         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16125         earlier.
16126         * doc/visibility.texi: Fix @node and @section.
16127
16128 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16129
16130         * doc/gnulib.texi: Link to sections for ld version script and
16131         visibility.
16132         * doc/visibility.texi: Add @node and @section.
16133         * modules/ld-version-script: New module.
16134         * m4/ld-version-script.m4: New file.
16135         * doc/ld-version-script.texi: New file.
16136
16137 2009-03-02  David Lutterkort  <lutter@redhat.com>
16138
16139         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16141
16142 2009-03-02  Bruno Haible  <bruno@clisp.org>
16143
16144         * doc/visibility.texi: Mention libtool's -export-symbols option.
16145
16146 2009-03-02  Jim Meyering  <meyering@redhat.com>
16147
16148         announce-gen: new option: --no-print-checksums
16149         * build-aux/announce-gen (usage): Describe it.
16150         (print_checksums): Print a newline here, not in the [*] footnote.
16151         (main): Honor it.
16152
16153 2009-03-01  Bruno Haible  <bruno@clisp.org>
16154
16155         Use socklen_t in the native Windows replacements prototypes.
16156         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16157         instead of 'int'.
16158         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16159         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16160         * modules/getsockopt (Depends-on): Add socklen.
16161         * modules/setsockopt (Depends-on): Add socklen.
16162
16163 2009-03-01  Bruno Haible  <bruno@clisp.org>
16164
16165         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16166         least 4.2.
16167
16168 2009-03-01  Eric Blake  <ebb9@byu.net>
16169             Bruno Haible  <bruno@clisp.org>
16170
16171         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16172         error messages.
16173         * lib/wait-process.c (wait_subprocess): Omit error message about
16174         deadly signal sent to the child of termsigp != NULL.
16175
16176 2009-03-01  Eric Blake  <ebb9@byu.net>
16177
16178         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16179
16180 2009-03-01  Bruno Haible  <bruno@clisp.org>
16181
16182         Avoid a gcc warning.
16183         * tests/test-sched.c (b): Make global.
16184         Reported by Eric Blake.
16185
16186 2009-01-19  Martin Lambers  <marlam@marlam.de>
16187
16188         Provide POSIX semantics for socket timeout options on W32.
16189         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16190         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16191         * modules/setsockopt: Depend on sys_time module for struct timeval.
16192         * modules/getsockopt: Depend on sys_time module for struct timeval.
16193
16194 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16195
16196         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16197         __USE_GNU, for consistency with netdb.in.h.
16198         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16199
16200 2009-03-01  Bruno Haible  <bruno@clisp.org>
16201
16202         More support for FreeMiNT.
16203         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16204         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16205
16206 2009-03-01  Bruno Haible  <bruno@clisp.org>
16207
16208         More support for FreeMiNT.
16209         * lib/fpurge.c (fpurge): Correct last commit.
16210         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16211
16212 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16213
16214         Fix unportable awk script in vc-list-files.
16215         * build-aux/vc-list-files: In the replacement awk script, use
16216         substr with a second argument of 1, not zero.
16217         Report by Simon Josefsson.
16218
16219 2009-02-28  Bruno Haible  <bruno@clisp.org>
16220
16221         More support for FreeMiNT.
16222         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16223         to FreeMiNT today.
16224         * lib/fwriting.c (fwriting): Likewise.
16225         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16226
16227 2009-02-28  Bruno Haible  <bruno@clisp.org>
16228
16229         * tests/test-freadseek.c (main): Disable test beyond end of file on
16230         FreeMiNT.
16231         * tests/test-ftello.c (main): Likewise.
16232         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16233
16234 2009-02-28  Bruno Haible  <bruno@clisp.org>
16235
16236         Add tentative support for FreeMiNT.
16237         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16238         * lib/fpurge.c (fpurge): Likewise.
16239         * lib/freadable.c (freadable): Likewise.
16240         * lib/freading.c (freading): Likewise.
16241         * lib/freadptr.c (freadptr): Likewise.
16242         * lib/freadseek.c (freadptrinc): Likewise.
16243         * lib/fseeko.c (rpl_fseeko): Likewise.
16244         * lib/fseterr.c (fseterr): Likewise.
16245         * lib/fwritable.c (fwritable): Likewise.
16246         * lib/fwriting.c (fwriting): Likewise.
16247         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16248         Hourihane.
16249         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16250
16251 2009-02-28  Bruno Haible  <bruno@clisp.org>
16252
16253         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16254         SIGCHLD.
16255         Reported by Jim Meyering.
16256
16257 2009-02-28  Bruno Haible  <bruno@clisp.org>
16258
16259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16260         Mention the results of these tests on various platforms.
16261         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16262         order.
16263         * doc/posix-functions/printf.texi: Likewise.
16264         * doc/posix-functions/snprintf.texi: Likewise.
16265         * doc/posix-functions/sprintf.texi: Likewise.
16266         * doc/posix-functions/vfprintf.texi: Likewise.
16267         * doc/posix-functions/vprintf.texi: Likewise.
16268         * doc/posix-functions/vsnprintf.texi: Likewise.
16269         * doc/posix-functions/vsprintf.texi: Likewise.
16270         * doc/glibc-functions/obstack_printf.texi: Likewise.
16271         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16272
16273 2009-02-28  Bruno Haible  <bruno@clisp.org>
16274
16275         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16276         Reported by Loïc Minier <lool@dooz.org>.
16277
16278 2009-02-27  Bruno Haible  <bruno@clisp.org>
16279
16280         * gnulib-tool (func_import): Make the sed expression used to create the
16281         sed script for updating the .gitignore file POSIX compliant.
16282         Reported by Eric Blake.
16283
16284 2009-02-27  Bruno Haible  <bruno@clisp.org>
16285
16286         * gnulib-tool (sed): Don't alias as "sed --posix".
16287         Reported by Eric Blake.
16288
16289 2009-02-27  Bruno Haible  <bruno@clisp.org>
16290
16291         Avoid test link errors.
16292         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16293         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16294         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16295         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16297
16298 2009-02-27  Bruno Haible  <bruno@clisp.org>
16299
16300         Avoid spurious "(cached)" in configure output.
16301         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16302         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16303         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16304         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16305         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16306         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16307         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16308         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16309         Reported by Eric Blake.
16310
16311 2009-02-27  Eric Blake  <ebb9@byu.net>
16312
16313         printf: fix regression in previous patch
16314         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16315
16316 2009-02-27  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16319         value.
16320         * lib/stdint.in.h: Likewise.
16321         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16322
16323 2009-02-27  Eric Blake  <ebb9@byu.net>
16324
16325         doc: mention more functions added in cygwin 1.7.0
16326         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16327         addition.
16328         * doc/posix-functions/open_wmemstream.texi: Likewise.
16329         * doc/posix-functions/wcsnlen.texi: Likewise.
16330         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16331         * doc/posix-functions/wcstod.texi: Likewise.
16332         * doc/posix-functions/wcstof.texi: Likewise.
16333         * doc/posix-functions/wcstoimax.texi: Likewise.
16334         * doc/posix-functions/wcstok.texi: Likewise.
16335         * doc/posix-functions/wcstoumax.texi: Likewise.
16336
16337         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16339         * doc/posix-functions/fprintf.texi: Update.
16340         * doc/posix-functions/printf.texi: Update.
16341         * doc/posix-functions/snprintf.texi: Update.
16342         * doc/posix-functions/sprintf.texi: Update.
16343         * doc/posix-functions/vfprintf.texi: Update.
16344         * doc/posix-functions/vprintf.texi: Update.
16345         * doc/posix-functions/vsnprintf.texi: Update.
16346         * doc/posix-functions/vsprintf.texi: Update.
16347         * doc/glibc-functions/obstack_printf.texi: Update.
16348         * doc/glibc-functions/obstack_vprintf.texi: Update.
16349
16350 2009-02-26  Eric Blake  <ebb9@byu.net>
16351
16352         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16353         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16354         compilation bug by using runtime conversion.
16355         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16356         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16357         * modules/ceill-tests (Files): Use nan.h.
16358         * modules/floorl-tests (Files): Likewise.
16359         * modules/frexpl-tests (Files): Likewise.
16360         * modules/isnanl-tests (Files): Likewise.
16361         * modules/ldexpl-tests (Files): Likewise.
16362         * modules/roundl-tests (Files): Likewise.
16363         * modules/truncl-tests (Files): Likewise.
16364         * tests/test-ceill.c (main): Use a working NaN.
16365         * tests/test-floorl.c (main): Likewise.
16366         * tests/test-frexpl.c (main): Likewise.
16367         * tests/test-isnan.c (test_long_double): Likewise.
16368         * tests/test-isnanl.h (main): Likewise.
16369         * tests/test-ldexpl.h (main): Likewise.
16370         * tests/test-roundl.h (main): Likewise.
16371         * tests/test-truncl.h (main): Likewise.
16372         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16373
16374 2009-02-26  Eric Blake  <ebb9@byu.net>
16375             Bruno Haible  <bruno@clisp.org>
16376
16377         Work around a *printf bug with %ls on Solaris.
16378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16379         precision is specified, sprintf stops converting the wide string
16380         argument when the number of bytes that have been produced by this
16381         conversion equals or exceeds the precision.
16382         * doc/posix-functions/fprintf.texi: Update.
16383         * doc/posix-functions/printf.texi: Update.
16384         * doc/posix-functions/snprintf.texi: Update.
16385         * doc/posix-functions/sprintf.texi: Update.
16386         * doc/posix-functions/vfprintf.texi: Update.
16387         * doc/posix-functions/vprintf.texi: Update.
16388         * doc/posix-functions/vsnprintf.texi: Update.
16389         * doc/posix-functions/vsprintf.texi: Update.
16390         * doc/glibc-functions/obstack_printf.texi: Update.
16391         * doc/glibc-functions/obstack_vprintf.texi: Update.
16392
16393 2009-02-26  Eric Blake  <ebb9@byu.net>
16394
16395         stdlib: favor compiler check of random.h
16396         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16397         to avoid an ObjC random.h installed by Swarm.
16398
16399 2009-02-26  Bruno Haible  <bruno@clisp.org>
16400
16401         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16402         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16403         Reported by Gary V. Vaughan <gary@gnu.org>.
16404
16405 2009-02-26  Bruno Haible  <bruno@clisp.org>
16406
16407         Fix *printf behaviour regarding the %ls directive.
16408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16409         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16410         NEED_PRINTF_DIRECTIVE_LS.
16411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16412         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16414         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16415         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16416         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16417         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16421         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16422         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16426         * doc/posix-functions/fprintf.texi: Update.
16427         * doc/posix-functions/printf.texi: Update.
16428         * doc/posix-functions/snprintf.texi: Update.
16429         * doc/posix-functions/sprintf.texi: Update.
16430         * doc/posix-functions/vfprintf.texi: Update.
16431         * doc/posix-functions/vprintf.texi: Update.
16432         * doc/posix-functions/vsnprintf.texi: Update.
16433         * doc/posix-functions/vsprintf.texi: Update.
16434         * doc/glibc-functions/obstack_printf.texi: Update.
16435         * doc/glibc-functions/obstack_vprintf.texi: Update.
16436         Reported by Eric Blake.
16437
16438 2009-02-25  Bruno Haible  <bruno@clisp.org>
16439
16440         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16441         with known value.
16442         Reported by Gary V. Vaughan <gary@gnu.org>.
16443
16444 2009-02-25  Bruno Haible  <bruno@clisp.org>
16445
16446         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16447         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16448         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16449         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16450         Reported by Gary V. Vaughan <gary@gnu.org>.
16451
16452 2009-02-25  Bruno Haible  <bruno@clisp.org>
16453
16454         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16455         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16456         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16457         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16458         Reported by Gary V. Vaughan <gary@gnu.org>.
16459
16460 2009-02-25  Eric Blake  <ebb9@byu.net>
16461
16462         tests: skip fseek/ftell tests if ungetc is broken
16463         * m4/ungetc.m4: New file.
16464         * modules/fseek-tests: Split test, so ungetc dependency is
16465         separate from rest of test.
16466         * modules/fseeko-tests: Likewise.
16467         * modules/ftell-tests: Likewise.
16468         * modules/ftello-tests: Likewise.
16469         * tests/test-fseek.c (main): Isolate ungetc dependency.
16470         * tests/test-fseeko.c (main): Likewise.
16471         * tests/test-ftell.c (main): Likewise.
16472         * tests/test-ftello.c (main): Likewise.
16473         * tests/test-fseek2.sh: New file.
16474         * tests/test-fseeko2.sh: Likewise.
16475         * tests/test-ftell2.sh: Likewise.
16476         * tests/test-ftello2.sh: Likewise.
16477
16478 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16479
16480         test-getaddrinfo: fix usage of skip return code 77
16481         * tests/test-gettaddrinfo.c: Return skip code 77 only
16482         for first occurance of skip (4x77 is not 77)
16483
16484 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16485
16486         strtod: avoid C99 decl-after-statement
16487         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16488
16489 2009-02-24  Eric Blake  <ebb9@byu.net>
16490
16491         strtod: detect HP-UX 11.31 bug
16492         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16493         Reported by Gary V. Vaughan.
16494
16495 2009-02-23  Bruno Haible  <bruno@clisp.org>
16496
16497         Fix invalid read past end of memory block.
16498         * lib/vasnprintf.c (DCHAR_SET): Define.
16499         (local_wcslen): Define only when needed.
16500         (local_strnlen, local_wcsnlen): New functions.
16501         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16502         directives that involve a conversion ourselves.
16503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16504         wcsnlen, mbrtowc, wcrtomb.
16505         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16506         * tests/test-vasprintf-posix.c (test_function): Likewise.
16507         * tests/test-snprintf-posix.h (test_function): Likewise.
16508         * tests/test-sprintf-posix.h (test_function): Likewise.
16509         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16510
16511 2009-02-22  Bruno Haible  <bruno@clisp.org>
16512
16513         Implement new clarified decomposition of Hangul syllables.
16514         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16515         of type LTV, return only a pairwise decomposition.
16516         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16517         Likewise.
16518         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16519         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16520         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16521
16522 2009-02-22  Bruno Haible  <bruno@clisp.org>
16523
16524         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16525         zero-length results and shrink excess allocated memory.
16526         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16527         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16528         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16529         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16530         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16531         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16532         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16533         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16534         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16535         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16536         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16537         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16538
16539 2009-02-21  Bruno Haible  <bruno@clisp.org>
16540
16541         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16542         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16543         spaces after a period. Put a space between a macro name and its
16544         argument list. Trivial rewordings.
16545         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16546         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16547         (main): Return 0 explicitly.
16548
16549 2009-02-21  Bruno Haible  <bruno@clisp.org>
16550
16551         Tests for module 'uninorm/filter'.
16552         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16553         * modules/uninorm/filter-tests: New file.
16554
16555         New module 'uninorm/filter'.
16556         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16557         uninorm_filter_flush, uninorm_filter_free): New declarations.
16558         * lib/uninorm/uninorm-filter.c: New file.
16559         * modules/uninorm/filter: New file.
16560
16561 2009-02-21  Bruno Haible  <bruno@clisp.org>
16562
16563         Tests for module 'uninorm/nfkc'.
16564         * tests/uninorm/test-nfkc.c: New file.
16565         * tests/uninorm/test-u8-nfkc.c: New file.
16566         * tests/uninorm/test-u16-nfkc.c: New file.
16567         * tests/uninorm/test-u32-nfkc.c: New file.
16568         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16569         * tests/uninorm/test-u32-nfkc-big.c: New file.
16570         * modules/uninorm/nfkc-tests: New file.
16571
16572         New module 'uninorm/nfkc'.
16573         * lib/uninorm/nfkc.c: New file.
16574         * modules/uninorm/nfkc: New file.
16575
16576         Tests for module 'uninorm/nfkd'.
16577         * tests/uninorm/test-nfkd.c: New file.
16578         * tests/uninorm/test-u8-nfkd.c: New file.
16579         * tests/uninorm/test-u16-nfkd.c: New file.
16580         * tests/uninorm/test-u32-nfkd.c: New file.
16581         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16582         * tests/uninorm/test-u32-nfkd-big.c: New file.
16583         * modules/uninorm/nfkd-tests: New file.
16584
16585         New module 'uninorm/nfkd'.
16586         * lib/uninorm/nfkd.c: New file.
16587         * modules/uninorm/nfkd: New file.
16588
16589         Tests for module 'uninorm/nfc'.
16590         * tests/uninorm/test-nfc.c: New file.
16591         * tests/uninorm/test-u8-nfc.c: New file.
16592         * tests/uninorm/test-u16-nfc.c: New file.
16593         * tests/uninorm/test-u32-nfc.c: New file.
16594         * tests/uninorm/test-u32-nfc-big.sh: New file.
16595         * tests/uninorm/test-u32-nfc-big.c: New file.
16596         * modules/uninorm/nfc-tests: New file.
16597
16598         New module 'uninorm/nfc'.
16599         * lib/uninorm/nfc.c: New file.
16600         * modules/uninorm/nfc: New file.
16601
16602         Tests for module 'uninorm/nfd'.
16603         * tests/uninorm/test-nfd.c: New file.
16604         * tests/uninorm/test-u8-nfd.c: New file.
16605         * tests/uninorm/test-u16-nfd.c: New file.
16606         * tests/uninorm/test-u32-nfd.c: New file.
16607         * tests/uninorm/test-u32-nfd-big.sh: New file.
16608         * tests/uninorm/test-u32-nfd-big.c: New file.
16609         * tests/uninorm/test-u32-normalize-big.h: New file.
16610         * tests/uninorm/test-u32-normalize-big.c: New file.
16611         * tests/uninorm/NormalizationTest.txt: New file, created from
16612         Unicode 5.1.0 NormalizationTest.txt.
16613         * modules/uninorm/nfd-tests: New file.
16614
16615         New module 'uninorm/nfd'.
16616         * lib/uninorm/nfd.c: New file.
16617         * modules/uninorm/nfd: New file.
16618
16619         New module 'uninorm/u32-normalize'.
16620         * lib/uninorm/u32-normalize.c: New file.
16621         * modules/uninorm/u32-normalize: New file.
16622
16623         New module 'uninorm/u16-normalize'.
16624         * lib/uninorm/u16-normalize.c: New file.
16625         * modules/uninorm/u16-normalize: New file.
16626
16627         New module 'uninorm/u8-normalize'.
16628         * lib/uninorm/u8-normalize.c: New file.
16629         * lib/uninorm/normalize-internal.h: New file.
16630         * lib/uninorm/u-normalize-internal.h: New file.
16631         * modules/uninorm/u8-normalize: New file.
16632
16633         New module 'uninorm/decompose-internal'.
16634         * lib/uninorm/decompose-internal.c: New file.
16635         * modules/uninorm/decompose-internal: New file.
16636
16637         Tests for module 'uninorm/composition'.
16638         * tests/uninorm/test-composition.c: New file.
16639         * modules/uninorm/composition-tests: New file.
16640
16641         New module 'uninorm/composition'.
16642         * lib/uninorm/composition.c: New file.
16643         * lib/uninorm/composition-table.gperf: New file, generated by
16644         gen-uni-tables.
16645         * modules/uninorm/composition: New file.
16646
16647         Tests for module 'uninorm/compat-decomposition'.
16648         * tests/uninorm/test-compat-decomposition.c: New file.
16649         * modules/uninorm/compat-decomposition-tests: New file.
16650
16651         New module 'uninorm/compat-decomposition'.
16652         * lib/uninorm/decompose-internal.h: New file.
16653         * lib/uninorm/compat-decomposition.c: New file.
16654         * modules/uninorm/compat-decomposition: New file.
16655
16656         Tests for module 'uninorm/canonical-decomposition'.
16657         * tests/uninorm/test-canonical-decomposition.c: New file.
16658         * modules/uninorm/canonical-decomposition-tests: New file.
16659
16660         New module 'uninorm/canonical-decomposition'.
16661         * lib/uninorm/canonical-decomposition.c: New file.
16662         * modules/uninorm/canonical-decomposition: New file.
16663
16664         Tests for module 'uninorm/decomposition'.
16665         * tests/uninorm/test-decomposition.c: New file.
16666         * modules/uninorm/decomposition-tests: New file.
16667
16668         New module 'uninorm/decomposition'.
16669         * lib/uninorm/decomposition.c: New file.
16670         * modules/uninorm/decomposition: New file.
16671
16672         New module 'uninorm/decomposition-table'.
16673         * lib/uninorm/decomposition-table.h: New file.
16674         * lib/uninorm/decomposition-table.c: New file.
16675         * lib/uninorm/decomposition-table1.h: New file, generated by
16676         gen-uni-tables.
16677         * lib/uninorm/decomposition-table2.h: New file, generated by
16678         gen-uni-tables.
16679         * modules/uninorm/decomposition-table: New file.
16680
16681         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16682         (UC_DECOMP_*): New enumeration items.
16683         (get_decomposition): New function.
16684         (struct decomp_table): New type.
16685         (output_decomposition, output_decomposition_tables): New functions.
16686         (unicode_composition_exclusions): New variable.
16687         (fill_composition_exclusions, debug_output_composition_tables): New
16688         functions.
16689         (main): Accept one more argument. Invoke fill_composition_exclusions.
16690         Output decomposition and composition tables.
16691
16692         New module 'uninorm/base'.
16693         * lib/uninorm.h: New file.
16694         * lib/unictype.h: Update comment.
16695         * modules/uninorm/base: New file.
16696
16697 2009-02-21  David Lutterkort  <lutter@redhat.com>
16698
16699         Tests for module 'safe-alloc'.
16700         * tests/test-safe-alloc.c: New file.
16701         * modules/safe-alloc-tests: New file.
16702
16703         New module 'safe-alloc'.
16704         * lib/safe-alloc.h: New file.
16705         * lib/safe-alloc.c: New file.
16706         * m4/safe-alloc.m4: New file.
16707         * modules/safe-alloc: New file.
16708         * doc/safe-alloc.texi: New file.
16709         * doc/gnulib.texi: Include it.
16710         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16711         safe-alloc.
16712
16713 2009-02-18  Bruno Haible  <bruno@clisp.org>
16714
16715         Fix link error on non-glibc systems.
16716         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16717         variable.
16718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16719
16720 2009-02-18  Jim Meyering  <meyering@redhat.com>
16721
16722         fts: avoid used-uninitialized error due to recent change
16723         * lib/fts.c (fts_read): Guard uses of the new member,
16724         parent->fts_n_dirs_remaining, since it's not relevant for
16725         the parent of a directory specified on the command-line.
16726
16727 2009-02-17  James Youngman  <jay@gnu.org>
16728             Bruno Haible  <bruno@clisp.org>
16729
16730         * m4/include_next.m4: Reformulate comment.
16731
16732 2009-02-16  Jim Meyering  <meyering@redhat.com>
16733
16734         fts: add #if guards so that the fts_lgpl module still builds
16735         * lib/fts.c: Guard just-added hash-table-using parts with
16736         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16737         Reported by Simon Josefsson.
16738
16739 2009-02-15  Bruno Haible  <bruno@clisp.org>
16740
16741         * modules/array-mergesort-tests: New file.
16742         * tests/test-array-mergesort.c: New file.
16743
16744         New module 'array-mergesort'.
16745         * modules/array-mergesort: New file.
16746         * lib/array-mergesort.h: New file.
16747
16748 2009-02-15  Bruno Haible  <bruno@clisp.org>
16749
16750         Fix 2009-02-07 commit.
16751         * lib/gen-uni-tables.c (output_predicate, output_category,
16752         output_combclass, output_bidi_category, output_decimal_digit,
16753         output_digit, output_numeric, output_mirror, output_scripts,
16754         output_ident_category, output_simple_mapping): Fix format directives.
16755         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16756
16757 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16758
16759         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16760         fixes are available from IBM.
16761
16762 2009-02-13  Jim Meyering  <meyering@redhat.com>
16763
16764         fts: arrange not to stat non-directories in more cases
16765         This makes GNU find (when it doesn't need to stat each file)
16766         *much* more efficient at traversing reiserfs file systems.
16767         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16768         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16769         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16770         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16771         (leaf_optimization_applies): New function.
16772         (LCO_hash, LCO_compare): New helper functions.
16773         (link_count_optimize_ok): New function.
16774         (fts_stat): Initialize new member (if dir).
16775         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16776         we've just stat'ed a directory.  Skip the stat call when possible.
16777         ---
16778         Note this AFS-related exchange:
16779         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16780         and note find's pioctl call in find/fstype.c.
16781         But that is necessary only if you want to enable the
16782         optimization for AFS, and for now, I don't.
16783
16784         fts: move a function definition "up" (no semantic change)
16785         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16786         "up" to precede upcoming use of a related function.
16787
16788 2009-02-11  Jim Meyering  <meyering@redhat.com>
16789
16790         fts: correct internal computation of nlinks (optimization-related)
16791         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16792         whether the current entry is a directory, so don't test it.
16793
16794 2009-02-10  Bruno Haible  <bruno@clisp.org>
16795
16796         Tests for module 'uniwbrk/ulc-wordbreaks'.
16797         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16798         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16799         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16800
16801         Tests for module 'uniwbrk/u32-wordbreaks'.
16802         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16803         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16804
16805         Tests for module 'uniwbrk/u16-wordbreaks'.
16806         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16807         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16808
16809         Tests for module 'uniwbrk/u8-wordbreaks'.
16810         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16811         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16812
16813 2009-02-10  Bruno Haible  <bruno@clisp.org>
16814
16815         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16816         property.
16817         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16818         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16819         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16820
16821 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16822
16823         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16824         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16825
16826 2009-02-10  Bruno Haible  <bruno@clisp.org>
16827
16828         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16829         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16830         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16831         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16832         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16833         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16834
16835 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16836
16837         * lib/sockets.h (gl_fd_to_handle): New function.
16838
16839         * tests/test-sockets.c: Call gl_fd_to_handle.
16840
16841 2009-02-09  Bruno Haible  <bruno@clisp.org>
16842
16843         * doc/havelib.texi: Document the conventions on bi-arch systems.
16844
16845 2009-02-08  Bruno Haible  <bruno@clisp.org>
16846
16847         Document the AC_LIB_LINKFLAGS macro.
16848         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16849         * doc/gnulib.texi: Include it.
16850
16851 2009-02-08  Bruno Haible  <bruno@clisp.org>
16852
16853         Fix wrong order of sections, compared to TOC.
16854         * doc/gnulib.texi: Include relocatable-maint.texi after the
16855         "Regular expressions" node, not before.
16856
16857 2009-02-08  Bruno Haible  <bruno@clisp.org>
16858
16859         Tests for module 'unicase/totitle'.
16860         * modules/unicase/totitle-tests: New file.
16861
16862         Tests for module 'unicase/tolower'.
16863         * modules/unicase/tolower-tests: New file.
16864
16865         Tests for module 'unicase/toupper'.
16866         * modules/unicase/toupper-tests: New file.
16867         * tests/unicase/test-mapping-part1.h: New file.
16868         * tests/unicase/test-mapping-part2.h: New file.
16869
16870         New module 'unicase/totitle'.
16871         * modules/unicase/totitle: New file.
16872         * lib/unicase/totitle.c: New file.
16873
16874         New module 'unicase/tolower'.
16875         * modules/unicase/tolower: New file.
16876         * lib/unicase/tolower.c: New file.
16877
16878         New module 'unicase/toupper'.
16879         * modules/unicase/toupper: New file.
16880         * lib/unicase/toupper.c: New file.
16881         * lib/unicase/simple-mapping.h: New file.
16882
16883         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16884         (mapping_table): New structure.
16885         (output_simple_mapping): New function.
16886         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16887         * modules/gen-uni-tables (Description): Update.
16888         * lib/unicase/toupper.h: New file, automatically generated by
16889         gen-uni-tables.
16890         * lib/unicase/tolower.h: New file, automatically generated by
16891         gen-uni-tables.
16892         * lib/unicase/totitle.h: New file, automatically generated by
16893         gen-uni-tables.
16894         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16895         gen-uni-tables.
16896         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16897         gen-uni-tables.
16898         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16899         gen-uni-tables.
16900
16901         New module 'unicase/base'.
16902         * modules/unicase/base: New file.
16903         * lib/unicase.h: New file.
16904
16905 2009-02-08  Bruno Haible  <bruno@clisp.org>
16906
16907         New module 'uniwbrk/ulc-wordbreaks'.
16908         * modules/uniwbrk/ulc-wordbreaks: New file.
16909         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16910
16911         New module 'uniwbrk/u32-wordbreaks'.
16912         * modules/uniwbrk/u32-wordbreaks: New file.
16913         * lib/uniwbrk/u32-wordbreaks.c: New file.
16914
16915         New module 'uniwbrk/u16-wordbreaks'.
16916         * modules/uniwbrk/u16-wordbreaks: New file.
16917         * lib/uniwbrk/u16-wordbreaks.c: New file.
16918
16919         New module 'uniwbrk/u8-wordbreaks'.
16920         * modules/uniwbrk/u8-wordbreaks: New file.
16921         * lib/uniwbrk/u8-wordbreaks.c: New file.
16922         * lib/uniwbrk/u-wordbreaks.h: New file.
16923
16924         New module 'uniwbrk/table'.
16925         * modules/uniwbrk/table: New file.
16926         * lib/uniwbrk/wbrktable.h: New file.
16927         * lib/uniwbrk/wbrktable.c: New file.
16928
16929         New module 'uniwbrk/wordbreak-property'.
16930         * modules/uniwbrk/wordbreak-property: New file.
16931         * lib/uniwbrk/wordbreak-property.c: New file.
16932
16933         * lib/gen-uni-tables.c (WBP_*): New enum items.
16934         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16935         (unicode_org_wbp): New variable.
16936         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16937         New functions.
16938         (wbp_table): New structure.
16939         (output_wbp, output_wbrk_tables): New functions.
16940         (main): Accept additional argument. Invoke fill_org_wbp,
16941         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16942         output_wbrk_tables.
16943         * modules/gen-uni-tables (Description): Update.
16944         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16945         gen-uni-tables.
16946
16947         New module 'uniwbrk/base'.
16948         * modules/uniwbrk/base: New file.
16949         * lib/uniwbrk.h: New file.
16950
16951 2009-02-08  Bruno Haible  <bruno@clisp.org>
16952
16953         Update to Unicode 5.1.0.
16954         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16955         U+2185..U+2188.
16956         (is_property_default_ignorable_code_point): Don't include characters
16957         of category Cc or Cs and not-a-characters.
16958         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16959         U+0D79, U+109E, U+109F, U+A60C.
16960         * lib/unictype/bidi_of.h: Regenerated.
16961         * lib/unictype/blocks.h: Regenerated.
16962         * lib/unictype/categ_C.h: Regenerated.
16963         * lib/unictype/categ_Cf.h: Regenerated.
16964         * lib/unictype/categ_Cn.h: Regenerated.
16965         * lib/unictype/categ_L.h: Regenerated.
16966         * lib/unictype/categ_Ll.h: Regenerated.
16967         * lib/unictype/categ_Lm.h: Regenerated.
16968         * lib/unictype/categ_Lo.h: Regenerated.
16969         * lib/unictype/categ_Lu.h: Regenerated.
16970         * lib/unictype/categ_M.h: Regenerated.
16971         * lib/unictype/categ_Mc.h: Regenerated.
16972         * lib/unictype/categ_Me.h: Regenerated.
16973         * lib/unictype/categ_Mn.h: Regenerated.
16974         * lib/unictype/categ_N.h: Regenerated.
16975         * lib/unictype/categ_Nd.h: Regenerated.
16976         * lib/unictype/categ_Nl.h: Regenerated.
16977         * lib/unictype/categ_No.h: Regenerated.
16978         * lib/unictype/categ_P.h: Regenerated.
16979         * lib/unictype/categ_Pd.h: Regenerated.
16980         * lib/unictype/categ_Pe.h: Regenerated.
16981         * lib/unictype/categ_Pf.h: Regenerated.
16982         * lib/unictype/categ_Pi.h: Regenerated.
16983         * lib/unictype/categ_Po.h: Regenerated.
16984         * lib/unictype/categ_Ps.h: Regenerated.
16985         * lib/unictype/categ_S.h: Regenerated.
16986         * lib/unictype/categ_Sk.h: Regenerated.
16987         * lib/unictype/categ_Sm.h: Regenerated.
16988         * lib/unictype/categ_So.h: Regenerated.
16989         * lib/unictype/categ_of.h: Regenerated.
16990         * lib/unictype/combining.h: Regenerated.
16991         * lib/unictype/ctype_alnum.h: Regenerated.
16992         * lib/unictype/ctype_alpha.h: Regenerated.
16993         * lib/unictype/ctype_graph.h: Regenerated.
16994         * lib/unictype/ctype_lower.h: Regenerated.
16995         * lib/unictype/ctype_print.h: Regenerated.
16996         * lib/unictype/ctype_punct.h: Regenerated.
16997         * lib/unictype/ctype_upper.h: Regenerated.
16998         * lib/unictype/decdigit.h: Regenerated.
16999         * lib/unictype/digit.h: Regenerated.
17000         * lib/unictype/mirror.h: Regenerated.
17001         * lib/unictype/numeric.h: Regenerated.
17002         * lib/unictype/pr_alphabetic.h: Regenerated.
17003         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17004         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17005         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17006         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17007         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17008         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17009         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17010         * lib/unictype/pr_combining.h: Regenerated.
17011         * lib/unictype/pr_dash.h: Regenerated.
17012         * lib/unictype/pr_decimal_digit.h: Regenerated.
17013         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17014         * lib/unictype/pr_deprecated.h: Regenerated.
17015         * lib/unictype/pr_diacritic.h: Regenerated.
17016         * lib/unictype/pr_extender.h: Regenerated.
17017         * lib/unictype/pr_format_control.h: Regenerated.
17018         * lib/unictype/pr_grapheme_base.h: Regenerated.
17019         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17020         * lib/unictype/pr_grapheme_link.h: Regenerated.
17021         * lib/unictype/pr_id_continue.h: Regenerated.
17022         * lib/unictype/pr_id_start.h: Regenerated.
17023         * lib/unictype/pr_ideographic.h: Regenerated.
17024         * lib/unictype/pr_ignorable_control.h: Regenerated.
17025         * lib/unictype/pr_lowercase.h: Regenerated.
17026         * lib/unictype/pr_math.h: Regenerated.
17027         * lib/unictype/pr_numeric.h: Regenerated.
17028         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17029         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17030         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17031         * lib/unictype/pr_other_id_continue.h: Regenerated.
17032         * lib/unictype/pr_other_lowercase.h: Regenerated.
17033         * lib/unictype/pr_other_math.h: Regenerated.
17034         * lib/unictype/pr_punctuation.h: Regenerated.
17035         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17036         * lib/unictype/pr_soft_dotted.h: Regenerated.
17037         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17038         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17039         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17040         * lib/unictype/pr_uppercase.h: Regenerated.
17041         * lib/unictype/pr_xid_continue.h: Regenerated.
17042         * lib/unictype/pr_xid_start.h: Regenerated.
17043         * lib/unictype/pr_zero_width.h: Regenerated.
17044         * lib/unictype/scripts.h: Regenerated.
17045         * lib/unictype/scripts_byname.gperf: Regenerated.
17046         * lib/unictype/sy_java_ident.h: Regenerated.
17047         * lib/unilbrk/lbrkprop1.h: Regenerated.
17048         * lib/unilbrk/lbrkprop2.h: Regenerated.
17049         * tests/unictype/test-categ_C.c: Regenerated.
17050         * tests/unictype/test-categ_Cf.c: Regenerated.
17051         * tests/unictype/test-categ_Cn.c: Regenerated.
17052         * tests/unictype/test-categ_L.c: Regenerated.
17053         * tests/unictype/test-categ_Ll.c: Regenerated.
17054         * tests/unictype/test-categ_Lm.c: Regenerated.
17055         * tests/unictype/test-categ_Lo.c: Regenerated.
17056         * tests/unictype/test-categ_Lu.c: Regenerated.
17057         * tests/unictype/test-categ_M.c: Regenerated.
17058         * tests/unictype/test-categ_Mc.c: Regenerated.
17059         * tests/unictype/test-categ_Me.c: Regenerated.
17060         * tests/unictype/test-categ_Mn.c: Regenerated.
17061         * tests/unictype/test-categ_N.c: Regenerated.
17062         * tests/unictype/test-categ_Nd.c: Regenerated.
17063         * tests/unictype/test-categ_Nl.c: Regenerated.
17064         * tests/unictype/test-categ_No.c: Regenerated.
17065         * tests/unictype/test-categ_P.c: Regenerated.
17066         * tests/unictype/test-categ_Pd.c: Regenerated.
17067         * tests/unictype/test-categ_Pe.c: Regenerated.
17068         * tests/unictype/test-categ_Pf.c: Regenerated.
17069         * tests/unictype/test-categ_Pi.c: Regenerated.
17070         * tests/unictype/test-categ_Po.c: Regenerated.
17071         * tests/unictype/test-categ_Ps.c: Regenerated.
17072         * tests/unictype/test-categ_S.c: Regenerated.
17073         * tests/unictype/test-categ_Sk.c: Regenerated.
17074         * tests/unictype/test-categ_Sm.c: Regenerated.
17075         * tests/unictype/test-categ_So.c: Regenerated.
17076         * tests/unictype/test-ctype_alnum.c: Regenerated.
17077         * tests/unictype/test-ctype_alpha.c: Regenerated.
17078         * tests/unictype/test-ctype_graph.c: Regenerated.
17079         * tests/unictype/test-ctype_lower.c: Regenerated.
17080         * tests/unictype/test-ctype_print.c: Regenerated.
17081         * tests/unictype/test-ctype_punct.c: Regenerated.
17082         * tests/unictype/test-ctype_upper.c: Regenerated.
17083         * tests/unictype/test-decdigit.h: Regenerated.
17084         * tests/unictype/test-digit.h: Regenerated.
17085         * tests/unictype/test-numeric.h: Regenerated.
17086         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17087         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17088         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17089         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17090         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17091         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17092         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17093         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17094         * tests/unictype/test-pr_combining.c: Regenerated.
17095         * tests/unictype/test-pr_dash.c: Regenerated.
17096         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17097         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17098         * tests/unictype/test-pr_deprecated.c: Regenerated.
17099         * tests/unictype/test-pr_diacritic.c: Regenerated.
17100         * tests/unictype/test-pr_extender.c: Regenerated.
17101         * tests/unictype/test-pr_format_control.c: Regenerated.
17102         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17103         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17104         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17105         * tests/unictype/test-pr_id_continue.c: Regenerated.
17106         * tests/unictype/test-pr_id_start.c: Regenerated.
17107         * tests/unictype/test-pr_ideographic.c: Regenerated.
17108         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17109         * tests/unictype/test-pr_lowercase.c: Regenerated.
17110         * tests/unictype/test-pr_math.c: Regenerated.
17111         * tests/unictype/test-pr_numeric.c: Regenerated.
17112         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17113         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17114         Regenerated.
17115         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17116         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17117         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17118         * tests/unictype/test-pr_other_math.c: Regenerated.
17119         * tests/unictype/test-pr_punctuation.c: Regenerated.
17120         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17121         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17122         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17123         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17124         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17125         * tests/unictype/test-pr_uppercase.c: Regenerated.
17126         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17127         * tests/unictype/test-pr_xid_start.c: Regenerated.
17128         * tests/unictype/test-pr_zero_width.c: Regenerated.
17129
17130         Update to Unicode 5.1.0.
17131         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17132         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17133         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17134         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17135         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17136         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17137         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17138         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17139         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17140         (nonspacing_table_ind): Update.
17141         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17142
17143         Update to Unicode 5.1.0.
17144         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17145         code transform.
17146         * lib/uniname/uniname.c (unicode_character_name,
17147         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17148         * lib/uniname/uninames.h: Regenerated.
17149         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17150
17151 2009-02-07  Bruno Haible  <bruno@clisp.org>
17152
17153         Merge gen-ctype and gen-lbrk into a single program.
17154         * lib/gen-uni-tables.c: New file, incorporating
17155         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17156         Add directory prefixes to the names of the generated files.
17157         * lib/unictype/gen-ctype.c: Remove file.
17158         * lib/unilbrk/gen-lbrk.c: Remove file.
17159         * modules/gen-uni-tables: New file.
17160         * modules/unictype/gen-ctype: Remove file.
17161         * modules/unilbrk/gen-lbrk: Remove file.
17162
17163 2009-02-07  Bruno Haible  <bruno@clisp.org>
17164
17165         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17166
17167         New module 'unistr/u32-strcoll'.
17168         * modules/unistr/u32-strcoll: New file.
17169         * lib/unistr/u32-strcoll.c: New file.
17170
17171         New module 'unistr/u16-strcoll'.
17172         * modules/unistr/u16-strcoll: New file.
17173         * lib/unistr/u16-strcoll.c: New file.
17174
17175         New module 'unistr/u8-strcoll'.
17176         * modules/unistr/u8-strcoll: New file.
17177         * lib/unistr/u8-strcoll.c: New file.
17178         * lib/unistr/u-strcoll.h: New file.
17179
17180 2009-02-07  Bruno Haible  <bruno@clisp.org>
17181
17182         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17183         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17184         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17185         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17186         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17187         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17188
17189 2009-02-07  Bruno Haible  <bruno@clisp.org>
17190
17191         Make 64-bit clean.
17192         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17193         output_combclass, output_bidi_category, output_decimal_digit,
17194         output_digit, output_numeric, output_mirror, output_scripts,
17195         output_ident_category): Use proper width specifier in format strings.
17196
17197 2009-02-07  Bruno Haible  <bruno@clisp.org>
17198
17199         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17200         failure behaviour.
17201
17202 2009-02-07  Jim Meyering  <meyering@redhat.com>
17203
17204         regex: avoid compilation failure with upcoming gcc-4.4
17205         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17206         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17207         "... error: integer overflow in preprocessor expression".
17208
17209 2009-02-05  Ben Pfaff  <blp@gnu.org>
17210
17211         Fix link errors on Windows when close module is used.
17212         * modules/close: Add $(LIB_CLOSE) to Link section.
17213         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17214         $(LIB_CLOSE) on Windows.
17215
17216 2009-02-05  Jim Meyering  <meyering@redhat.com>
17217
17218         still avoid unused-parameter warnings, but do it cleanly
17219         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17220         (get_fs_usage): Cast to void instead.
17221         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17222         (dev_from_mount_options, read_file_system_list): Cast to void.
17223         Prompted by Bruno Haible.
17224
17225 2009-02-04  Jim Meyering  <meyering@redhat.com>
17226
17227         fsusage.c: correct copyright year
17228         * lib/fsusage.c: Reflect year in which the change is pushed into
17229
17230         avoid misc. warnings
17231         * lib/fsusage.c (UNUSED_PARAM): Define.
17232         (get_fs_usage): Mark parameter "disk" as unused.
17233         * lib/getugroups.c (getgrent): Use "void" in prototype.
17234         * lib/mountlist.c: Mark unused parameters.
17235         (read_file_system_list): Declare a local with "const".
17236         * lib/nanosleep.c (getnow): Declare static.
17237         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17238
17239         dirfd: set errno upon failure
17240         * lib/dirfd.c: Include <errno.h>.
17241         Set errno to ENOTSUP when returning -1.
17242         * modules/dirfd (Depends-on): Add errno.
17243         Suggested by John Kodis <kodis@comcast.net>.
17244
17245 2009-02-01  Bruno Haible  <bruno@clisp.org>
17246
17247         Don't assume sizeof (long) >= sizeof (void *).
17248         * lib/memcmp.c: Include stdint.h.
17249         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17250         srcp2 to 'const byte *'.
17251         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17252         types to uintptr_t.
17253         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17254         * modules/memcmp (Depends-on): Add stdint.
17255         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17256
17257 2009-01-30  Eric Blake  <ebb9@byu.net>
17258
17259         fix more require-before-expand issues
17260         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17261         expand, AC_PROG_AWK.
17262         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17263
17264 2009-01-28  Eric Blake  <ebb9@byu.net>
17265
17266         version-etc: use consistent URL formatting
17267         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17268         Improve formatting.  Use fputs for string without %.
17269
17270 2009-01-28  Jim Meyering  <meyering@redhat.com>
17271
17272         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17273         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17274         "underquoted definition of NAME" from autoconf-2.59.
17275
17276 2009-01-28  Bruno Haible  <bruno@clisp.org>
17277
17278         * doc/gnulib.texi: Add "Obsolete modules" to index.
17279
17280 2009-01-28  Jim Meyering  <meyering@redhat.com>
17281
17282         useless-if-before-free: recognize more variants
17283         * build-aux/useless-if-before-free: Also recognize e.g.,
17284         if (NULL != p) free (p);
17285
17286 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17287
17288         test-getaddrinfo: skip (don't fail) this test when there's no network
17289         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17290         on the presumption that it means you lack network access.
17291
17292 2009-01-26  Jim Meyering  <meyering@redhat.com>
17293
17294         fflush: avoid warnings on modern systems
17295         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17296         pos and result, into scopes where they're used.
17297
17298 2009-01-26  Eric Blake  <ebb9@byu.net>
17299
17300         Silence warning reintroduced by recent extensions patch.
17301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17302         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17303         autoconf.
17304
17305         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17306         * m4/00gnulib.m4: New file.
17307         * gnulib-tool (func_get_filelist): Always use it.
17308         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17309         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17310
17311 2009-01-25  Bruno Haible  <bruno@clisp.org>
17312
17313         Make test-quotearg work on MacOS X and AIX.
17314         * tests/test-quotearg.sh: New file.
17315         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17316         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17317         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17318         include <libintl.h>.
17319         (fake_locale): Remove variable.
17320         (gettext, dgettext, dcgettext): Remove functions.
17321         (main): Instead of setting a fake locale, set a real locale. Call
17322         textdomain and bindtextdomain.
17323         * modules/quotearg-tests (Files): Add the new files.
17324         (Depends-on): Add gettext, setenv, unsetenv.
17325         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17326         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17327         Augment TESTS_ENVIRONMENT.
17328
17329 2009-01-25  Bruno Haible  <bruno@clisp.org>
17330
17331         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17332         fr_FR.ISO8859-1 locale on MacOS X.
17333         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17334         ja_JP.eucJP locale on MacOS X.
17335         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17336         zh_CN.GB18030 locale on MacOS X.
17337
17338 2009-01-25  Bruno Haible  <bruno@clisp.org>
17339
17340         Avoid link errors on MacOS X 10.3.
17341         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17342         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17343
17344 2009-01-25  Bruno Haible  <bruno@clisp.org>
17345
17346         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17347         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17348         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17349         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17350         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17351         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17352         posix_spawnattr_init, posix_spawnattr_setsigmask,
17353         posix_spawnattr_setflags, posix_spawnattr_destroy.
17354
17355         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17356         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17357         * modules/execute (Files): Remove m4/posix_spawn.m4.
17358         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17359         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17360         posix_spawnattr_init, posix_spawnattr_setsigmask,
17361         posix_spawnattr_setflags, posix_spawnattr_destroy.
17362
17363 2009-01-25  Bruno Haible  <bruno@clisp.org>
17364
17365         * lib/glthread/threadlib.c: Include <stdlib.h>.
17366
17367 2009-01-25  Bruno Haible  <bruno@clisp.org>
17368
17369         * lib/glthread/threadlib.c (dummy): New declaration.
17370
17371 2009-01-25  Bruno Haible  <bruno@clisp.org>
17372
17373         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17374         multibyte characters also for the GB18030 encoding. Don't crash when
17375         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17376
17377 2009-01-25  Bruno Haible  <bruno@clisp.org>
17378
17379         Avoid redefining 'struct random_data' on OSF/1 5.1.
17380         * lib/stdlib.in.h: Include <random.h> if it exists.
17381         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17382         HAVE_RANDOM_H. Include <random.h> when testing whether
17383         'struct random_data' exists.
17384         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17385
17386 2009-01-25  Bruno Haible  <bruno@clisp.org>
17387
17388         Don't install charset.alias on MacOS X >= 10.3.
17389         * lib/localcharset.c (DARWIN7): New macro.
17390         (get_charset_aliases): Hardcode the result for Darwin7.
17391         * modules/localcharset (install-exec-local): Don't install
17392         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17393
17394 2009-01-25  Bruno Haible  <bruno@clisp.org>
17395
17396         Don't install charset.alias on mingw and Cygwin.
17397         * modules/localcharset (install-exec-local): Don't install
17398         charset.alias on mingw and Cygwin, if the file does not yet exist.
17399         The result for these platforms is hardcoded in localcharset.c.
17400
17401 2009-01-25  Bruno Haible  <bruno@clisp.org>
17402
17403         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17404         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17405         before requiring AC_USE_SYSTEM_EXTENSIONS.
17406
17407 2009-01-25  Jim Meyering  <meyering@redhat.com>
17408
17409         c-strtod: avoid warnings
17410         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17411         "assignment discards qualifiers from pointer target type" warnings.
17412
17413 2009-01-24  Bruno Haible  <bruno@clisp.org>
17414
17415         Add support for non-UTF-8 locales on MacOS X.
17416         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17417         canonical encodings. For Darwin 7 and newer, don't map traditional
17418         encodings to UTF-8.
17419         Reported by Vincent Lefevre <vincent@vinc17.org>
17420         at <http://savannah.gnu.org/bugs/?25235>.
17421
17422 2009-01-24  Bruno Haible  <bruno@clisp.org>
17423
17424         * doc/gnulib.texi (Obsolete modules): New section.
17425         Reported by Mike Frysinger <vapier@gentoo.org>.
17426
17427 2009-01-24  Bruno Haible  <bruno@clisp.org>
17428
17429         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17430         (%.dvi): New rule.
17431
17432 2009-01-24  Bruno Haible  <bruno@clisp.org>
17433
17434         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17435         Reported by Eric Blake.
17436
17437 2009-01-24  Bruno Haible  <bruno@clisp.org>
17438
17439         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17440         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17441         Reported by Gary V. Vaughan <gary@gnu.org>.
17442
17443 2009-01-24  Bruno Haible  <bruno@clisp.org>
17444
17445         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17446
17447 2009-01-23  Bruno Haible  <bruno@clisp.org>
17448
17449         Make c-strtod, c-strtold usable in libraries.
17450         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17451         (C_STRTOD): Call strdup instead of xstrdup.
17452         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17453         * modules/c-strtold (Depends-on): Likewise.
17454         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17455         * NEWS: Mention the change.
17456         Reported by Michael Gold <mgold@ncf.ca>.
17457
17458 2009-01-23  Jim Meyering  <meyering@redhat.com>
17459
17460         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17461         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17462         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17463
17464 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17465
17466         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17467         GNU CoreUtils.
17468         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17469         * modules/version-etc (Description): Update.
17470
17471 2009-01-22  Bruno Haible  <bruno@clisp.org>
17472
17473         Cache the C locale object.
17474         * lib/c-strtod.c (c_locale_cache): New variable.
17475         (c_locale): New function.
17476         (C_STRTOD): Use it, and don't call freelocale.
17477         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17478         Suggested by Paolo Bonzini.
17479
17480 2009-01-21  Bruno Haible  <bruno@clisp.org>
17481
17482         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17483         conditions other than overflow.
17484
17485 2009-01-21  Bruno Haible  <bruno@clisp.org>
17486
17487         * lib/c-strtod.c: Include errno.h.
17488         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17489         value from STRTOD_L and STRTOD.
17490
17491 2009-01-21  Bruno Haible  <bruno@clisp.org>
17492         and Jim Meyering  <meyering@redhat.com>
17493
17494         nanosleep: skip configure test (fail it) for apple universal builds
17495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17496         universal builds, assume that nanosleep does not work.
17497         * modules/nanosleep (Depends-on): Add multiarch.
17498
17499         mktime: skip configure test (fail it) for apple universal builds
17500         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17501         universal builds, assume that mktime does not work.
17502         * modules/mktime (Depends-on): Add multiarch.
17503
17504 2009-01-21  Eric Blake  <ebb9@byu.net>
17505
17506         multiarch: avoid expand-before-require warning
17507         * modules/multiarch (configure.ac): Require, rather than expand,
17508         gl_MULTIARCH.
17509         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17510         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17511         enforce that all clients require it.  Partial reversion of
17512         2008-12-29 patch.
17513
17514         error: avoid expand-before-require warning
17515         * modules/errno (configure.ac): Require, rather than expand,
17516         gl_HEADER_ERRNO_H.
17517         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17518         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17519         enforce that all clients require it.
17520
17521         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17522         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17523         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17524         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17525
17526 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17527
17528         Revert:
17529         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17530
17531         regex: do not depend on obsolete modules.
17532         * modules/regex: Remove memcmp and memmove.
17533
17534 2009-01-20  Bruno Haible  <bruno@clisp.org>
17535
17536         Make the 'link' module link on Windows NT 4.
17537         * lib/link.c (_WIN32_WINNT): Don't define.
17538         (CreateHardLinkFuncType): New type.
17539         (CreateHardLinkFunc, initialized): New variables.
17540         (initialize): New function.
17541         (link): Invoke CreateHardLink indirectly through the function pointer.
17542
17543 2009-01-20  Bruno Haible  <bruno@clisp.org>
17544
17545         Fix compilation failure on mingw.
17546         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17547
17548 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17549
17550         * doc/c-strtod.texi: Mention a couple of restrictions.
17551
17552 2009-01-20  Jim Meyering  <meyering@redhat.com>
17553
17554         gettimeofday: move more declarations out of functions
17555         * lib/gettimeofday.c: Move extern declarations of tzset and
17556         gmtime out of containing functions.  Prompted by Bruno Haible.
17557
17558 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17559
17560         regex: do not depend on obsolete modules.
17561         * modules/regex: Remove memcmp and memmove.
17562
17563 2009-01-19  Bruno Haible  <bruno@clisp.org>
17564
17565         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17566         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17567         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17568         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17569         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17570
17571 2009-01-19  Bruno Haible  <bruno@clisp.org>
17572
17573         * tests/test-link.c: Include <errno.h>.
17574         (main): Exit with code 77 when a hard link cannot be created due to
17575         the file system.
17576         * tests/test-link.sh: Skip test when a hard link cannot be created due
17577         to the file system.
17578         Suggested by Eric Blake.
17579
17580 2009-01-19  Martin Lambers  <marlam@marlam.de>
17581
17582         * modules/link-tests: New file.
17583         * tests/test-link.sh: New file.
17584         * tests/test-link.c: New file.
17585
17586 2009-01-19  Eric Blake  <ebb9@byu.net>
17587
17588         doc: mention another function added in cygwin 1.7.0
17589         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17590         Another new function in cygwin 1.7.
17591
17592 2009-01-19  Bruno Haible  <bruno@clisp.org>
17593
17594         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17595         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17596         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17597         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17598         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17599         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17600         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17601         * m4/md4.m4 (gl_MD4): Likewise.
17602         * m4/md5.m4 (gl_MD5): Likewise.
17603         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17604         * m4/sha1.m4 (gl_SHA1): Likewise.
17605         * m4/sha256.m4 (gl_SHA256): Likewise.
17606         * m4/sha512.m4 (gl_SHA512): Likewise.
17607
17608 2009-01-19  Bruno Haible  <bruno@clisp.org>
17609
17610         * modules/uniname/uniname-tests (Depends-on): Add progname.
17611         * tests/uniname/test-uninames.c: Include progname.h.
17612         (main): Call set_program_name.
17613
17614         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17615         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17616         (main): Call set_program_name.
17617
17618         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17619         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17620         (main): Call set_program_name.
17621
17622         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17623         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17624         (main): Call set_program_name.
17625
17626         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17627         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17628         (main): Call set_program_name.
17629
17630         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17631         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17632         (main): Call set_program_name.
17633
17634         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17635         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17636         (main): Call set_program_name.
17637
17638         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17639         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17640         (main): Call set_program_name.
17641
17642         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17643         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17644         (main): Call set_program_name.
17645
17646 2009-01-19  Eric Blake  <ebb9@byu.net>
17647
17648         test-unistd: test previous patch
17649         * tests/test-unistd.c: Test *_FILENO macros.
17650
17651         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17652         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17653         Guarantee a definition.
17654         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17655         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17656         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17657         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17658         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17659         Likewise.
17660         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17661         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17662         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17663         Likewise.
17664         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17665         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17666         (STDERR_FILENO): Likewise.
17667         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17668         (STDERR_FILENO): Likewise.
17669         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17670         (STDERR_FILENO): Likewise.
17671         Reported by Elbert Pol.
17672
17673 2009-01-19  Eric Blake  <ebb9@byu.net>
17674
17675         doc: mention more functions added in cygwin 1.7.0
17676         * doc/posix-functions/abort.texi (abort): Update wording related
17677         to cygwin.
17678         * doc/posix-functions/daylight.texi (daylight): Likewise.
17679         * doc/posix-functions/optarg.texi (optarg): Likewise.
17680         * doc/posix-functions/optarg.texi (opterr): Likewise.
17681         * doc/posix-functions/optarg.texi (optind): Likewise.
17682         * doc/posix-functions/optarg.texi (optopt): Likewise.
17683         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17684         worked in 1.5.x, and was withdrawn in 1.7.
17685         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17686         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17687         cygwin versions.
17688         * doc/posix-functions/perror.texi (perror): Likewise.
17689         * doc/posix-functions/printf.texi (printf): Likewise.
17690         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17691         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17692         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17693         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17694         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17695         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17696         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17697         Likewise.
17698         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17699         Likewise.
17700         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17701         this function.
17702         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17703         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17704         Likewise.
17705         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17706         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17707         * doc/posix-functions/confstr.texi (confstr): Likewise.
17708         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17709         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17710         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17711         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17712         * doc/posix-functions/fputws.texi (fputws): Likewise.
17713         * doc/posix-functions/fwide.texi (fwide): Likewise.
17714         * doc/posix-functions/getwc.texi (getwc): Likewise.
17715         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17716         * doc/posix-functions/putwc.texi (putwc): Likewise.
17717         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17718         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17719         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17720         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17721         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17722         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17723         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17724         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17725         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17726         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17727         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17728
17729 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17730
17731         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17732         * lib/ioctl.c: Include <sys/ioctl.h>.
17733
17734 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17735
17736         * modules/getdate-tests (Depends-on): Add progname.
17737         * tests/test-getdate.c: Use progname module, to avoid link errors
17738         on non-glibc systems.
17739
17740 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17741
17742         * modules/filenamecat-tests (Depends-on): Add progname.
17743         * modules/fstrcmp-tests (Depends-on): Likewise.
17744
17745         * tests/test-filenamecat.c: Use progname module, to avoid link
17746         errors on non-glibc systems.
17747         * tests/test-fstrcmp.c: Likewise.
17748
17749 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17750
17751         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17752         * lib/gettimeofday.c: Move extern declaration out of function.
17753
17754 2009-01-18  Bruno Haible  <bruno@clisp.org>
17755
17756         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17757         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17758         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17759
17760 2009-01-18  Bruno Haible  <bruno@clisp.org>
17761
17762         * lib/strftime.c (MEMPCPY): Remove unused macro.
17763         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17764
17765 2009-01-18  Martin Lambers  <marlam@marlam.de>
17766
17767         New module 'link'.
17768         * lib/unistd.in.h (link): New declaration.
17769         * lib/link.c: New file.
17770         * m4/link.m4: New file.
17771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17772         HAVE_LINK.
17773         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17774         * modules/link: New file.
17775         * doc/posix-functions/link.texi: Mention the new module.
17776
17777 2009-01-18  Bruno Haible  <bruno@clisp.org>
17778
17779         * tests/test-avltree_list.c (main): Call set_program_name.
17780         * tests/test-avltree_oset.c (main): Likewise.
17781         * tests/test-obstack-printf.c: Include progname.h.
17782         (main): Call set_program_name.
17783         * tests/test-quotearg.c: Include progname.h.
17784         (main): Call set_program_name.
17785         * tests/test-xmemdup0.c: Include progname.h.
17786         (main): Call set_program_name.
17787
17788 2009-01-18  Bruno Haible  <bruno@clisp.org>
17789
17790         New module 'alphasort'.
17791         * lib/dirent.in.h (alphasort): New declaration.
17792         * lib/alphasort.c: New file, from glibc with modifications.
17793         * m4/alphasort.m4: New file.
17794         * modules/alphasort: New file.
17795         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17796         HAVE_ALPHASORT.
17797         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17798         HAVE_ALPHASORT.
17799         * doc/posix-functions/alphasort.texi: Mention the new module and the
17800         portability problems.
17801
17802 2009-01-18  Bruno Haible  <bruno@clisp.org>
17803
17804         New module 'scandir'.
17805         * lib/dirent.in.h (scandir): New declaration.
17806         * lib/scandir.c: New file, from glibc with modifications.
17807         * m4/scandir.m4: New file.
17808         * modules/scandir: New file.
17809         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17810         HAVE_SCANDIR.
17811         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17812         HAVE_SCANDIR.
17813         * doc/posix-functions/scandir.texi: Mention the new module and the
17814         portability problems.
17815
17816 2009-01-17  Bruno Haible  <bruno@clisp.org>
17817
17818         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17819         Update documentation.
17820         (func_remove_suffix): Escape all dots in the suffix. Update
17821         documentation.
17822         (func_filter_filelist): Update documentation.
17823         Reported by Ralf Wildenhues.
17824
17825 2009-01-17  Bruno Haible  <bruno@clisp.org>
17826
17827         * modules/dprintf-posix-tests: New file.
17828         * tests/test-dprintf-posix.sh: New file.
17829         * tests/test-dprintf-posix.c: New file.
17830
17831         New modules 'dprintf', 'dprintf-posix'.
17832         * lib/stdio.in.h (dprintf): New declaration.
17833         * lib/dprintf.c: New file.
17834         * m4/dprintf.m4: New file.
17835         * m4/dprintf-posix.m4: New file.
17836         * modules/dprintf: New file.
17837         * modules/dprintf-posix: New file.
17838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17839         HAVE_DPRINTF, REPLACE_DPRINTF.
17840         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17841         HAVE_DPRINTF, REPLACE_DPRINTF.
17842         * doc/posix-functions/dprintf.texi: Mention the new modules.
17843
17844 2009-01-17  Bruno Haible  <bruno@clisp.org>
17845
17846         * modules/vdprintf-posix-tests: New file.
17847         * tests/test-vdprintf-posix.sh: New file.
17848         * tests/test-vdprintf-posix.c: New file.
17849
17850         New modules 'vdprintf', 'vdprintf-posix'.
17851         * lib/stdio.in.h (vdprintf): New declaration.
17852         * lib/vdprintf.c: New file.
17853         * m4/vdprintf.m4: New file.
17854         * m4/vdprintf-posix.m4: New file.
17855         * modules/vdprintf: New file.
17856         * modules/vdprintf-posix: New file.
17857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17858         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17859         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17860         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17861         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17862
17863 2009-01-17  Bruno Haible  <bruno@clisp.org>
17864
17865         Fix replacement of fopen on mingw.
17866         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17867         mingw.
17868
17869 2009-01-17  Bruno Haible  <bruno@clisp.org>
17870
17871         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17872         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17873
17874 2009-01-17  Bruno Haible  <bruno@clisp.org>
17875
17876         Avoid test-fflush2.sh failure on mingw.
17877         * tests/test-fflush2.c: Include binary-io.h.
17878         (main): Put standard input into binary mode.
17879         * modules/fflush-tests (Depends-on): Add binary-io.
17880
17881 2009-01-17  Bruno Haible  <bruno@clisp.org>
17882
17883         * lib/wchar.in.h: In another particular situation, include only the
17884         system's <wchar.h> file.
17885         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17886         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17887         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17888
17889 2009-01-17  Bruno Haible  <bruno@clisp.org>
17890
17891         Support for stripping executables in --enable-relocatable.
17892         * build-aux/install-reloc: Expect one more argument, or an environment
17893         variable RELOC_STRIP_PROG. If set, strip the destination program and
17894         its wrapper.
17895         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17896         RELOC_STRIP_PROG.
17897         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17898         to set RELOCATABLE_STRIP.
17899         * NEWS: Mention the new Makefile requirement.
17900
17901 2009-01-17  Bruno Haible  <bruno@clisp.org>
17902
17903         * build-aux/install-reloc: Remove debugging information left over by
17904         C compiler on MacOS X.
17905
17906 2009-01-17  Bruno Haible  <bruno@clisp.org>
17907
17908         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17909         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17910         _NSGetExecutablePath.
17911
17912 2009-01-16  Jim Meyering  <meyering@redhat.com>
17913
17914         strerror: avoid warnings about discarding "const"
17915         * lib/strerror.c (rpl_strerror): Instead of returning a const
17916         string from each and every "case", use a variable, and add a single
17917         cast after the switch.
17918
17919 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17920
17921         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17922
17923 2009-01-16  Bruno Haible  <bruno@clisp.org>
17924
17925         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17926         array initializer syntax that also works in C++ mode.
17927         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17928
17929 2009-01-16  Jim Meyering  <meyering@redhat.com>
17930
17931         poll: suppress a warning
17932         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17933         to ignore "...unsigned expression < 0 is always false" warnings.
17934
17935 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17936
17937         poll: remove declarations of unused variables
17938         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17939         sockbuf and optlen.
17940
17941 2009-01-15  Bruno Haible  <bruno@clisp.org>
17942
17943         Make fflush-after-ungetc POSIX compliant on BSD systems.
17944         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17945         (clear_ungetc_buffer): Implement also for other systems.
17946         (rpl_fflush): On glibc systems, invoke
17947         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17948         clear_ungetc_buffer after fetching the stream's position, not before.
17949
17950 2009-01-15  Bruno Haible  <bruno@clisp.org>
17951
17952         Make fflush-after-ungetc POSIX compliant on glibc systems.
17953         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17954         after ungetc.
17955         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17956         (rpl_fflush): On glibc systems, simply call the system's fflush
17957         function after clearing the ungetc buffer.
17958         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17959         Instead, lseek only to the end of file, then use the system's fseeko
17960         for the rest. On glibc systems, reset the EOF indicator bit.
17961
17962 2009-01-15  Jim Meyering  <meyering@redhat.com>
17963
17964         openmp.m4: revert quote-adding change, for portability to older autoconf
17965         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17966         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17967         Simon Josefsson noticed the problem when using autoconf-2.61.
17968
17969 2009-01-15  Bruno Haible  <bruno@clisp.org>
17970
17971         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17972         * tests/test-fflush2.c (ASSERT): Always fail.
17973         (main): Add two tests for fflush() after ungetc(), taking into account
17974         the Austin Group's clarification.
17975         Suggested by Eric Blake.
17976
17977 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17978
17979         mktime.m4: remove K&R-style function prototypes
17980         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17981         for the Sun C++ compiler.
17982
17983 2009-01-14  Bruno Haible  <bruno@clisp.org>
17984
17985         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17986         while including <wchar.h>.
17987         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17988         the system's <wchar.h> file.
17989         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17990
17991 2009-01-14  Bruno Haible  <bruno@clisp.org>
17992
17993         * m4/csharp.m4: Don't mention gettext on the serial number line.
17994         * m4/csharpexec.m4: Likewise.
17995         * m4/eaccess.m4: Likewise.
17996         * m4/javaexec.m4: Likewise.
17997         * m4/sig_atomic_t.m4: Likewise.
17998         * m4/tmpdir.m4: Likewise.
17999         * m4/intldir.m4: Bump gettext version.
18000         * m4/lib-ld.m4: Likewise.
18001
18002 2009-01-14  Bruno Haible  <bruno@clisp.org>
18003
18004         * lib/progname.c (set_program_name): Add more comments.
18005         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18006
18007 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18008
18009         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18010         were sys/stat.h does not define it.
18011
18012 2009-01-14  Jim Meyering  <meyering@redhat.com>
18013
18014         many *.m4 files: improve m4 quoting
18015         99% of this change was performed by running the following commands:
18016         git ls-files | grep '\.m4$' | xargs perl -pi \
18017           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18018           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18019           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18020           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18021         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18022         The remainder were to add Copyright dates, increment serial numbers,
18023         undo some changes in comments, exclude m4/intl.m4, and add quotes
18024         around the "1" in ",1" where the unusual spacing prohibited the
18025         above regexps from doing the job.  For more details, see
18026         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18027         * m4/acl.m4: Modified.
18028         * m4/afs.m4: Likewise.
18029         * m4/alloca.m4: Likewise.
18030         * m4/argp.m4: Likewise.
18031         * m4/argz.m4: Likewise.
18032         * m4/atexit.m4: Likewise.
18033         * m4/bison-i18n.m4: Likewise.
18034         * m4/bison.m4: Likewise.
18035         * m4/byteswap.m4: Likewise.
18036         * m4/c-stack.m4: Likewise.
18037         * m4/c-strtod.m4: Likewise.
18038         * m4/calloc.m4: Likewise.
18039         * m4/canonicalize-lgpl.m4: Likewise.
18040         * m4/chown.m4: Likewise.
18041         * m4/clock_time.m4: Likewise.
18042         * m4/codeset.m4: Likewise.
18043         * m4/copy-file.m4: Likewise.
18044         * m4/csharp.m4: Likewise.
18045         * m4/csharpcomp.m4: Likewise.
18046         * m4/csharpexec.m4: Likewise.
18047         * m4/d-ino.m4: Likewise.
18048         * m4/d-type.m4: Likewise.
18049         * m4/dirfd.m4: Likewise.
18050         * m4/double-slash-root.m4: Likewise.
18051         * m4/eaccess.m4: Likewise.
18052         * m4/eealloc.m4: Likewise.
18053         * m4/environ.m4: Likewise.
18054         * m4/errno_h.m4: Likewise.
18055         * m4/euidaccess.m4: Likewise.
18056         * m4/execute.m4: Likewise.
18057         * m4/fatal-signal.m4: Likewise.
18058         * m4/fchdir.m4: Likewise.
18059         * m4/fcntl_h.m4: Likewise.
18060         * m4/fileblocks.m4: Likewise.
18061         * m4/filenamecat.m4: Likewise.
18062         * m4/findprog.m4: Likewise.
18063         * m4/flexmember.m4: Likewise.
18064         * m4/fnmatch.m4: Likewise.
18065         * m4/fopen.m4: Likewise.
18066         * m4/fpending.m4: Likewise.
18067         * m4/fprintf-posix.m4: Likewise.
18068         * m4/free.m4: Likewise.
18069         * m4/frexp.m4: Likewise.
18070         * m4/frexpl.m4: Likewise.
18071         * m4/fsusage.m4: Likewise.
18072         * m4/ftruncate.m4: Likewise.
18073         * m4/gc-camellia.m4: Likewise.
18074         * m4/gc-random.m4: Likewise.
18075         * m4/gc.m4: Likewise.
18076         * m4/getaddrinfo.m4: Likewise.
18077         * m4/getcwd-abort-bug.m4: Likewise.
18078         * m4/getcwd-path-max.m4: Likewise.
18079         * m4/getdate.m4: Likewise.
18080         * m4/getdomainname.m4: Likewise.
18081         * m4/getgroups.m4: Likewise.
18082         * m4/gethostname.m4: Likewise.
18083         * m4/gethrxtime.m4: Likewise.
18084         * m4/getline.m4: Likewise.
18085         * m4/getloadavg.m4: Likewise.
18086         * m4/getndelim2.m4: Likewise.
18087         * m4/getpass.m4: Likewise.
18088         * m4/gettext.m4: Likewise.
18089         * m4/gettime.m4: Likewise.
18090         * m4/gettimeofday.m4: Likewise.
18091         * m4/gnulib-common.m4: Likewise.
18092         * m4/group-member.m4: Likewise.
18093         * m4/host-os.m4: Likewise.
18094         * m4/iconv.m4: Likewise.
18095         * m4/iconv_open.m4: Likewise.
18096         * m4/inet_ntop.m4: Likewise.
18097         * m4/inet_pton.m4: Likewise.
18098         * m4/inline.m4: Likewise.
18099         * m4/intldir.m4: Likewise.
18100         * m4/intlmacosx.m4: Likewise.
18101         * m4/intmax.m4: Likewise.
18102         * m4/intmax_t.m4: Likewise.
18103         * m4/inttypes.m4: Likewise.
18104         * m4/inttypes_h.m4: Likewise.
18105         * m4/inttypes-pri.m4: Likewise.
18106         * m4/isapipe.m4: Likewise.
18107         * m4/isnand.m4: Likewise.
18108         * m4/isnanf.m4: Likewise.
18109         * m4/isnanl.m4: Likewise.
18110         * m4/javacomp.m4: Likewise.
18111         * m4/javaexec.m4: Likewise.
18112         * m4/jm-winsz1.m4: Likewise.
18113         * m4/jm-winsz2.m4: Likewise.
18114         * m4/lchown.m4: Likewise.
18115         * m4/lcmessage.m4: Likewise.
18116         * m4/ldexpl.m4: Likewise.
18117         * m4/lib-ld.m4: Likewise.
18118         * m4/lib-link.m4: Likewise.
18119         * m4/libsigsegv.m4: Likewise.
18120         * m4/link-follow.m4: Likewise.
18121         * m4/localcharset.m4: Likewise.
18122         * m4/locale-fr.m4: Likewise.
18123         * m4/locale-ja.m4: Likewise.
18124         * m4/locale-tr.m4: Likewise.
18125         * m4/locale-zh.m4: Likewise.
18126         * m4/lock.m4: Likewise.
18127         * m4/longlong.m4: Likewise.
18128         * m4/ls-mntd-fs.m4: Likewise.
18129         * m4/lstat.m4: Likewise.
18130         * m4/malloc.m4: Likewise.
18131         * m4/mathl.m4: Likewise.
18132         * m4/mbrtowc.m4: Likewise.
18133         * m4/mbstate_t.m4: Likewise.
18134         * m4/mbswidth.m4: Likewise.
18135         * m4/memchr.m4: Likewise.
18136         * m4/memcmp.m4: Likewise.
18137         * m4/memcpy.m4: Likewise.
18138         * m4/memmem.m4: Likewise.
18139         * m4/memmove.m4: Likewise.
18140         * m4/mempcpy.m4: Likewise.
18141         * m4/memrchr.m4: Likewise.
18142         * m4/memset.m4: Likewise.
18143         * m4/minmax.m4: Likewise.
18144         * m4/mkdir-slash.m4: Likewise.
18145         * m4/mkdtemp.m4: Likewise.
18146         * m4/mktime.m4: Likewise.
18147         * m4/mmap-anon.m4: Likewise.
18148         * m4/mountlist.m4: Likewise.
18149         * m4/nanosleep.m4: Likewise.
18150         * m4/nls.m4: Likewise.
18151         * m4/nocrash.m4: Likewise.
18152         * m4/open.m4: Likewise.
18153         * m4/openat.m4: Likewise.
18154         * m4/openmp.m4: Likewise.
18155         * m4/pathmax.m4: Likewise.
18156         * m4/perl.m4: Likewise.
18157         * m4/physmem.m4: Likewise.
18158         * m4/pipe.m4: Likewise.
18159         * m4/po.m4: Likewise.
18160         * m4/poll.m4: Likewise.
18161         * m4/posixtm.m4: Likewise.
18162         * m4/posixver.m4: Likewise.
18163         * m4/printf-frexp.m4: Likewise.
18164         * m4/printf-frexpl.m4: Likewise.
18165         * m4/printf-posix.m4: Likewise.
18166         * m4/printf-posix-rpl.m4: Likewise.
18167         * m4/printf.m4: Likewise.
18168         * m4/progtest.m4: Likewise.
18169         * m4/putenv.m4: Likewise.
18170         * m4/readline.m4: Likewise.
18171         * m4/readlink.m4: Likewise.
18172         * m4/readutmp.m4: Likewise.
18173         * m4/realloc.m4: Likewise.
18174         * m4/regex.m4: Likewise.
18175         * m4/relocatable.m4: Likewise.
18176         * m4/relocatable-lib.m4: Likewise.
18177         * m4/rename-dest-slash.m4: Likewise.
18178         * m4/rename.m4: Likewise.
18179         * m4/rmdir-errno.m4: Likewise.
18180         * m4/rmdir.m4: Likewise.
18181         * m4/roundf.m4: Likewise.
18182         * m4/roundl.m4: Likewise.
18183         * m4/rpmatch.m4: Likewise.
18184         * m4/save-cwd.m4: Likewise.
18185         * m4/selinux-selinux-h.m4: Likewise.
18186         * m4/setenv.m4: Likewise.
18187         * m4/settime.m4: Likewise.
18188         * m4/sig2str.m4: Likewise.
18189         * m4/sig_atomic_t.m4: Likewise.
18190         * m4/signalblocking.m4: Likewise.
18191         * m4/signbit.m4: Likewise.
18192         * m4/sigpipe.m4: Likewise.
18193         * m4/sockets.m4: Likewise.
18194         * m4/sockpfaf.m4: Likewise.
18195         * m4/st_dm_mode.m4: Likewise.
18196         * m4/stat-time.m4: Likewise.
18197         * m4/stdbool.m4: Likewise.
18198         * m4/stdint.m4: Likewise.
18199         * m4/stdint_h.m4: Likewise.
18200         * m4/stpcpy.m4: Likewise.
18201         * m4/stpncpy.m4: Likewise.
18202         * m4/strcase.m4: Likewise.
18203         * m4/strchrnul.m4: Likewise.
18204         * m4/strcspn.m4: Likewise.
18205         * m4/strdup.m4: Likewise.
18206         * m4/strftime.m4: Likewise.
18207         * m4/strndup.m4: Likewise.
18208         * m4/strnlen.m4: Likewise.
18209         * m4/strpbrk.m4: Likewise.
18210         * m4/strptime.m4: Likewise.
18211         * m4/strsep.m4: Likewise.
18212         * m4/strtod.m4: Likewise.
18213         * m4/strtoimax.m4: Likewise.
18214         * m4/strtok_r.m4: Likewise.
18215         * m4/strtol.m4: Likewise.
18216         * m4/strtoll.m4: Likewise.
18217         * m4/strtoul.m4: Likewise.
18218         * m4/strtoull.m4: Likewise.
18219         * m4/strtoumax.m4: Likewise.
18220         * m4/strverscmp.m4: Likewise.
18221         * m4/threadlib.m4: Likewise.
18222         * m4/timegm.m4: Likewise.
18223         * m4/tm_gmtoff.m4: Likewise.
18224         * m4/tmpdir.m4: Likewise.
18225         * m4/tmpfile.m4: Likewise.
18226         * m4/tzset.m4: Likewise.
18227         * m4/uintmax_t.m4: Likewise.
18228         * m4/unlinkdir.m4: Likewise.
18229         * m4/unlocked-io.m4: Likewise.
18230         * m4/uptime.m4: Likewise.
18231         * m4/userspec.m4: Likewise.
18232         * m4/utimbuf.m4: Likewise.
18233         * m4/utime.m4: Likewise.
18234         * m4/utimes-null.m4: Likewise.
18235         * m4/utimes.m4: Likewise.
18236         * m4/vararrays.m4: Likewise.
18237         * m4/vasnprintf.m4: Likewise.
18238         * m4/vfprintf-posix.m4: Likewise.
18239         * m4/vprintf-posix.m4: Likewise.
18240         * m4/wait-process.m4: Likewise.
18241         * m4/wchar_t.m4: Likewise.
18242         * m4/wint_t.m4: Likewise.
18243         * m4/write-any-file.m4: Likewise.
18244         * m4/yield.m4: Likewise.
18245
18246 2009-01-13  Bruno Haible  <bruno@clisp.org>
18247
18248         Avoid test-copy-file.sh failures when ACL support insufficient.
18249         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18250         TESTS_ENVIRONMENT.
18251         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18252         Reported by Jim Meyering.
18253
18254 2009-01-13  Bruno Haible  <bruno@clisp.org>
18255
18256         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18257         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18258         * modules/unistdio/u8-printf-parse (Files): Likewise.
18259         * modules/unistdio/u32-printf-parse (Files): Likewise.
18260         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18261
18262 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18263
18264         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18265         and m4/inttypes_h.m4 too.
18266
18267 2009-01-12  Eric Blake  <ebb9@byu.net>
18268
18269         tests: IRIX 6.2 cc can't compile -0.0 into .data
18270         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18271         rather than at compile-time.
18272         * tests/test-floorl.c (minus_zero): Likewise.
18273         * tests/test-frexpl.c (minus_zero): Likewise.
18274         * tests/test-isnan.c (minus_zerol): Likewise.
18275         * tests/test-isnanl.h (minus_zero): Likewise.
18276         * tests/test-ldexpl.c (minus_zero): Likewise.
18277         * tests/test-roundl.c (minus_zero): Likewise.
18278         * tests/test-signbit.c (minus_zerol): Likewise.
18279         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18280         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18281         * tests/test-truncl.c (minus_zero): Likewise.
18282         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18283         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18284         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18285
18286 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18287
18288         regex: fix glibc bug 9697
18289         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18290         handling.
18291
18292 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18293
18294         regex: fix glibc bug 697
18295         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18296         being NULL also if there are no backreferences.
18297
18298 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18299
18300         regex: merge glibc changes
18301         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18302         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18303         re_string_skip_chars, re_string_reconstruct): Likewise.
18304         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18305
18306 2009-01-07  Jim Meyering  <meyering@redhat.com>
18307
18308         poll: filter through cppi
18309         * lib/poll.c: Indent cpp directives to reflect nesting.
18310
18311 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18312
18313         poll: don't return uninitialized
18314         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18315
18316 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18317
18318         avoid compile failure on AIX 6.1
18319         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18320         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18321
18322 2009-01-04  Jim Meyering  <meyering@redhat.com>
18323
18324         remove duplicate inclusion of <stdio.h>
18325         * tests/test-fprintf-posix.c: Likewise.
18326         * tests/test-printf-posix.c: Likewise.
18327         * tests/test-snprintf-posix.c: Likewise.
18328         * tests/test-sprintf-posix.c: Likewise.
18329         * tests/test-vasprintf-posix.c: Likewise.
18330         * tests/test-vfprintf-posix.c: Likewise.
18331         * tests/test-vprintf-posix.c: Likewise.
18332         * tests/test-vsnprintf-posix.c: Likewise.
18333         * tests/test-vsprintf-posix.c: Likewise.
18334
18335 2009-01-03  Jim Meyering  <meyering@redhat.com>
18336
18337         gnulib-tool: fix sed-based filtering
18338         * gnulib-tool (func_filter_filelist): Remove extra backslash
18339         in sed_fff_filter definition.
18340
18341 2009-01-02  Jim Meyering  <meyering@redhat.com>
18342
18343         strftime: avoid compilation failure on Solaris 2.6
18344         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18345         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18346         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18347         be available.  Reported by Tom G. Christensen.  Details in
18348         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18349
18350 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18351             Bruno Haible  <bruno@clisp.org>
18352
18353         Speed up gnulib-tool by doing more string processing through shell
18354         built-ins.
18355         * gnulib-tool (fast_func_append): New variable.
18356         (func_remove_prefix, func_remove_suffix): New functions.
18357         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18358         (func_filter_filelist): New function.
18359         (func_get_dependencies): Use func_remove_suffix instead of sed.
18360         (func_get_automake_snippet): Use func_filter_filelist instead of a
18361         subshell and sed invocation.
18362
18363 2009-01-01  Bruno Haible  <bruno@clisp.org>
18364
18365         Fix a security bug.
18366         * gnulib-tool (func_import, import, update): Don't allow the characters
18367         '"', '$', '`', '\' in macro arguments that become part of commands that
18368         are evaluated.
18369
18370 2009-01-01  Bruno Haible  <bruno@clisp.org>
18371
18372         * gnulib-tool (func_reset_sigpipe): Add more comments.
18373
18374 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18375
18376         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18377         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18378         already know the answer.
18379
18380 2009-01-01  Jim Meyering  <meyering@redhat.com>
18381
18382         * lib/version-etc.c (version_etc_va): Update copyright year.
18383
18384 2008-12-30  Bruno Haible  <bruno@clisp.org>
18385
18386         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18387         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18388         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18389
18390 2008-12-29  Eric Blake  <ebb9@byu.net>
18391
18392         multiarch: avoid autoconf AC_REQUIRE bug
18393         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18394         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18395         2.63 and older.
18396         Reported by Bruno Haible, and analyzed in
18397         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18398
18399 2008-12-29  Bruno Haible  <bruno@clisp.org>
18400
18401         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18402         files in subdirectories correctly.
18403         Reported by Ralf Wildenhues.
18404
18405 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18406
18407         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18408         rather than 'join FILE -', for Solaris join.
18409
18410 2008-12-29  Bruno Haible  <bruno@clisp.org>
18411
18412         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18413         quoting.
18414         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18415         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18416         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18417         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18418         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18419         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18420         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18421         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18422         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18423         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18424         * m4/nls.m4 (AM_NLS): Likewise.
18425         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18426         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18427         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18428         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18429         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18430         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18431         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18432         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18433         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18434         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18435         * m4/xsize.m4 (gl_XSIZE): Likewise.
18436         Suggested by Jim Meyering.
18437
18438 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18439
18440         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18441         * lib/parse-duration.c: use a switch instead of cascading if's.
18442
18443 2008-12-29  Eric Blake  <ebb9@byu.net>
18444
18445         wchar.h: supply WEOF on Irix 5.3
18446         * lib/wchar.in.h (wint_t): Also supply WEOF.
18447         * lib/wctype.in.h (wint_t): Likewise.
18448         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18449         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18450         Reported by Tom G. Christensen.
18451
18452 2008-12-26  Bruno Haible  <bruno@clisp.org>
18453
18454         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18455         i486, i586, i686.
18456
18457 2008-12-26  Bruno Haible  <bruno@clisp.org>
18458
18459         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18460
18461 2008-12-26  Bruno Haible  <bruno@clisp.org>
18462
18463         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18464         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18465         not __STDC_CONSTANT_MACROS.
18466         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18467
18468 2008-12-25  Bruno Haible  <bruno@clisp.org>
18469
18470         Add support for universal builds to vasnprintf.
18471         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18472         universal builds, guess no.
18473         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18474         * modules/vasprintf-posix (Depends-on): Likewise.
18475         * modules/fprintf-posix (Depends-on): Likewise.
18476         * modules/vfprintf-posix (Depends-on): Likewise.
18477         * modules/snprintf-posix (Depends-on): Likewise.
18478         * modules/vsnprintf-posix (Depends-on): Likewise.
18479         * modules/sprintf-posix (Depends-on): Likewise.
18480         * modules/vsprintf-posix (Depends-on): Likewise.
18481         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18482         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18483         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18484         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18485         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18486         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18487         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18488
18489         Add support for universal builds to <inttypes.h>.
18490         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18491         _SCNu64_PREFIX): In Apple
18492         universal builds, define directly, using _LP64.
18493         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18494         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18495         * modules/inttypes (Depends-on): Add multiarch.
18496         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18497
18498         Add support for universal builds to <stdint.h>.
18499         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18500         universal builds, define directly, using _LP64.
18501         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18502         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18503         and size_t.
18504         * modules/stdint (Depends-on): Add multiarch.
18505         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18506
18507         New module 'multiarch'.
18508         * modules/multiarch: New file.
18509         * m4/multiarch.m4: New file.
18510
18511 2008-12-25  Bruno Haible  <bruno@clisp.org>
18512
18513         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18514
18515 2008-12-25  Bruno Haible  <bruno@clisp.org>
18516
18517         * modules/btowc (License): Relicense under LGPLv2+.
18518         * modules/mbsinit (License): Likewise.
18519         * modules/mbrtowc (License): Likewise.
18520         * modules/wcrtomb (License): Likewise.
18521         * modules/streq (License): Likewise.
18522         Reported by David Lutterkort <lutter@redhat.com>.
18523
18524 2008-12-23  Bruno Haible  <bruno@clisp.org>
18525
18526         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18527
18528 2008-12-23  Bruno Haible  <bruno@clisp.org>
18529
18530         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18531         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18532         GETADDRINFO_LIB, not in LIBS.
18533         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18534         * modules/canon-host (Link): Likewise.
18535         * NEWS: Mention the change.
18536         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18537         GETADDRINFO_LIB.
18538
18539 2008-12-22  Bruno Haible  <bruno@clisp.org>
18540
18541         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18542         * doc/posix-functions/iswalpha_l.texi: Likewise.
18543         * doc/posix-functions/iswblank_l.texi: Likewise.
18544         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18545         * doc/posix-functions/iswctype_l.texi: Likewise.
18546         * doc/posix-functions/iswdigit_l.texi: Likewise.
18547         * doc/posix-functions/iswgraph_l.texi: Likewise.
18548         * doc/posix-functions/iswlower_l.texi: Likewise.
18549         * doc/posix-functions/iswprint_l.texi: Likewise.
18550         * doc/posix-functions/iswpunct_l.texi: Likewise.
18551         * doc/posix-functions/iswspace_l.texi: Likewise.
18552         * doc/posix-functions/iswupper_l.texi: Likewise.
18553         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18554         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18555         * doc/posix-functions/open_wmemstream.texi: Likewise.
18556         * doc/posix-functions/swscanf.texi: Likewise.
18557         * doc/posix-functions/towctrans_l.texi: Likewise.
18558         * doc/posix-functions/towlower.texi: Likewise.
18559         * doc/posix-functions/towlower_l.texi: Likewise.
18560         * doc/posix-functions/towupper.texi: Likewise.
18561         * doc/posix-functions/towupper_l.texi: Likewise.
18562         * doc/posix-functions/vfwprintf.texi: Likewise.
18563         * doc/posix-functions/vfwscanf.texi: Likewise.
18564         * doc/posix-functions/vswscanf.texi: Likewise.
18565         * doc/posix-functions/vwprintf.texi: Likewise.
18566         * doc/posix-functions/vwscanf.texi: Likewise.
18567         * doc/posix-functions/wcpcpy.texi: Likewise.
18568         * doc/posix-functions/wcpncpy.texi: Likewise.
18569         * doc/posix-functions/wcscasecmp.texi: Likewise.
18570         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18571         * doc/posix-functions/wcscoll_l.texi: Likewise.
18572         * doc/posix-functions/wcsdup.texi: Likewise.
18573         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18574         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18575         * doc/posix-functions/wcsnlen.texi: Likewise.
18576         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18577         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18578         * doc/posix-functions/wctrans_l.texi: Likewise.
18579         * doc/posix-functions/wctype_l.texi: Likewise.
18580         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18581         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18582         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18583         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18584         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18585         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18586         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18587         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18588         * doc/glibc-functions/wcschrnul.texi: Likewise.
18589         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18590         * doc/glibc-functions/wcstod_l.texi: Likewise.
18591         * doc/glibc-functions/wcstof_l.texi: Likewise.
18592         * doc/glibc-functions/wcstol_l.texi: Likewise.
18593         * doc/glibc-functions/wcstold_l.texi: Likewise.
18594         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18595         * doc/glibc-functions/wcstoq.texi: Likewise.
18596         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18597         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18598         * doc/glibc-functions/wcstouq.texi: Likewise.
18599         * doc/glibc-functions/wmempcpy.texi: Likewise.
18600
18601 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18602             Eric Blake  <ebb9@byu.net>
18603             Paolo Bonzini  <bonzini@gnu.org>
18604             Bruno Haible  <bruno@clisp.org>
18605
18606         Make c-stack work on Haiku.
18607         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18608         (c_stack_action): Use SA_ONSTACK flag.
18609
18610 2008-12-22  Bruno Haible  <bruno@clisp.org>
18611
18612         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18613
18614 2008-12-22  Bruno Haible  <bruno@clisp.org>
18615
18616         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18617         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18618         being overridden.
18619         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18620         New macros.
18621         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18623         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18624         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18625
18626 2008-12-22  Bruno Haible  <bruno@clisp.org>
18627
18628         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18629         from test code.
18630
18631 2008-12-22  Eric Blake  <ebb9@byu.net>
18632
18633         Avoid gcc warnings on cygwin.
18634         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18635         Avoid unused variable.
18636         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18637         Likewise.
18638
18639 2008-12-22  Bruno Haible  <bruno@clisp.org>
18640
18641         Remove HAVE_MBRTOWC conditionals.
18642         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18643         (mbscasecmp): Assume mbrtowc function.
18644         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18645         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18646         * lib/mbschr.c: Include mbuiter.h unconditionally.
18647         (mbschr): Assume mbrtowc function.
18648         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18649         (mbscspn): Assume mbrtowc function.
18650         * lib/mbslen.c: Include mbuiter.h unconditionally.
18651         (mbslen): Assume mbrtowc function.
18652         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18653         (mbsncasecmp): Assume mbrtowc function.
18654         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18655         (mbsnlen): Assume mbrtowc function.
18656         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18657         (mbspbrk): Assume mbrtowc function.
18658         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18659         (mbspcasecmp): Assume mbrtowc function.
18660         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18661         (mbsrchr): Assume mbrtowc function.
18662         * lib/mbssep.c: Include mbuiter.h unconditionally.
18663         (mbssep): Assume mbrtowc function.
18664         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18665         (mbsspn): Assume mbrtowc function.
18666         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18667         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18668         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18669         (mbstok_r): Assume mbrtowc function.
18670         * lib/propername.c: Include mbuiter.h unconditionally.
18671         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18672         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18673         (trim2): Assume mbrtowc function.
18674         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18675         (mbsnwidth): Assume mbrtowc function.
18676         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18677         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18678         fallback definitions.
18679         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18680
18681 2008-12-22  Bruno Haible  <bruno@clisp.org>
18682
18683         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18684
18685 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18686
18687         * modules/regex: Request emulations for the mb*/wc* functions we need.
18688         * m4/regex.m4: Don't look for those functions here.
18689         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18690
18691 2008-12-22  Bruno Haible  <bruno@clisp.org>
18692
18693         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18694
18695 2008-12-21  Bruno Haible  <bruno@clisp.org>
18696
18697         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18698         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18699         (Include): Remove conditionalization.
18700         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18701         (Include): Remove conditionalization.
18702         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18703         (Include): Remove conditionalization.
18704         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18705         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18706         * NEWS: Mention the change.
18707         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18708         via Sergey Poznyakoff <gray@gnu.org.ua>.
18709
18710 2008-12-21  Bruno Haible  <bruno@clisp.org>
18711
18712         * MODULES.html.sh (Extended multibyte and wide character utilities
18713         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18714         wcrtomb, wcsrtombs.
18715         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18716         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18717         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18718         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18719
18720 2008-12-21  Bruno Haible  <bruno@clisp.org>
18721
18722         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18723
18724 2008-12-21  Bruno Haible  <bruno@clisp.org>
18725
18726         * modules/wcsnrtombs-tests: New file.
18727         * tests/test-wcsnrtombs1.sh: New file.
18728         * tests/test-wcsnrtombs2.sh: New file.
18729         * tests/test-wcsnrtombs3.sh: New file.
18730         * tests/test-wcsnrtombs4.sh: New file.
18731         * tests/test-wcsnrtombs.c: New file.
18732
18733         New module 'wcsnrtombs'.
18734         * lib/wchar.in.h (wcsnrtombs): New declaration.
18735         * lib/wcsnrtombs.c: New file.
18736         * lib/wcsrtombs-state.c: New file.
18737         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18738         (internal_state): Remove variable.
18739         * m4/wcsnrtombs.m4: New file.
18740         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18741         compilation units.
18742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18743         HAVE_WCSNRTOMBS.
18744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18745         HAVE_WCSNRTOMBS.
18746         * modules/wcsnrtombs: New file.
18747         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18748         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18749
18750 2008-12-21  Bruno Haible  <bruno@clisp.org>
18751
18752         * modules/wcsrtombs-tests: New file.
18753         * tests/test-wcsrtombs1.sh: New file.
18754         * tests/test-wcsrtombs2.sh: New file.
18755         * tests/test-wcsrtombs3.sh: New file.
18756         * tests/test-wcsrtombs4.sh: New file.
18757         * tests/test-wcsrtombs.c: New file.
18758
18759         New module 'wcsrtombs'.
18760         * lib/wchar.in.h (wcsrtombs): New declaration.
18761         * lib/wcsrtombs.c: New file.
18762         * m4/wcsrtombs.m4: New file.
18763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18764         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18765         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18766         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18767         * modules/wcsrtombs: New file.
18768         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18769         bugs.
18770
18771 2008-12-21  Bruno Haible  <bruno@clisp.org>
18772
18773         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18774         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18775         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18776         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18777         if not correct.
18778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18779         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18780         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18781         m4/locale-zh.m4, m4/codeset.m4.
18782         * doc/posix-functions/wcrtomb.texi: Document the bug.
18783
18784 2008-12-21  Bruno Haible  <bruno@clisp.org>
18785
18786         Work around a btowc() bug on IRIX 6.5.
18787         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18788         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18789         REPLACE_WTOBC if not.
18790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18791         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18792         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18793
18794 2008-12-21  Bruno Haible  <bruno@clisp.org>
18795
18796         * modules/wcrtomb-tests: New file.
18797         * tests/test-wcrtomb.sh: New file.
18798         * tests/test-wcrtomb.c: New file.
18799
18800         New module 'wcrtomb'.
18801         * lib/wchar.in.h (wcrtomb): New declaration.
18802         * lib/wcrtomb.c: New file.
18803         * m4/wcrtomb.m4: New file.
18804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18805         HAVE_WCRTOMB.
18806         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18807         HAVE_WCRTOMB.
18808         * modules/wcrtomb: New file.
18809         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18810
18811 2008-12-21  Bruno Haible  <bruno@clisp.org>
18812
18813         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18814         * modules/mbsrtowcs (Files): Likewise.
18815         * modules/wctob (Files): Likewise.
18816         * modules/c-strcase-tests (Files): Likewise.
18817         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18818         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18819         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18820         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18821         * modules/vasnprintf-posix-tests (Files): Likewise.
18822
18823 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18824
18825         gitlog-to-changelog: pass all command-line arguments to git-log
18826         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18827         it is sometimes convenient to filter the commits in various ways.
18828         gitlog-to-changelog only allows --since to specify a start date,
18829         but git-log itself supports many other filtering mechanisms.
18830         At the moment, I want to filter by branch name.  Rather than
18831         adding a --branch option to gitlog-to-changelog, it seems more
18832         flexible to simply pass all options directly to git-log and let
18833         git do the work.  Notice that this effectively makes --since a
18834         redundant option for gitlog-to-changelog, but removing it would
18835         require current usage to change since calls would then require
18836         an additional '--'.
18837
18838 2008-12-21  Bruno Haible  <bruno@clisp.org>
18839
18840         * modules/mbsnrtowcs-tests: New file.
18841         * tests/test-mbsnrtowcs1.sh: New file.
18842         * tests/test-mbsnrtowcs2.sh: New file.
18843         * tests/test-mbsnrtowcs3.sh: New file.
18844         * tests/test-mbsnrtowcs4.sh: New file.
18845         * tests/test-mbsnrtowcs.c: New file.
18846
18847         New module 'mbsnrtowcs'.
18848         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18849         * lib/mbsnrtowcs.c: New file.
18850         * lib/mbsrtowcs-state.c: New file.
18851         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18852         (internal_state): Remove variable.
18853         * m4/mbsnrtowcs.m4: New file.
18854         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18855         compilation units.
18856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18857         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18858         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18859         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18860         * modules/mbsnrtowcs: New file.
18861         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18862         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18863         portability problem.
18864
18865 2008-12-21  Bruno Haible  <bruno@clisp.org>
18866
18867         Work around mbsrtowcs bug.
18868         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18869         (gl_FUNC_MBSRTOWCS): Invoke it.
18870         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18871         m4/locale-zh.m4.
18872         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18873
18874 2008-12-21  Bruno Haible  <bruno@clisp.org>
18875
18876         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18877
18878 2008-12-21  Bruno Haible  <bruno@clisp.org>
18879
18880         Update doc for AIX.
18881         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18882         16-bit wchar_t type.
18883         * doc/posix-functions/btowc.texi: Likewise.
18884         * doc/posix-functions/fgetwc.texi: Likewise.
18885         * doc/posix-functions/fgetws.texi: Likewise.
18886         * doc/posix-functions/fputwc.texi: Likewise.
18887         * doc/posix-functions/fputws.texi: Likewise.
18888         * doc/posix-functions/fwide.texi: Likewise.
18889         * doc/posix-functions/fwprintf.texi: Likewise.
18890         * doc/posix-functions/fwscanf.texi: Likewise.
18891         * doc/posix-functions/getwchar.texi: Likewise.
18892         * doc/posix-functions/getwc.texi: Likewise.
18893         * doc/posix-functions/iswalnum.texi: Likewise.
18894         * doc/posix-functions/iswalpha.texi: Likewise.
18895         * doc/posix-functions/iswblank.texi: Likewise.
18896         * doc/posix-functions/iswcntrl.texi: Likewise.
18897         * doc/posix-functions/iswctype.texi: Likewise.
18898         * doc/posix-functions/iswdigit.texi: Likewise.
18899         * doc/posix-functions/iswgraph.texi: Likewise.
18900         * doc/posix-functions/iswlower.texi: Likewise.
18901         * doc/posix-functions/iswprint.texi: Likewise.
18902         * doc/posix-functions/iswpunct.texi: Likewise.
18903         * doc/posix-functions/iswspace.texi: Likewise.
18904         * doc/posix-functions/iswupper.texi: Likewise.
18905         * doc/posix-functions/iswxdigit.texi: Likewise.
18906         * doc/posix-functions/mbrtowc.texi: Likewise.
18907         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18908         * doc/posix-functions/mbstowcs.texi: Likewise.
18909         * doc/posix-functions/mbtowc.texi: Likewise.
18910         * doc/posix-functions/putwchar.texi: Likewise.
18911         * doc/posix-functions/putwc.texi: Likewise.
18912         * doc/posix-functions/swprintf.texi: Likewise.
18913         * doc/posix-functions/tolower.texi: Likewise.
18914         * doc/posix-functions/toupper.texi: Likewise.
18915         * doc/posix-functions/towctrans.texi: Likewise.
18916         * doc/posix-functions/ungetwc.texi: Likewise.
18917         * doc/posix-functions/vswprintf.texi: Likewise.
18918         * doc/posix-functions/wcrtomb.texi: Likewise.
18919         * doc/posix-functions/wcscat.texi: Likewise.
18920         * doc/posix-functions/wcschr.texi: Likewise.
18921         * doc/posix-functions/wcscmp.texi: Likewise.
18922         * doc/posix-functions/wcscoll.texi: Likewise.
18923         * doc/posix-functions/wcscpy.texi: Likewise.
18924         * doc/posix-functions/wcscspn.texi: Likewise.
18925         * doc/posix-functions/wcsftime.texi: Likewise.
18926         * doc/posix-functions/wcslen.texi: Likewise.
18927         * doc/posix-functions/wcsncat.texi: Likewise.
18928         * doc/posix-functions/wcsncmp.texi: Likewise.
18929         * doc/posix-functions/wcsncpy.texi: Likewise.
18930         * doc/posix-functions/wcspbrk.texi: Likewise.
18931         * doc/posix-functions/wcsrchr.texi: Likewise.
18932         * doc/posix-functions/wcsrtombs.texi: Likewise.
18933         * doc/posix-functions/wcsspn.texi: Likewise.
18934         * doc/posix-functions/wcsstr.texi: Likewise.
18935         * doc/posix-functions/wcstod.texi: Likewise.
18936         * doc/posix-functions/wcstof.texi: Likewise.
18937         * doc/posix-functions/wcstoimax.texi: Likewise.
18938         * doc/posix-functions/wcstok.texi: Likewise.
18939         * doc/posix-functions/wcstold.texi: Likewise.
18940         * doc/posix-functions/wcstoll.texi: Likewise.
18941         * doc/posix-functions/wcstol.texi: Likewise.
18942         * doc/posix-functions/wcstombs.texi: Likewise.
18943         * doc/posix-functions/wcstoull.texi: Likewise.
18944         * doc/posix-functions/wcstoul.texi: Likewise.
18945         * doc/posix-functions/wcstoumax.texi: Likewise.
18946         * doc/posix-functions/wcswidth.texi: Likewise.
18947         * doc/posix-functions/wcsxfrm.texi: Likewise.
18948         * doc/posix-functions/wctob.texi: Likewise.
18949         * doc/posix-functions/wctomb.texi: Likewise.
18950         * doc/posix-functions/wctrans.texi: Likewise.
18951         * doc/posix-functions/wctype.texi: Likewise.
18952         * doc/posix-functions/wcwidth.texi: Likewise.
18953         * doc/posix-functions/wmemchr.texi: Likewise.
18954         * doc/posix-functions/wmemcmp.texi: Likewise.
18955         * doc/posix-functions/wmemcpy.texi: Likewise.
18956         * doc/posix-functions/wmemmove.texi: Likewise.
18957         * doc/posix-functions/wmemset.texi: Likewise.
18958         * doc/posix-functions/wprintf.texi: Likewise.
18959         * doc/posix-functions/wscanf.texi: Likewise.
18960
18961 2008-12-21  Bruno Haible  <bruno@clisp.org>
18962
18963         Update doc for HP-UX 11.11.
18964         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18965         in HP-UX version 11.00, not in all versions of HP-UX 11.
18966         * doc/posix-functions/fwide.texi: Likewise.
18967         * doc/posix-functions/fwprintf.texi: Likewise.
18968         * doc/posix-functions/fwscanf.texi: Likewise.
18969         * doc/posix-functions/inet_ntop.texi: Likewise.
18970         * doc/posix-functions/inet_pton.texi: Likewise.
18971         * doc/posix-functions/mbrlen.texi: Likewise.
18972         * doc/posix-functions/mbrtowc.texi: Likewise.
18973         * doc/posix-functions/mbsinit.texi: Likewise.
18974         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18975         * doc/posix-functions/swprintf.texi: Likewise.
18976         * doc/posix-functions/swscanf.texi: Likewise.
18977         * doc/posix-functions/towctrans.texi: Likewise.
18978         * doc/posix-functions/vfwprintf.texi: Likewise.
18979         * doc/posix-functions/vswprintf.texi: Likewise.
18980         * doc/posix-functions/vwprintf.texi: Likewise.
18981         * doc/posix-functions/wcrtomb.texi: Likewise.
18982         * doc/posix-functions/wcsrtombs.texi: Likewise.
18983         * doc/posix-functions/wcsstr.texi: Likewise.
18984         * doc/posix-functions/wctob.texi: Likewise.
18985         * doc/posix-functions/wctrans.texi: Likewise.
18986         * doc/posix-functions/wmemchr.texi: Likewise.
18987         * doc/posix-functions/wmemcmp.texi: Likewise.
18988         * doc/posix-functions/wmemcpy.texi: Likewise.
18989         * doc/posix-functions/wmemmove.texi: Likewise.
18990         * doc/posix-functions/wmemset.texi: Likewise.
18991         * doc/posix-functions/wprintf.texi: Likewise.
18992         * doc/posix-functions/wscanf.texi: Likewise.
18993
18994 2008-12-21  Bruno Haible  <bruno@clisp.org>
18995
18996         Work around a portability problem.
18997         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18998         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18999
19000 2008-12-20  Bruno Haible  <bruno@clisp.org>
19001
19002         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19003         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19004         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19006         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19007
19008         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19009         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19010         set.
19011         (GNULIB_defined_mbstate_t): New macro.
19012         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19013         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19014         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19015         reuses the system's mbrtowc function but works around the bugs.
19016         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19017         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19018         macros.
19019         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19020         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19021         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19022         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19023         REPLACE_MBSINIT if mbsinit needs to be overridden.
19024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19025         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19026         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19027         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19028         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19029         m4/locale-zh.m4.
19030         (Depends): Add mbsinit.
19031         * modules/mbsinit (Depends): Add mbrtowc.
19032         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19033
19034 2008-12-20  Bruno Haible  <bruno@clisp.org>
19035
19036         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19037         so that there are no conversion errors on AIX.
19038         * tests/test-mbsrtowcs.c (main): LIkewise.
19039
19040 2008-12-20  Bruno Haible  <bruno@clisp.org>
19041
19042         Work around wctob bug on Solaris <= 9.
19043         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19044         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19046         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19047         * modules/wctob (Files): Add m4/locale-fr.m4.
19048         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19049
19050 2008-12-20  Bruno Haible  <bruno@clisp.org>
19051
19052         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19053         /dev/null.
19054         * tests/test-select-in.sh: Likewise.
19055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19056
19057 2008-12-20  Bruno Haible  <bruno@clisp.org>
19058
19059         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19060         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19061         Cygwin 1.5.x.
19062
19063 2008-12-20  Bruno Haible  <bruno@clisp.org>
19064
19065         Ensure mbstate_t is defined on HP-UX 11.11.
19066         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19067         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19068         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19069         AC_USE_SYSTEM_EXTENSIONS.
19070         * modules/fnmatch (Depends-on): Add extensions.
19071         * modules/mbrlen (Depends-on): Likewise.
19072         * modules/mbrtowc (Depends-on): Likewise.
19073         * modules/mbsinit (Depends-on): Likewise.
19074         * modules/mbsrtowcs (Depends-on): Likewise.
19075         * modules/mbswidth (Depends-on): Likewise.
19076         * modules/quotearg (Depends-on): Likewise.
19077         * modules/strftime (Depends-on): Likewise.
19078
19079 2008-12-20  Bruno Haible  <bruno@clisp.org>
19080
19081         Ensure wctob is declared on IRIX 6.5.
19082         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19083         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19084         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19086         of HAVE_WCTOB.
19087         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19088         HAVE_WCTOB.
19089         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19090
19091 2008-12-19  Bruno Haible  <bruno@clisp.org>
19092
19093         * modules/mbsrtowcs-tests: New file.
19094         * tests/test-mbsrtowcs1.sh: New file.
19095         * tests/test-mbsrtowcs2.sh: New file.
19096         * tests/test-mbsrtowcs3.sh: New file.
19097         * tests/test-mbsrtowcs4.sh: New file.
19098         * tests/test-mbsrtowcs.c: New file.
19099
19100         New module 'mbsrtowcs'.
19101         * lib/wchar.in.h (mbsrtowcs): New declaration.
19102         * lib/mbsrtowcs.c: New file.
19103         * m4/mbsrtowcs.m4: New file.
19104         * modules/mbsrtowcs: New file.
19105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19106         HAVE_MBSRTOWCS.
19107         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19108         HAVE_MBSRTOWCS.
19109         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19110
19111 2008-12-19  Bruno Haible  <bruno@clisp.org>
19112
19113         New module 'mbrlen'.
19114         * lib/wchar.in.h (mbrlen): New declaration.
19115         * lib/mbrlen.c: New file.
19116         * m4/mbrlen.m4: New file.
19117         * modules/mbrlen: New file.
19118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19119         HAVE_MBRLEN.
19120         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19121         HAVE_MBRLEN.
19122         * doc/posix-functions/mbrlen.texi: Document the new module.
19123
19124 2008-12-19  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19127         * modules/mbrtowc (Depends-on): Add verify.
19128         Suggested by Paul Eggert.
19129
19130 2008-12-18  Bruno Haible  <bruno@clisp.org>
19131
19132         * modules/mbsinit-tests: New file.
19133         * tests/test-mbsinit.sh: New file.
19134         * tests/test-mbsinit.c: New file.
19135
19136 2008-12-18  Bruno Haible  <bruno@clisp.org>
19137
19138         * modules/mbrtowc-tests: New file.
19139         * tests/test-mbrtowc1.sh: New file.
19140         * tests/test-mbrtowc2.sh: New file.
19141         * tests/test-mbrtowc3.sh: New file.
19142         * tests/test-mbrtowc4.sh: New file.
19143         * tests/test-mbrtowc.c: New file.
19144
19145         New module 'mbrtowc'.
19146         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19147         mbsinit and mbrtowc.
19148         (mbrtowc): New declaration.
19149         * lib/mbrtowc.c: New file.
19150         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19151         * modules/mbrtowc: New file.
19152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19153         HAVE_MBRTOWC.
19154         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19155         HAVE_MBRTOWC.
19156         * doc/posix-functions/mbrtowc.texi: Document the new module.
19157
19158 2008-12-18  Bruno Haible  <bruno@clisp.org>
19159
19160         New module 'wctob'.
19161         * lib/wchar.in.h (wctob): New declaration.
19162         * lib/wctob.c: New file.
19163         * m4/wctob.m4: New file.
19164         * modules/wctob: New file.
19165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19166         HAVE_WCTOB.
19167         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19168         * doc/posix-functions/wctob.texi: Document the new module.
19169
19170 2008-12-18  Bruno Haible  <bruno@clisp.org>
19171
19172         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19173         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19174
19175 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19176
19177         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19178         G. Christensen" <tgc@jupiterrise.com>.
19179
19180         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19181         G. Christensen" <tgc@jupiterrise.com>.
19182
19183         * lib/flock.c: Need to include string.h.  Reported by "Tom
19184         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19185         <ebb9@byu.net>.
19186
19187 2008-12-18  Bruno Haible  <bruno@clisp.org>
19188
19189         * m4/locale-ja.m4: New file, from GNU gettext.
19190
19191 2008-12-17  Bruno Haible  <bruno@clisp.org>
19192
19193         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19194         Suggested by Eric Blake.
19195
19196 2008-12-17  Bruno Haible  <bruno@clisp.org>
19197
19198         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19199
19200 2008-12-17  Bruno Haible  <bruno@clisp.org>
19201
19202         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19203         * modules/mbsinit (Depends-on): Add verify.
19204         Suggested by Paul Eggert.
19205
19206 2008-12-17  Bruno Haible  <bruno@clisp.org>
19207
19208         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19209         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19210         gl_FUNC_MBRTOWC.
19211         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19212         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19213         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19214         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19215         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19216         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19217         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19218         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19219         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19220         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19221         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19222         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19223         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19224         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19225         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19226         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19227         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19228         * modules/trim (configure.ac): Likewise.
19229
19230 2008-12-17  Bruno Haible  <bruno@clisp.org>
19231
19232         * modules/btowc-tests: New file.
19233         * tests/test-btowc1.sh: New file.
19234         * tests/test-btowc2.sh: New file.
19235         * tests/test-btowc.c: New file.
19236
19237         New module 'btowc'.
19238         * lib/wchar.in.h (btowc): New declaration.
19239         * lib/btowc.c: New file.
19240         * m4/btowc.m4: New file.
19241         * modules/btowc: New file.
19242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19243         HAVE_BTOWC.
19244         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19245         * doc/posix-functions/btowc.texi: Document the new module.
19246
19247 2008-12-17  Bruno Haible  <bruno@clisp.org>
19248
19249         New module 'mbsinit'.
19250         * lib/wchar.in.h (mbsinit): New declaration.
19251         * lib/mbsinit.c: New file.
19252         * m4/mbsinit.m4: New file.
19253         * modules/mbsinit: New file.
19254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19255         HAVE_MBSINIT.
19256         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19257         HAVE_MBSINIT.
19258         * doc/posix-functions/mbsinit.texi: Document the new module.
19259
19260 2008-12-16  Bruno Haible  <bruno@clisp.org>
19261
19262         * lib/unistd.in.h: Add comment.
19263         * tests/test-environ.c: Don't include <stdlib.h>.
19264
19265 2008-12-16  Bruno Haible  <bruno@clisp.org>
19266
19267         * lib/parse-duration.h (parse_duration): Document return value
19268         convention.
19269         * lib/parse-duration.c: Include specification header first. Add
19270         comments.
19271         (_): Remove macro.
19272         (parse_year_month_day, parse_hour_minute_second): Move side effects
19273         outside of strchr call.
19274         (parse_non_iso8601): Move side effects outside of isspace call.
19275         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19276         call.
19277
19278 2008-12-16  Bruno Haible  <bruno@clisp.org>
19279
19280         * tests/test-parse-duration.sh: Produce no output when the test
19281         succeeds.
19282
19283 2008-12-16  Bruno Haible  <bruno@clisp.org>
19284
19285         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19286         expressions.
19287
19288 2008-12-15  Bruno Haible  <bruno@clisp.org>
19289
19290         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19291         * doc/glibc-functions/flistxattr.texi: Likewise.
19292         * doc/glibc-functions/fopencookie.texi: Likewise.
19293         * doc/glibc-functions/fremovexattr.texi: Likewise.
19294         * doc/glibc-functions/fsetxattr.texi: Likewise.
19295         * doc/glibc-functions/getxattr.texi: Likewise.
19296         * doc/glibc-functions/lgetxattr.texi: Likewise.
19297         * doc/glibc-functions/listxattr.texi: Likewise.
19298         * doc/glibc-functions/llistxattr.texi: Likewise.
19299         * doc/glibc-functions/lremovexattr.texi: Likewise.
19300         * doc/glibc-functions/lsetxattr.texi: Likewise.
19301         * doc/glibc-functions/removexattr.texi: Likewise.
19302         * doc/glibc-functions/setxattr.texi: Likewise.
19303         * doc/posix-functions/open_memstream.texi: Likewise.
19304
19305 2008-12-15  Eric Blake  <ebb9@byu.net>
19306
19307         Update doc for cygwin 1.7.
19308         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19309         functions.
19310         * doc/posix-functions/fchmodat.texi: Likewise.
19311         * doc/posix-functions/fchownat.texi: Likewise.
19312         * doc/posix-functions/fdopendir.texi: Likewise.
19313         * doc/posix-functions/fmemopen.texi: Likewise.
19314         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19315         * doc/posix-functions/fstatat.texi: Likewise.
19316         * doc/posix-functions/futimens.texi: Likewise.
19317         * doc/posix-functions/gai_strerror.texi: Likewise.
19318         * doc/posix-functions/getaddrinfo.texi: Likewise.
19319         * doc/posix-functions/getnameinfo.texi: Likewise.
19320         * doc/posix-functions/if_freenameindex.texi: Likewise.
19321         * doc/posix-functions/if_indextoname.texi: Likewise.
19322         * doc/posix-functions/if_nameindex.texi: Likewise.
19323         * doc/posix-functions/if_nametoindex.texi: Likewise.
19324         * doc/posix-functions/insque.texi: Likewise.
19325         * doc/posix-functions/linkat.texi: Likewise.
19326         * doc/posix-functions/llrint.texi: Likewise.
19327         * doc/posix-functions/llrintf.texi: Likewise.
19328         * doc/posix-functions/llrintl.texi: Likewise.
19329         * doc/posix-functions/lockf.texi: Likewise.
19330         * doc/posix-functions/lrintl.texi: Likewise.
19331         * doc/posix-functions/mkdirat.texi: Likewise.
19332         * doc/posix-functions/mkfifoat.texi: Likewise.
19333         * doc/posix-functions/mknodat.texi: Likewise.
19334         * doc/posix-functions/mq_close.texi: Likewise.
19335         * doc/posix-functions/mq_getattr.texi: Likewise.
19336         * doc/posix-functions/mq_notify.texi: Likewise.
19337         * doc/posix-functions/mq_open.texi: Likewise.
19338         * doc/posix-functions/mq_receive.texi: Likewise.
19339         * doc/posix-functions/mq_send.texi: Likewise.
19340         * doc/posix-functions/mq_setattr.texi: Likewise.
19341         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19342         * doc/posix-functions/mq_timedsend.texi: Likewise.
19343         * doc/posix-functions/mq_unlink.texi: Likewise.
19344         * doc/posix-functions/open_memstream.texi: Likewise.
19345         * doc/posix-functions/openat.texi: Likewise.
19346         * doc/posix-functions/posix_fadvise.texi: Likewise.
19347         * doc/posix-functions/posix_fallocate.texi: Likewise.
19348         * doc/posix-functions/posix_madvise.texi: Likewise.
19349         * doc/posix-functions/posix_memalign.texi: Likewise.
19350         * doc/posix-functions/posix_openpt.texi: Likewise.
19351         * doc/posix-functions/readlinkat.texi: Likewise.
19352         * doc/posix-functions/remque.texi: Likewise.
19353         * doc/posix-functions/renameat.texi: Likewise.
19354         * doc/posix-functions/rintl.texi: Likewise.
19355         * doc/posix-functions/sem_unlink.texi: Likewise.
19356         * doc/posix-functions/shm_open.texi: Likewise.
19357         * doc/posix-functions/shm_unlink.texi: Likewise.
19358         * doc/posix-functions/signgam.texi: Likewise.
19359         * doc/posix-functions/sigset.texi: Likewise.
19360         * doc/posix-functions/stpcpy.texi: Likewise.
19361         * doc/posix-functions/stpncpy.texi: Likewise.
19362         * doc/posix-functions/strerror.texi: Likewise.
19363         * doc/posix-functions/strtod.texi: Likewise.
19364         * doc/posix-functions/symlinkat.texi: Likewise.
19365         * doc/posix-functions/unlinkat.texi: Likewise.
19366         * doc/posix-functions/utimensat.texi: Likewise.
19367         * doc/glibc-functions/bindresvport.texi: Likewise.
19368         * doc/glibc-functions/dn_expand.texi: Likewise.
19369         * doc/glibc-functions/exp10.texi: Likewise.
19370         * doc/glibc-functions/exp10f.texi: Likewise.
19371         * doc/glibc-functions/fgetxattr.texi: Likewise.
19372         * doc/glibc-functions/flistxattr.texi: Likewise.
19373         * doc/glibc-functions/fopencookie.texi: Likewise.
19374         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19375         * doc/glibc-functions/fremovexattr.texi: Likewise.
19376         * doc/glibc-functions/fsetxattr.texi: Likewise.
19377         * doc/glibc-functions/getifaddrs.texi: Likewise.
19378         * doc/glibc-functions/getxattr.texi: Likewise.
19379         * doc/glibc-functions/lgetxattr.texi: Likewise.
19380         * doc/glibc-functions/listxattr.texi: Likewise.
19381         * doc/glibc-functions/llistxattr.texi: Likewise.
19382         * doc/glibc-functions/lremovexattr.texi: Likewise.
19383         * doc/glibc-functions/lsetxattr.texi: Likewise.
19384         * doc/glibc-functions/pow10.texi: Likewise.
19385         * doc/glibc-functions/pow10f.texi: Likewise.
19386         * doc/glibc-functions/rcmd_af.texi: Likewise.
19387         * doc/glibc-functions/removexattr.texi: Likewise.
19388         * doc/glibc-functions/res_init.texi: Likewise.
19389         * doc/glibc-functions/res_mkquery.texi: Likewise.
19390         * doc/glibc-functions/res_query.texi: Likewise.
19391         * doc/glibc-functions/res_querydomain.texi: Likewise.
19392         * doc/glibc-functions/res_send.texi: Likewise.
19393         * doc/glibc-functions/rresvport_af.texi: Likewise.
19394         * doc/glibc-functions/setxattr.texi: Likewise.
19395         * doc/glibc-functions/strcasestr.texi: Likewise.
19396
19397 2008-12-15  Bruno Haible  <bruno@clisp.org>
19398
19399         Fix compilation error on OSF/1 4.0.
19400         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19401         <sys/time.h>, simply delegate to the system header.
19402         Reported by Daniel Richard G. <oss@teragram.com>.
19403
19404 2008-12-15  Bruno Haible  <bruno@clisp.org>
19405
19406         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19407         * doc/posix-functions/fchmodat.texi: Likewise.
19408         * doc/posix-functions/fchownat.texi: Likewise.
19409         * doc/posix-functions/fdopendir.texi: Likewise.
19410         * doc/posix-functions/fstatat.texi: Likewise.
19411         * doc/posix-functions/mkdirat.texi: Likewise.
19412         * doc/posix-functions/unlinkat.texi: Likewise.
19413
19414 2008-12-14  Bruno Haible  <bruno@clisp.org>
19415
19416         Update doc for POSIX:2008.
19417         * doc/posix-functions/faccessat.texi: New file.
19418         * doc/posix-functions/fchmodat.texi: New file.
19419         * doc/posix-functions/fchownat.texi: New file.
19420         * doc/posix-functions/fdopendir.texi: New file.
19421         * doc/posix-functions/fstatat.texi: New file.
19422         * doc/posix-functions/futimens.texi: New file.
19423         * doc/posix-functions/linkat.texi: New file.
19424         * doc/posix-functions/mkdirat.texi: New file.
19425         * doc/posix-functions/mkfifoat.texi: New file.
19426         * doc/posix-functions/mknodat.texi: New file.
19427         * doc/posix-functions/open_wmemstream.texi: New file.
19428         * doc/posix-functions/openat.texi: New file.
19429         * doc/posix-functions/psiginfo.texi: New file.
19430         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19431         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19432         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19433         * doc/posix-functions/readlinkat.texi: New file.
19434         * doc/posix-functions/renameat.texi: New file.
19435         * doc/posix-functions/strerror_l.texi: New file.
19436         * doc/posix-functions/symlinkat.texi: New file.
19437         * doc/posix-functions/unlinkat.texi: New file.
19438         * doc/posix-functions/utimensat.texi: New file.
19439         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19440
19441 2008-12-14  Bruno Haible  <bruno@clisp.org>
19442
19443         Update doc for POSIX:2008.
19444         * doc/posix-functions/alphasort.texi: Renamed from
19445         doc/glibc-functions/alphasort.texi.
19446         * doc/posix-functions/dirfd.texi: Renamed from
19447         doc/glibc-functions/dirfd.texi.
19448         * doc/posix-functions/dprintf.texi: Renamed from
19449         doc/glibc-functions/dprintf.texi.
19450         * doc/posix-functions/duplocale.texi: Renamed from
19451         doc/glibc-functions/duplocale.texi.
19452         * doc/posix-functions/fexecve.texi: Renamed from
19453         doc/glibc-functions/fexecve.texi.
19454         * doc/posix-functions/fmemopen.texi: Renamed from
19455         doc/glibc-functions/fmemopen.texi.
19456         * doc/posix-functions/freelocale.texi: Renamed from
19457         doc/glibc-functions/freelocale.texi.
19458         * doc/posix-functions/getdate_err.texi: Renamed from
19459         doc/glibc-functions/getdate_err.texi.
19460         * doc/posix-functions/isalnum_l.texi: Renamed from
19461         doc/glibc-functions/isalnum_l.texi.
19462         * doc/posix-functions/isalpha_l.texi: Renamed from
19463         doc/glibc-functions/isalpha_l.texi.
19464         * doc/posix-functions/isblank_l.texi: Renamed from
19465         doc/glibc-functions/isblank_l.texi.
19466         * doc/posix-functions/iscntrl_l.texi: Renamed from
19467         doc/glibc-functions/iscntrl_l.texi.
19468         * doc/posix-functions/isdigit_l.texi: Renamed from
19469         doc/glibc-functions/isdigit_l.texi.
19470         * doc/posix-functions/isgraph_l.texi: Renamed from
19471         doc/glibc-functions/isgraph_l.texi.
19472         * doc/posix-functions/islower_l.texi: Renamed from
19473         doc/glibc-functions/islower_l.texi.
19474         * doc/posix-functions/isprint_l.texi: Renamed from
19475         doc/glibc-functions/isprint_l.texi.
19476         * doc/posix-functions/ispunct_l.texi: Renamed from
19477         doc/glibc-functions/ispunct_l.texi.
19478         * doc/posix-functions/isspace_l.texi: Renamed from
19479         doc/glibc-functions/isspace_l.texi.
19480         * doc/posix-functions/isupper_l.texi: Renamed from
19481         doc/glibc-functions/isupper_l.texi.
19482         * doc/posix-functions/iswalnum_l.texi: Renamed from
19483         doc/glibc-functions/iswalnum_l.texi.
19484         * doc/posix-functions/iswalpha_l.texi: Renamed from
19485         doc/glibc-functions/iswalpha_l.texi.
19486         * doc/posix-functions/iswblank_l.texi: Renamed from
19487         doc/glibc-functions/iswblank_l.texi.
19488         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19489         doc/glibc-functions/iswcntrl_l.texi.
19490         * doc/posix-functions/iswctype_l.texi: Renamed from
19491         doc/glibc-functions/iswctype_l.texi.
19492         * doc/posix-functions/iswdigit_l.texi: Renamed from
19493         doc/glibc-functions/iswdigit_l.texi.
19494         * doc/posix-functions/iswgraph_l.texi: Renamed from
19495         doc/glibc-functions/iswgraph_l.texi.
19496         * doc/posix-functions/iswlower_l.texi: Renamed from
19497         doc/glibc-functions/iswlower_l.texi.
19498         * doc/posix-functions/iswprint_l.texi: Renamed from
19499         doc/glibc-functions/iswprint_l.texi.
19500         * doc/posix-functions/iswpunct_l.texi: Renamed from
19501         doc/glibc-functions/iswpunct_l.texi.
19502         * doc/posix-functions/iswspace_l.texi: Renamed from
19503         doc/glibc-functions/iswspace_l.texi.
19504         * doc/posix-functions/iswupper_l.texi: Renamed from
19505         doc/glibc-functions/iswupper_l.texi.
19506         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19507         doc/glibc-functions/iswxdigit_l.texi.
19508         * doc/posix-functions/isxdigit_l.texi: Renamed from
19509         doc/glibc-functions/isxdigit_l.texi.
19510         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19511         doc/glibc-functions/mbsnrtowcs.texi.
19512         * doc/posix-functions/mkdtemp.texi: Renamed from
19513         doc/glibc-functions/mkdtemp.texi.
19514         * doc/posix-functions/newlocale.texi: Renamed from
19515         doc/glibc-functions/newlocale.texi.
19516         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19517         doc/glibc-functions/nl_langinfo_l.texi.
19518         * doc/posix-functions/open_memstream.texi: Renamed from
19519         doc/glibc-functions/open_memstream.texi.
19520         * doc/posix-functions/opterr.texi: Renamed from
19521         doc/glibc-functions/opterr.texi.
19522         * doc/posix-functions/optind.texi: Renamed from
19523         doc/glibc-functions/optind.texi.
19524         * doc/posix-functions/optopt.texi: Renamed from
19525         doc/glibc-functions/optopt.texi.
19526         * doc/posix-functions/psignal.texi: Renamed from
19527         doc/glibc-functions/psignal.texi.
19528         * doc/posix-functions/scandir.texi: Renamed from
19529         doc/glibc-functions/scandir.texi.
19530         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19531         doc/glibc-functions/sched_get_priority_min.texi.
19532         * doc/posix-functions/signgam.texi: Renamed from
19533         doc/glibc-functions/signgam.texi.
19534         * doc/posix-functions/stpcpy.texi: Renamed from
19535         doc/glibc-functions/stpcpy.texi.
19536         * doc/posix-functions/stpncpy.texi: Renamed from
19537         doc/glibc-functions/stpncpy.texi.
19538         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19539         doc/glibc-functions/strcasecmp_l.texi.
19540         * doc/posix-functions/strcoll_l.texi: Renamed from
19541         doc/glibc-functions/strcoll_l.texi.
19542         * doc/posix-functions/strfmon_l.texi: Renamed from
19543         doc/glibc-functions/strfmon_l.texi.
19544         * doc/posix-functions/strftime_l.texi: Renamed from
19545         doc/glibc-functions/strftime_l.texi.
19546         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19547         doc/glibc-functions/strncasecmp_l.texi.
19548         * doc/posix-functions/strndup.texi: Renamed from
19549         doc/glibc-functions/strndup.texi.
19550         * doc/posix-functions/strnlen.texi: Renamed from
19551         doc/glibc-functions/strnlen.texi.
19552         * doc/posix-functions/strsignal.texi: Renamed from
19553         doc/glibc-functions/strsignal.texi.
19554         * doc/posix-functions/strxfrm_l.texi: Renamed from
19555         doc/glibc-functions/strxfrm_l.texi.
19556         * doc/posix-functions/timer_gettime.texi: Renamed from
19557         doc/glibc-functions/timer_gettime.texi.
19558         * doc/posix-functions/tolower_l.texi: Renamed from
19559         doc/glibc-functions/tolower_l.texi.
19560         * doc/posix-functions/toupper_l.texi: Renamed from
19561         doc/glibc-functions/toupper_l.texi.
19562         * doc/posix-functions/towctrans_l.texi: Renamed from
19563         doc/glibc-functions/towctrans_l.texi.
19564         * doc/posix-functions/towlower_l.texi: Renamed from
19565         doc/glibc-functions/towlower_l.texi.
19566         * doc/posix-functions/towupper_l.texi: Renamed from
19567         doc/glibc-functions/towupper_l.texi.
19568         * doc/posix-functions/uselocale.texi: Renamed from
19569         doc/glibc-functions/uselocale.texi.
19570         * doc/posix-functions/vdprintf.texi: Renamed from
19571         doc/glibc-functions/vdprintf.texi.
19572         * doc/posix-functions/wcpcpy.texi:
19573         Renamed from doc/glibc-functions/wcpcpy.texi.
19574         * doc/posix-functions/wcpncpy.texi: Renamed from
19575         doc/glibc-functions/wcpncpy.texi.
19576         * doc/posix-functions/wcscasecmp.texi: Renamed from
19577         doc/glibc-functions/wcscasecmp.texi.
19578         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19579         doc/glibc-functions/wcscasecmp_l.texi.
19580         * doc/posix-functions/wcscoll_l.texi: Renamed from
19581         doc/glibc-functions/wcscoll_l.texi.
19582         * doc/posix-functions/wcsdup.texi: Renamed from
19583         doc/glibc-functions/wcsdup.texi.
19584         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19585         doc/glibc-functions/wcsncasecmp.texi.
19586         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19587         doc/glibc-functions/wcsncasecmp_l.texi.
19588         * doc/posix-functions/wcsnlen.texi: Renamed from
19589         doc/glibc-functions/wcsnlen.texi.
19590         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19591         doc/glibc-functions/wcsnrtombs.texi.
19592         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19593         doc/glibc-functions/wcsxfrm_l.texi.
19594         * doc/posix-functions/wctrans_l.texi: Renamed from
19595         doc/glibc-functions/wctrans_l.texi.
19596         * doc/posix-functions/wctype_l.texi: Renamed from
19597         doc/glibc-functions/wctype_l.texi.
19598         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19599         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19600         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19601         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19602         these subsections.
19603         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19604         Remove sections.
19605
19606 2008-12-14  Bruno Haible  <bruno@clisp.org>
19607
19608         Update doc for POSIX:2008.
19609         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19610
19611 2008-12-14  Bruno Haible  <bruno@clisp.org>
19612
19613         Update doc for POSIX:2008.
19614         * doc/pastposix-functions/bcmp.texi: Renamed from
19615         doc/posix-functions/bcmp.texi.
19616         * doc/pastposix-functions/bcopy.texi: Renamed from
19617         doc/posix-functions/bcopy.texi.
19618         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19619         doc/posix-functions/bsd_signal.texi.
19620         * doc/pastposix-functions/bzero.texi: Renamed from
19621         doc/posix-functions/bzero.texi.
19622         * doc/pastposix-functions/ecvt.texi: Renamed from
19623         doc/posix-functions/ecvt.texi.
19624         * doc/pastposix-functions/fcvt.texi: Renamed from
19625         doc/posix-functions/fcvt.texi.
19626         * doc/pastposix-functions/ftime.texi: Renamed from
19627         doc/posix-functions/ftime.texi.
19628         * doc/pastposix-functions/gcvt.texi: Renamed from
19629         doc/posix-functions/gcvt.texi.
19630         * doc/pastposix-functions/getcontext.texi: Renamed from
19631         doc/posix-functions/getcontext.texi.
19632         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19633         doc/posix-functions/gethostbyaddr.texi.
19634         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19635         doc/posix-functions/gethostbyname.texi.
19636         * doc/pastposix-functions/getwd.texi: Renamed from
19637         doc/posix-functions/getwd.texi.
19638         * doc/pastposix-functions/h_errno.texi: Renamed from
19639         doc/posix-functions/h_errno.texi.
19640         * doc/pastposix-functions/index.texi: Renamed from
19641         doc/posix-functions/index.texi.
19642         * doc/pastposix-functions/makecontext.texi: Renamed from
19643         doc/posix-functions/makecontext.texi.
19644         * doc/pastposix-functions/mktemp.texi: Renamed from
19645         doc/posix-functions/mktemp.texi.
19646         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19647         doc/posix-functions/pthread_attr_getstackaddr.texi.
19648         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19649         doc/posix-functions/pthread_attr_setstackaddr.texi.
19650         * doc/pastposix-functions/rindex.texi: Renamed from
19651         doc/posix-functions/rindex.texi.
19652         * doc/pastposix-functions/scalb.texi: Renamed from
19653         doc/posix-functions/scalb.texi.
19654         * doc/pastposix-functions/setcontext.texi: Renamed from
19655         doc/posix-functions/setcontext.texi.
19656         * doc/pastposix-functions/swapcontext.texi: Renamed from
19657         doc/posix-functions/swapcontext.texi.
19658         * doc/pastposix-functions/ualarm.texi: Renamed from
19659         doc/posix-functions/ualarm.texi.
19660         * doc/pastposix-functions/usleep.texi: Renamed from
19661         doc/posix-functions/usleep.texi.
19662         * doc/pastposix-functions/vfork.texi: Renamed from
19663         doc/posix-functions/vfork.texi.
19664         * doc/pastposix-functions/wcswcs.texi: Renamed from
19665         doc/posix-functions/wcswcs.texi.
19666         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19667         (Function Substitutes): Update.
19668
19669 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19670
19671         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19672         m4/strerror.m4.
19673
19674 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19675             Bruno Haible  <bruno@clisp.org>
19676
19677         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19678
19679 2008-12-13  Bruno Haible  <bruno@clisp.org>
19680
19681         * modules/strtoull (Depends-on): Remove unistd.
19682
19683 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19684
19685         * modules/strtoull (Depends-on): Add stdlib.
19686
19687 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19688
19689         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19690
19691 2008-12-10  Jim Meyering  <meyering@redhat.com>
19692
19693         gl_ASSERT: don't say assertions are disabled when they're not
19694         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19695         "checking whether to enable assertions... no", when they are in
19696         fact enabled.  This is solely a bug in the output of configure.
19697         In spite of saying "no", NDEBUG was not defined in that case.
19698         Also, as noted by Eric Blake, leave assertions enabled upon
19699         --enable-assert=INVALID.
19700
19701 2008-12-10  Bruno Haible  <bruno@clisp.org>
19702
19703         Change MODULES.html to refer to POSIX:2008 where possible.
19704         * MODULES.html.sh (POSIX2008_URL): New variable.
19705         (posix_headers): Remove sys/timeb, ucontext.
19706         (posix2001_headers): New variable.
19707         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19708         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19709         index, makecontext, mktemp, pthread_attr_getstackaddr,
19710         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19711         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19712         (posix2001_functions): New variable.
19713         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19714         otherwise.
19715
19716 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19717
19718         add missing include to parse-duration.c
19719         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19720         * modules/parse-duration (Depends-on): Add xalloc.
19721
19722         fix sed script reading maint.mk
19723         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19724         (syntax-check-rules): Use it.
19725
19726 2008-12-09  Bruno Haible  <bruno@clisp.org>
19727
19728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19729         MacOS X 10.4/PowerPC.
19730         Reported by Simon Josefsson.
19731
19732 2008-12-08  Jim Meyering  <meyering@redhat.com>
19733
19734         work around mingw's lack of some S_IF definitions
19735         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19736         Reported by Simon Josefsson.
19737
19738 2008-12-08  Bruno Haible  <bruno@clisp.org>
19739
19740         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19741         applied to variables. Needed on MacOS X 10.4/PowerPC.
19742         Reported by Simon Josefsson.
19743
19744 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19745         and Eric Blake  <ebb9@byu.net>
19746
19747         assert: honor --enable-assert
19748         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19749         order to honor --enable-assert, rather than treating it as a
19750         synonym for --disable-assert.
19751
19752 2008-12-08  Jim Meyering  <meyering@redhat.com>
19753
19754         * lib/posixtm.c: Remove now-useless declaration of mktime.
19755
19756         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19757
19758 2008-12-07  Bruno Haible  <bruno@clisp.org>
19759
19760         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19761         test_once): Mark functions as static.
19762         * tests/test-tls.c (test_tls): Likewise.
19763
19764 2008-12-07  Bruno Haible  <bruno@clisp.org>
19765
19766         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19767         iconv_register_autodetect.
19768
19769 2008-12-07  Jim Meyering  <meyering@redhat.com>
19770
19771         posixtm.c: avoid a warning
19772         * lib/posixtm.c (posixtime): Don't initialize tm0.
19773         It's no longer needed to placate gcc4's -Wuninitialized,
19774         and the attempt to placate would elicit a new warning.
19775
19776         unicodeio.c: mark unused parameters
19777         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19778         (fallback_failure_callback): Likewise.
19779
19780 2008-12-07  Bruno Haible  <bruno@clisp.org>
19781
19782         * gnulib-tool (func_create_testdir): When building the tests
19783         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19784         Reported by Simon Josefsson.
19785
19786 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19787
19788         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19789
19790 2008-12-06  Bruno Haible  <bruno@clisp.org>
19791
19792         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19793         Suggested by Eric Blake.
19794
19795 2008-12-06  Bruno Haible  <bruno@clisp.org>
19796
19797         Fix a c-stack test failure on MacOS X.
19798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19799         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19800         handler for SIGBUS as well.
19801         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19802         install a signal handler for SIGBUS as well.
19803         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19804
19805 2008-12-06  Bruno Haible  <bruno@clisp.org>
19806
19807         Advocacy documentation.
19808         * doc/gnulib-intro.texi (Benefits): New section.
19809         * doc/gnulib.texi: Update.
19810
19811 2008-12-06  Bruno Haible  <bruno@clisp.org>
19812
19813         Document the 'manywarnings' module.
19814         * doc/manywarnings.texi: New file.
19815         * doc/gnulib.texi: Include it.
19816
19817 2008-12-05  Eric Blake  <ebb9@byu.net>
19818
19819         tests: silence some gcc warnings
19820         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19821         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19822         type mismatches.
19823
19824 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19825             Bruno Haible  <bruno@clisp.org>
19826
19827         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19828
19829 2008-11-29  Jim Meyering  <meyering@redhat.com>
19830
19831         unicodeio.c: mark unused parameters
19832         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19833         (fallback_failure_callback): Likewise.
19834
19835         fts: fix a thinko
19836         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19837         (set_stat_type): Return S_IF*-valued "type" directly.
19838         Prompted by James Youngman's spotting a related bug.
19839         Confirmed by further testing through find.
19840
19841         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19842         * lib/fts.c (D_TYPE): Define.
19843         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19844         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19845         (s_ifmt_shift_bits): New function.
19846         (set_stat_type): New function.
19847         (fts_build): When not calling fts_stat, call set_stat_type
19848         to propagate dirent.d_type info to fts_read caller.
19849         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19850         fts_statp->st_mode type information may be valid.
19851
19852 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19853
19854         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19855         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19856         <sds@gnu.org>.
19857
19858 2008-11-20  Bruno Haible  <bruno@clisp.org>
19859
19860         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19861         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19862         INCLUDE_NEXT.
19863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19864         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19865         * modules/math (Makefile.am): Substitute
19866         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19868
19869 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19870             Bruno Haible  <bruno@clisp.org>
19871
19872         * lib/stdint.in.h: Define all type macros so that their expansion is
19873         a single typedef'ed token. Fixes a compilation failure in Boost which
19874         does "using ::int8_t;".
19875
19876 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19877
19878         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19879         gl_MANYWARN_ALL_GCC.
19880         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19881         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19882         * modules/manywarnings: New file.
19883         * MODULES.html.sh: Mention manywarnings module.
19884
19885 2008-11-18  Bruno Haible  <bruno@clisp.org>
19886
19887         * doc/gnulib-tool.texi (Unit tests): New section.
19888
19889 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19890
19891         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19892         paths like 'lib/po/foo.po'.
19893
19894 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19895
19896         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19897         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19898
19899 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19900
19901         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19902         parameter works.
19903
19904 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19905
19906         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19907
19908 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19909
19910         * modules/parse-duration-tests: New file.
19911         * tests/test-parse-duration.sh: New file.
19912         * tests/test-parse-duration.c: New file.
19913
19914         New module 'parse-duration'.
19915         * lib/parse-duration.h: New file.
19916         * lib/parse-duration.c: New file.
19917         * modules/parse-duration: New file.
19918
19919 2008-11-17  Bruno Haible  <bruno@clisp.org>
19920
19921         * tests/test-select-out.sh: Comment out the first pipe test.
19922         Reported by Simon Josefsson.
19923
19924 2008-11-17  Bruno Haible  <bruno@clisp.org>
19925
19926         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19928         gl_HOSTENT.
19929
19930 2008-11-17  Bruno Haible  <bruno@clisp.org>
19931
19932         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19933         -lnetwork and -lnet. Needed for Haiku and BeOS.
19934
19935 2008-11-16  Bruno Haible  <bruno@clisp.org>
19936
19937         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19938
19939 2008-11-16  Bruno Haible  <bruno@clisp.org>
19940
19941         Avoid test failure on Haiku.
19942         * tests/test-fsync.c: Include <errno.h>.
19943         (main): Don't require that fsync (0) fails.
19944
19945 2008-11-15  Bruno Haible  <bruno@clisp.org>
19946
19947         New module 'hostent'.
19948         * modules/hostent: New file.
19949         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19950
19951 2008-11-15  Bruno Haible  <bruno@clisp.org>
19952
19953         New module 'servent'.
19954         * modules/servent: New file.
19955         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19956
19957 2008-11-15  Bruno Haible  <bruno@clisp.org>
19958
19959         Avoid generating same test program with two different rules.
19960         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19961         test-frexp to test-frexp-nolibm.
19962         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19963         test-frexpl to test-frexpl-nolibm.
19964
19965 2008-11-15  Bruno Haible  <bruno@clisp.org>
19966
19967         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19968         $(FREXPL_LIBM).
19969
19970 2008-11-15  Bruno Haible  <bruno@clisp.org>
19971
19972         * lib/netdb.in.h: Activate the definitions also when the system's
19973         <netdb.h> has 'struct addrinfo'.
19974         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19975         EAI_OVERFLOW or AI_NUMERICSERV.
19976         * doc/posix-headers/netdb.texi: Document the problem.
19977
19978 2008-11-15  Bruno Haible  <bruno@clisp.org>
19979
19980         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19981
19982         Make the 'sched' module work on platforms where <sched.h> exists but
19983         is incomplete (such as Haiku).
19984         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19985         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19986         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19987         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19988         HAVE_STRUCT_SCHED_PARAM.
19989         * modules/sched (Depends-on): Add include_next.
19990         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19991         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19992         * doc/posix-headers/sched.texi: Document the issue.
19993
19994 2008-11-13  Jim Meyering  <meyering@redhat.com>
19995
19996         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19997         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19998         test would fail due to the difference in the Report bugs to ...
19999         line.  The expected address is empty, "<>", while the actual
20000         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20001
20002 2008-11-12  Bruno Haible  <bruno@clisp.org>
20003
20004         lstat: don't compile lstat.c on systems lacking lstat
20005         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20006         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20007         Reported by Daniel P. Berrange via Jim Meyering.
20008
20009 2008-11-12  Jim Meyering  <meyering@redhat.com>
20010
20011         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20012
20013 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20014
20015         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20016         instead.
20017
20018 2008-11-12  Bruno Haible  <bruno@clisp.org>
20019
20020         * lib/unicodeio.c: Include unistr.h.
20021         (utf8_wctomb): Remove function.
20022         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20023
20024 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20025
20026         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20027         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20028         <bruno@clisp.org>.
20029         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20030
20031 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20032
20033         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20034         * doc/gnulib.texi: Add section for warnings.
20035
20036 2008-11-11  Bruno Haible  <bruno@clisp.org>
20037
20038         * lib/sockets.h: Add a comment.
20039
20040 2008-11-11  Karl Berry  <karl@gnu.org>
20041
20042         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20043
20044 2008-11-11  Eric Blake  <ebb9@byu.net>
20045
20046         fdl.texi: avoid git symlinks
20047         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20048
20049 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20050
20051         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20052
20053 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20054
20055         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20056         (gl_WARN_ADD): Substitute $2 if literal.
20057
20058 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20059
20060         * m4/warning.m4: Remove.
20061
20062 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20063
20064         * m4/warnings.m4: Almost complete rewrite. :-)
20065
20066 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20067
20068         * modules/warnings: New module.
20069         * m4/warnings.m4: New file.
20070         * MODULES.html.sh: Mention warnings module.
20071         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20072         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20073
20074 2008-11-10  Eric Blake  <ebb9@byu.net>
20075
20076         fdl.texi: make a symlink to the latest version
20077         * doc/standards.texi: Revert today's earlier change.
20078         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20079         * doc/fdl.texi: ...and replace this with a symlink to the newer
20080         fdl-1.3.texi.
20081
20082 2008-11-10  Bruno Haible  <bruno@clisp.org>
20083
20084         * tests/test-select-fd.c (main): Accept the result file name as fourth
20085         argument.
20086         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20087         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20088
20089 2008-11-10  Bruno Haible  <bruno@clisp.org>
20090
20091         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20092         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20093         as autoconf-substituted macros.
20094         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20096         gl_NETDB_H_DEFAULTS. Set these variables.
20097         * modules/netdb (Makefile.am): Substitute these variables.
20098
20099 2008-11-10  Eric Blake  <ebb9@byu.net>
20100
20101         standards.texi: include correct file for FDL 1.3
20102         * doc/standards.texi (GNU Free Documentation License): Change
20103         include file to pull in FDL 1.3, not 1.2.
20104
20105         fdl.texi: revert accidental change to license
20106         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20107
20108 2008-11-10  Bruno Haible  <bruno@clisp.org>
20109
20110         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20111         cross-compiling guesses also when the native compile gives no result.
20112
20113 2008-11-10  Bruno Haible  <bruno@clisp.org>
20114
20115         * lib/spawni.c (__spawni): Force variable into the stack.
20116
20117 2008-11-10  Bruno Haible  <bruno@clisp.org>
20118
20119         Add support for Haiku.
20120         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20121         glibc and BeOS, but also on Haiku.
20122         * lib/fpurge.c (fpurge): Likewise.
20123         * lib/freadable.c (freadable): Likewise.
20124         * lib/freadahead.c (freadahead): Likewise.
20125         * lib/freading.c (freading): Likewise.
20126         * lib/freadptr.c (freadptr): Likewise.
20127         * lib/freadseek.c (freadptrinc): Likewise.
20128         * lib/fseeko.c (rpl_fseeko): Likewise.
20129         * lib/fseterr.c (fseterr): Likewise.
20130         * lib/fwritable.c (fwritable): Likewise.
20131         * lib/fwriting.c (fwriting): Likewise.
20132         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20133
20134 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20135
20136         * lib/config.charset: Treat Haiku like BeOS.
20137
20138 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20139
20140         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20141         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20142
20143 2008-11-08  Bruno Haible  <bruno@clisp.org>
20144
20145         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20146         AC_CACHE_CHECK.
20147
20148 2008-11-08  Bruno Haible  <bruno@clisp.org>
20149
20150         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20151
20152 2008-11-08  Bruno Haible  <bruno@clisp.org>
20153
20154         * tests/test-select-fd.c: New file.
20155         * tests/test-select-in.sh: New file.
20156         * tests/test-select-out.sh: New file.
20157         * tests/test-select-stdin.c: New file.
20158         * modules/select-tests (Files): Add the new files.
20159         (Depends-on): Add gettimeofday.
20160         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20161         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20162         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20163
20164 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20165             Bruno Haible  <bruno@clisp.org>
20166
20167         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20168
20169 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20170
20171         * build-aux/pmccabe2html: Added support for C++ source files.
20172
20173 2008-11-05  Ben Pfaff  <blp@gnu.org>
20174
20175         Fix lib/close.c build on Windows.
20176         * modules/close (Files): Add lib/w32sock.h.
20177
20178 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20179
20180         Accept Bison's NEWS format.
20181         * build-aux/announce-gen (print_news_deltas): Tweak
20182         $re_prefix.
20183
20184 2008-11-04  Bruno Haible  <bruno@clisp.org>
20185
20186         * modules/random_r (Maintainer): Add glibc.
20187
20188 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20189
20190         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20191         by karl@freefriends.org (Karl Berry).
20192         * doc/alloca.texi: Likewise.
20193         * doc/c-ctype.texi: Likewise.
20194         * doc/c-strcase.texi: Likewise.
20195         * doc/c-strcaseeq.texi: Likewise.
20196         * doc/c-strcasestr.texi: Likewise.
20197         * doc/c-strstr.texi: Likewise.
20198         * doc/c-strtod.texi: Likewise.
20199         * doc/c-strtold.texi: Likewise.
20200         * doc/ctime.texi: Likewise.
20201         * doc/error.texi: Likewise.
20202         * doc/fdl.texi: Likewise.
20203         * doc/gcd.texi: Likewise.
20204         * doc/getdate.texi: Likewise.
20205         * doc/gnulib-intro.texi: Likewise.
20206         * doc/gnulib-tool.texi: Likewise.
20207         * doc/gnulib.texi: Likewise.
20208         * doc/inet_ntoa.texi: Likewise.
20209         * doc/maintain.texi: Likewise.
20210         * doc/make-stds.texi: Likewise.
20211         * doc/quote.texi: Likewise.
20212         * doc/regexprops-generic.texi: Likewise.
20213         * doc/standards.texi: Likewise.
20214         * doc/verify.texi: Likewise.
20215         * doc/visibility.texi: Likewise.
20216         * doc/gnulib.texi (GNU Free Documentation License): Include
20217         fdl-1.3.texi instead of fdl.texi.
20218
20219 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20220
20221         * doc/fdl-1.3.texi: New file, from
20222         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20223         * modules/fdl-1.3: Add.
20224         * MODULES.html.sh: Add fdl-1.3.
20225
20226 2008-11-03  Bruno Haible  <bruno@clisp.org>
20227
20228         Make determination of absolute name of header file work with AIX xlc.
20229         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20230         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20231         preprocessing.
20232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20233         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20234
20235 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20236
20237         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20238         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20239         <ludo@gnu.org>.
20240
20241 2008-11-02  Bruno Haible  <bruno@clisp.org>
20242
20243         Mark 'strpbrk' obsolete.
20244         * modules/strpbrk (Status, Notice): New sections.
20245         * modules/strtok_r (Depends-on): Add strpbrk.
20246
20247 2008-11-02  Bruno Haible  <bruno@clisp.org>
20248
20249         Mark 'strdup' obsolete.
20250         * modules/strdup (Status, Notice): New sections.
20251         * modules/findprog (Depends-on): Add strdup.
20252         * modules/getaddrinfo (Depends-on): Likewise.
20253         * modules/localename (Depends-on): Likewise.
20254         * modules/relocatable-lib (Depends-on): Likewise.
20255         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20256         * modules/relocatable-prog (Depends-on): Likewise.
20257         * modules/trim (Depends-on): Likewise.
20258         * modules/unictype/gen-ctype (Depends-on): Likewise.
20259         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20260
20261 2008-11-02  Bruno Haible  <bruno@clisp.org>
20262
20263         Mark 'strcspn' obsolete.
20264         * modules/strcspn (Status, Notice): New sections.
20265
20266 2008-11-02  Bruno Haible  <bruno@clisp.org>
20267
20268         Mark 'rmdir' obsolete.
20269         * modules/rmdir (Status, Notice): New sections.
20270         * modules/clean-temp (Depends-on): Add rmdir.
20271         * modules/openat (Depends-on): Likewise.
20272
20273 2008-11-02  Bruno Haible  <bruno@clisp.org>
20274
20275         Mark 'raise' obsolete.
20276         * modules/raise (Status, Notice): New sections.
20277         (Include): Specify <signal.h>.
20278         * modules/stdio (Depends-on): Add raise.
20279         * modules/write (Depends-on): Likewise.
20280
20281 2008-11-02  Bruno Haible  <bruno@clisp.org>
20282
20283         Mark 'memset' obsolete.
20284         * modules/memset (Status, Notice): New sections.
20285
20286 2008-11-02  Bruno Haible  <bruno@clisp.org>
20287
20288         Mark 'memmove' obsolete.
20289         * modules/memmove (Status, Notice): New sections.
20290         * modules/argp (Depends-on): Add memmove.
20291         * modules/argz (Depends-on): Likewise.
20292         * modules/canonicalize (Depends-on): Likewise.
20293         * modules/canonicalize-lgpl (Depends-on): Likewise.
20294         * modules/fts (Depends-on): Likewise.
20295         * modules/getcwd (Depends-on): Likewise.
20296         * modules/human (Depends-on): Likewise.
20297         * modules/regex (Depends-on): Likewise.
20298         * modules/striconveh (Depends-on): Likewise.
20299         * modules/trim (Depends-on): Likewise.
20300         * modules/unistr/u8-move (Depends-on): Likewise.
20301         * modules/unistr/u16-move (Depends-on): Likewise.
20302         * modules/unistr/u32-move (Depends-on): Likewise.
20303
20304 2008-11-02  Bruno Haible  <bruno@clisp.org>
20305
20306         Mark 'memcpy' obsolete.
20307         * modules/memcpy (Status, Notice): New sections.
20308
20309 2008-11-02  Bruno Haible  <bruno@clisp.org>
20310
20311         Mark 'memcmp' obsolete.
20312         * modules/memcmp (Status, Notice): New sections.
20313         * modules/argmatch (Depends-on): Add memchr.
20314         * modules/backupfile (Depends-on): Likewise.
20315         * modules/c-strcasestr (Depends-on): Likewise.
20316         * modules/crypto/des (Depends-on): Likewise.
20317         * modules/csharpcomp (Depends-on): Likewise.
20318         * modules/fnmatch (Depends-on): Likewise.
20319         * modules/git-merge-changelog (Depends-on): Likewise.
20320         * modules/isnand (Depends-on): Likewise.
20321         * modules/isnand-nolibm (Depends-on): Likewise.
20322         * modules/isnanf (Depends-on): Likewise.
20323         * modules/isnanf-nolibm (Depends-on): Likewise.
20324         * modules/isnanl (Depends-on): Likewise.
20325         * modules/isnanl-nolibm (Depends-on): Likewise.
20326         * modules/mbchar (Depends-on): Likewise.
20327         * modules/memcoll (Depends-on): Likewise.
20328         * modules/quotearg (Depends-on): Likewise.
20329         * modules/regex (Depends-on): Likewise.
20330         * modules/relocatable-prog (Depends-on): Likewise.
20331         * modules/same (Depends-on): Likewise.
20332         * modules/signbit (Depends-on): Likewise.
20333         * modules/strcasestr-simple (Depends-on): Likewise.
20334         * modules/unictype/gen-ctype (Depends-on): Likewise.
20335         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20336         * modules/uniname/uniname (Depends-on): Likewise.
20337         * modules/unistr/u8-cmp (Depends-on): Likewise.
20338
20339 2008-11-02  Bruno Haible  <bruno@clisp.org>
20340
20341         Mark 'memchr' obsolete.
20342         * modules/memchr (Status, Notice): New sections.
20343         * modules/argp (Depends-on): Add memchr.
20344         * modules/base64 (Depends-on): Likewise.
20345         * modules/c-strcasestr (Depends-on): Likewise.
20346         * modules/chdir-long (Depends-on): Likewise.
20347         * modules/fnmatch (Depends-on): Likewise.
20348         * modules/getsubopt (Depends-on): Likewise.
20349         * modules/git-merge-changelog (Depends-on): Likewise.
20350         * modules/glob (Depends-on): Likewise.
20351         * modules/strcasestr-simple (Depends-on): Likewise.
20352         * modules/strnlen (Depends-on): Likewise.
20353
20354 2008-11-02  Bruno Haible  <bruno@clisp.org>
20355
20356         Mark 'atexit' obsolete.
20357         * modules/atexit (Status, Notice): New sections.
20358         * modules/chdir-long (Depends-on): Add atexit.
20359         * modules/wait-process (Depends-on): Likewise.
20360
20361 2008-11-02  Bruno Haible  <bruno@clisp.org>
20362
20363         * gnulib-tool: New option --with-obsolete.
20364         (func_usage): Document it.
20365         (func_modules_transitive_closure): Drop obsolete dependencies if
20366         incobsolete is not true.
20367         (func_import): Read and save the incobsolete variable to the cache.
20368
20369 2008-11-02  Bruno Haible  <bruno@clisp.org>
20370
20371         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20372         * gnulib-tool: New option --extract-status.
20373         (func_usage): Document it.
20374         (sed_extract_prog): Recognize it.
20375         (func_get_status): New function.
20376
20377 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20378
20379         * modules/sockets (License): Change from LGPL to LGPLv2+.
20380
20381 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20382
20383         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20384
20385 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20386
20387         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20388         Mention times and sys_times.
20389         * modules/sys_times, modules/sys_times-tests: New modules.
20390         * modules/times, modules/times-tests: Likewise
20391         * m4/sys_times_h.m4: New file.
20392         * lib/sys_times.in.h: Likewise
20393         * lib/times.c: Likewise.
20394         * tests/test-sys_times.c: Likewise.
20395         * tests/test-times.c: Likewise.
20396         * doc/posix-headers/sys_times.texi: Update.
20397         * doc/posix-functions/times.texi: Update.
20398
20399 2008-10-28  Jim Meyering  <meyering@redhat.com>
20400
20401         * modules/tempname (Depends-on): Add lstat.
20402
20403         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20404
20405 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20406
20407         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20408         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20409         using idiom used elsewhere in gnulib.
20410
20411 2008-10-27  Jim Meyering  <meyering@redhat.com>
20412
20413         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20414
20415 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20416
20417         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20418         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20419         programs.
20420         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20421
20422 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20423
20424         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20425
20426 2008-10-27  Bruno Haible  <bruno@clisp.org>
20427
20428         * tests/test-lstat.c: Include <stdio.h>.
20429
20430 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20431
20432         * modules/lstat-tests: New module.
20433         * tests/test-lstat.c: New file.
20434
20435 2008-10-26  Jim Meyering  <meyering@redhat.com>
20436
20437         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20438
20439 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20440             Bruno Haible  <bruno@clisp.org>
20441
20442         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20443         * modules/configmake (Include): Add a note that the include must come
20444         after all system headers.
20445         * lib/javaversion.c: Include configmake.h after all other includes.
20446
20447 2008-10-26  Bruno Haible  <bruno@clisp.org>
20448
20449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20450         HAVE_STRUCT_RANDOM_DATA to 1.
20451         (gl_STDLIB_H): Simplify.
20452
20453 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20454
20455         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20456         substitute HAVE_STRUCT_RANDOM_DATA.
20457         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20458         random_data.
20459         * modules/stdlib (Makefile.am): Substitute
20460         HAVE_STRUCT_RANDOM_DATA.
20461
20462 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20463
20464         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20465         * doc/gnulib-intro.texi (Copyright): Likewise.
20466
20467 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20468
20469         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20470         findings.
20471
20472 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20473             Bruno Haible  <bruno@clisp.org>
20474
20475         * lib/unistd.in.h: Include <winsock2.h>.
20476         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20477         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20478         Provide dummy declarations.
20479         (gethostname): Override.
20480         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20482         gl_PREREQ_SYS_H_WINSOCK2.
20483         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20484         * doc/posix-functions/gethostname.texi: More details.
20485
20486 2008-10-25  Bruno Haible  <bruno@clisp.org>
20487
20488         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20489         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20490         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20491
20492         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20493         here ...
20494         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20495         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20496         gl_UNISTD_H_DEFAULTS.
20497
20498 2008-10-25  Eric Blake  <ebb9@byu.net>
20499
20500         signbit: avoid spurious compiler failure
20501         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20502         declarations inside function.
20503
20504 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20505             Bruno Haible  <bruno@clisp.org>
20506
20507         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20508         * modules/random_r (Depends-on): Add stdint.
20509
20510 2008-10-24  Bruno Haible  <bruno@clisp.org>
20511
20512         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20513         Eggert.
20514         * modules/strerror (License): Likewise.
20515
20516 2008-10-24  Jim Meyering  <meyering@redhat.com>
20517
20518         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20519         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20520
20521 2008-10-24  Eric Blake  <ebb9@byu.net>
20522
20523         getgroups: fix compilation when getgroups is available
20524         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20525         but with <config.h> override of getgroups disabled.
20526
20527 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20528
20529         * doc/gnulib.texi (Header files): Add note about C++ problems.
20530         Explained by Bruno Haible <bruno@clisp.org>.
20531
20532 2008-10-23  Bruno Haible  <bruno@clisp.org>
20533
20534         Define a dummy SA_NODEFER macro on Interix.
20535         * lib/signal.in.h (SA_NODEFER): Define fallback.
20536         Reported by Aleksey Cheusov <cheusov@tut.by> via
20537         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20538
20539 2008-10-23  Bruno Haible  <bruno@clisp.org>
20540
20541         * modules/freadahead (License): Change to LGPLv2+.
20542         Suggested by Simon Josefsson.
20543
20544 2008-10-23  Jim Meyering  <meyering@redhat.com>
20545
20546         random_r: new module
20547         * modules/random_r: New file.
20548         * m4/random_r.m4: New file.
20549         * lib/random_r.c: New file, from glibc.
20550         * modules/random_r-tests: New file.
20551         * tests/test-random_r.c: New file.
20552         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20553          Declare.
20554         (RAND_MAX): Define.
20555         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20556         * modules/stdlib: Substitute them, too.
20557         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20558         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20559         * doc/glibc-functions/random_r.texi: Likewise.
20560         * doc/glibc-functions/setstate_r.texi: Likewise.
20561         * doc/glibc-functions/srandom_r.texi: Likewise.
20562         * config/srclist.txt: Mention it.
20563
20564 2008-10-23  David Lutterkort  <lutter@redhat.com>
20565
20566         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20567         link requirement
20568
20569 2008-10-23  Jim Meyering  <meyering@redhat.com>
20570
20571         selinux-h: mark parameters of stub functions as intentionally unused
20572         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20573         * lib/se-context.in.h: Likewise.
20574
20575 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20576
20577         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20578
20579 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20580
20581         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20582
20583 2008-10-22  Eric Blake  <ebb9@byu.net>
20584
20585         glthread/thread: avoid compiler warning
20586         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20587         Add unreachable abort to silence compiler.
20588
20589 2008-10-22  Eric Blake  <ebb9@byu.net>
20590
20591         netdb: also supply struct addrinfo for cygwin 1.5.x
20592         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20593         older cygwin.
20594         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20595         cygwin.
20596         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20597
20598 2008-10-22  Bruno Haible  <bruno@clisp.org>
20599
20600         * users.txt: Update entry about pspp.
20601
20602 2008-10-21  Bruno Haible  <bruno@clisp.org>
20603
20604         Simplification.
20605         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20606         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20607
20608         Simplification.
20609         * lib/ioctl.c (ioctl): Don't undefine.
20610         * lib/socket.c (socket): Don't undefine.
20611
20612         Remove unused module indicator macros.
20613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20614         GNULIB_$1 as a C macro.
20615
20616         * doc/posix-functions/close.texi: Undo last change.
20617         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20618         Windows platforms.
20619
20620 2008-10-21  Bruno Haible  <bruno@clisp.org>
20621
20622         Add gethostname() declaration to <unistd.h>.
20623         * lib/unistd.in.h (gethostname): New declaration.
20624         * lib/gethostname.c: Include <unistd.h>.
20625         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20626         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20628         and HAVE_GETHOSTNAME.
20629         * modules/gethostname (Depends-on): Add unistd.
20630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20631         (Include): Specify <unistd.h>.
20632         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20633         HAVE_GETHOSTNAME.
20634         * tests/test-gethostname.c: Include <unistd.h> first.
20635
20636 2008-10-21  Bruno Haible  <bruno@clisp.org>
20637
20638         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20639         * modules/select-tests (Depends-on): Likewise.
20640         Reported by Simon Josefsson.
20641
20642 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20643
20644         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20645         * lib/accept.c: New file, based on winsock.c.
20646         * lib/bind.c: New file, based on winsock.c.
20647         * lib/connect.c: New file, based on winsock.c.
20648         * lib/getpeername.c: New file, based on winsock.c.
20649         * lib/getsockname.c: New file, based on winsock.c.
20650         * lib/getsockopt.c: New file, based on winsock.c.
20651         * lib/ioctl.c: New file, based on winsock.c.
20652         * lib/listen.c: New file, based on winsock.c.
20653         * lib/recv.c: New file, based on winsock.c.
20654         * lib/recvfrom.c: New file, based on winsock.c.
20655         * lib/send.c: New file, based on winsock.c.
20656         * lib/sendto.c: New file, based on winsock.c.
20657         * lib/setsockopt.c: New file, based on winsock.c.
20658         * lib/shutdown.c: New file, based on winsock.c.
20659         * lib/socket.c: New file, based on winsock.c.
20660         * lib/w32sock.h: New file, based on winsock.c.
20661         * lib/winsock.c: Remove file.
20662         * modules/accept: Likewise.
20663         * modules/bind: Likewise.
20664         * modules/connect: Likewise.
20665         * modules/getpeername: Likewise.
20666         * modules/getsockname: Likewise.
20667         * modules/getsockopt: Likewise.
20668         * modules/ioctl: Likewise.
20669         * modules/listen: Likewise.
20670         * modules/recv: Likewise.
20671         * modules/recvfrom: Likewise.
20672         * modules/send: Likewise.
20673         * modules/sendto: Likewise.
20674         * modules/setsockopt: Likewise.
20675         * modules/shutdown: Likewise.
20676         * modules/socket: Use socket.c instead of winsock.c.
20677         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20678         * doc/posix-functions/accept.texi: Doc fix.
20679         * doc/posix-functions/bind.texi: Doc fix.
20680         * doc/posix-functions/close.texi: Doc fix.
20681         * doc/posix-functions/connect.texi: Doc fix.
20682         * doc/posix-functions/getpeername.texi: Doc fix.
20683         * doc/posix-functions/getsockname.texi: Doc fix.
20684         * doc/posix-functions/getsockopt.texi: Doc fix.
20685         * doc/posix-functions/ioctl.texi: Doc fix.
20686         * doc/posix-functions/listen.texi: Doc fix.
20687         * doc/posix-functions/recv.texi: Doc fix.
20688         * doc/posix-functions/recvfrom.texi: Doc fix.
20689         * doc/posix-functions/send.texi: Doc fix.
20690         * doc/posix-functions/sendto.texi: Doc fix.
20691         * doc/posix-functions/setsockopt.texi: Doc fix.
20692         * doc/posix-functions/shutdown.texi: Doc fix.
20693         * doc/posix-functions/socket.texi: Doc fix.
20694
20695 2008-10-20  Bruno Haible  <bruno@clisp.org>
20696
20697         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20698         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20699         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20700         as an alias for SIGABRT.
20701         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20702         (sigaction): Map it to SIGABRT.
20703         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20704
20705 2008-10-20  Bruno Haible  <bruno@clisp.org>
20706
20707         * lib/fts.c: Don't include lstat.h.
20708         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20709
20710         Move the lstat() declaration to <sys/stat.h>.
20711         * lib/lstat.h: Remove file.
20712         * lib/sys_stat.in.h: Add special invocation convention.
20713         (lstat): New declaration.
20714         * lib/lstat.c (orig_lstat): New function.
20715         (rpl_lstat): Use orig_lstat instead of lstat.
20716         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20717         AC_C_INLINE. Set REPLACE_LSTAT.
20718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20719         and REPLACE_LSTAT.
20720         * modules/lstat (Files): Remove lib/lstat.h.
20721         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20722         (Include): Specify <sys/stat.h> instead of lstat.h.
20723         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20724         REPLACE_LSTAT.
20725         * NEWS: Mention the change.
20726
20727 2008-10-20  Bruno Haible  <bruno@clisp.org>
20728
20729         * modules/posix_spawn-tests: New file.
20730         * tests/test-posix_spawn3.c: New file.
20731
20732 2008-10-20  Bruno Haible  <bruno@clisp.org>
20733
20734         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20735         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20736         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20737         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20738         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20739
20740 2008-10-20  Bruno Haible  <bruno@clisp.org>
20741
20742         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20743         of posix_spawn on AIX 5.3.
20744
20745 2008-10-20  Bruno Haible  <bruno@clisp.org>
20746
20747         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20748
20749 2008-10-20  Bruno Haible  <bruno@clisp.org>
20750
20751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20752         of AC_LANG_PROGRAM.
20753
20754 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20755
20756         * lib/netdb.in.h: Don't define GNU specific constants until they
20757         are supported or needed.  Reported by Bruno Haible
20758         <bruno@clisp.org>.
20759
20760 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20761
20762         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20763
20764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20765
20766         * lib/getaddrinfo.h: Remove file.
20767         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20768         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20769         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20770         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20771         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20772         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20773         * tests/test-getaddrinfo.c: Likewise.
20774         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20775         * NEWS: Mention change.
20776
20777 2008-10-19  Bruno Haible  <bruno@clisp.org>
20778
20779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20780
20781 2008-10-19  Bruno Haible  <bruno@clisp.org>
20782
20783         * lib/wait-process.c: Include simply <sys/wait.h>.
20784         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20785         WIFSTOPPED): Remove fallback definitions.
20786         * modules/wait-process (Depends-on): Add sys_wait.
20787
20788         New module 'sys_wait'.
20789         * modules/sys_wait: New file.
20790         * lib/sys_wait.in.h: New file, partially copied from
20791         lib/wait-process.c.
20792         * m4/sys_wait_h.m4: New file.
20793         * doc/posix-headers/sys_wait.texi: Mention the new module.
20794
20795 2008-10-19  Bruno Haible  <bruno@clisp.org>
20796
20797         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20798
20799 2008-10-19  Bruno Haible  <bruno@clisp.org>
20800
20801         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20802         * lib/wait-process.c (WAIT_T): Remove type.
20803         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20804         (wait_subprocess): Update.
20805
20806 2008-10-19  Bruno Haible  <bruno@clisp.org>
20807
20808         New module 'atoll'.
20809         * modules/atoll: New file.
20810         * lib/stdlib.in.h (atoll): New declaration.
20811         * lib/atoll.c: New file, from glibc with modifications.
20812         * m4/atoll.m4: New file.
20813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20814         HAVE_ATOLL.
20815         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20816         * doc/posix-functions/atoll.texi: Mention the new module.
20817
20818 2008-10-19  Bruno Haible  <bruno@clisp.org>
20819
20820         Add strtoull() declaration to <stdlib.h>.
20821         * lib/stdlib.in.h (strtoull): New declaration.
20822         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20823         Set HAVE_STRTOULL.
20824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20825         HAVE_STRTOULL.
20826         * modules/strtoull (Depends-on): Add stdlib.
20827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20828         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20829         HAVE_STRTOULL.
20830
20831 2008-10-19  Bruno Haible  <bruno@clisp.org>
20832
20833         Add strtoll() declaration to <stdlib.h>.
20834         * lib/stdlib.in.h (strtoll): New declaration.
20835         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20836         Set HAVE_STRTOLL.
20837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20838         HAVE_STRTOLL.
20839         * modules/strtoll (Depends-on): Add stdlib.
20840         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20841         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20842
20843 2008-10-19  Bruno Haible  <bruno@clisp.org>
20844
20845         * modules/bcopy (Depends-on): Add strings.
20846         (Include): Specify <strings.h>.
20847
20848 2008-10-19  Bruno Haible  <bruno@clisp.org>
20849
20850         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20851
20852 2008-10-19  Bruno Haible  <bruno@clisp.org>
20853
20854         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20855         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20856         mingw.
20857
20858 2008-10-19  Bruno Haible  <bruno@clisp.org>
20859
20860         * lib/atanl.c: Don't include isnanl.h.
20861         * lib/cosl.c: Likewise.
20862         * lib/ldexpl.c: Likewise.
20863         * lib/logl.c: Likewise.
20864         * lib/sinl.c: Likewise.
20865         * lib/sqrtl.c: Likewise.
20866         * lib/tanl.c: Likewise.
20867
20868         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20869         * lib/isnanf.h: Remove file.
20870         * lib/isnand.h: Remove file.
20871         * lib/isnanl.h: Remove file.
20872         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20873         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20874         macros.
20875         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20876         HAVE_ISNANF, don't define it as a C macro.
20877         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20878         HAVE_ISNAND, don't define it as a C macro.
20879         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20880         HAVE_ISNANL, don't define it as a C macro.
20881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20882         HAVE_ISNAN[FDL].
20883         * modules/isnanf (Files): Remove lib/isnanf.h.
20884         (Depends-on): Add math.
20885         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20886         (Include): Specify <math.h> instead of isnanf.h.
20887         * modules/isnand (Files): Remove lib/isnand.h.
20888         (Depends-on): Add math.
20889         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20890         (Include): Specify <math.h> instead of isnand.h.
20891         * modules/isnanl (Files): Remove lib/isnanl.h.
20892         (Depends-on): Add math.
20893         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20894         (Include): Specify <math.h> instead of isnanl.h.
20895         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20896         HAVE_ISNAN[FDL].
20897         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20898         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20899         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20900         * NEWS: Mention the change.
20901
20902 2008-10-18  Bruno Haible  <bruno@clisp.org>
20903
20904         Add getusershell(), setusershell(), endusershell() declarations to
20905         <unistd.h>.
20906         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20907         declarations.
20908         * lib/getusershell.c: Include unistd.h.
20909         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20910         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20911         HAVE_GETUSERSHELL.
20912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20913         and HAVE_GETUSERSHELL.
20914         * modules/getusershell (Depends-on): Add unistd, extensions.
20915         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20916         (Include): Specify <unistd.h>.
20917         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20918         HAVE_GETUSERSHELL.
20919
20920 2008-10-18  Bruno Haible  <bruno@clisp.org>
20921
20922         Add a getloadavg() declaration to <stdlib.h>.
20923         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20924         getloadavg declaration.
20925         (getloadavg): New declaration.
20926         * lib/getloadavg.c: Include <stdlib.h> first.
20927         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20928         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20929         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20931         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20932         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20933         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20934         (Include): Specify <stdlib.h>.
20935         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20936         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20937
20938 2008-10-18  Bruno Haible  <bruno@clisp.org>
20939
20940         * lib/dirchownmod.c: Don't include lchmod.h.
20941
20942         Move the lchmod() declaration to <sys/stat.h>.
20943         * lib/lchmod.h: Remove file.
20944         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20945         (lchmod): New declaration, moved here from lib/lchown.h.
20946         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20947         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20949         and HAVE_LCHMOD.
20950         * modules/lchmod (Files): Remove lib/lchmod.h.
20951         (Depends-on): Add sys_stat, extensions.
20952         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20953         (Include): Specify <sys/stat.h> instead of lchmod.h.
20954         * modules/sys_stat (Depends-on): Add link-warning.
20955         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20956         definition of GL_LINK_WARNING.
20957         * NEWS: Mention the change.
20958
20959 2008-10-18  Bruno Haible  <bruno@clisp.org>
20960
20961         * lib/fchdir.c: Don't include dirfd.h.
20962         * lib/fts.c: Likewise.
20963         * lib/getcwd.c: Likewise.
20964         * lib/glob.c: Likewise.
20965
20966         Move the dirfd() declaration to <dirent.h>.
20967         * lib/dirfd.h: Remove file.
20968         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20969         (dirfd): New declaration.
20970         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20971         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20972         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20973         HAVE_DECL_DIRFD.
20974         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20975         HAVE_DECL_DIRFD.
20976         * modules/dirfd (Files): Remove lib/dirfd.h.
20977         (Depends-on): Add dirent, extensions.
20978         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20979         (Include): Specify <dirent.h> instead of dirfd.h.
20980         * modules/dirent (Depends-on): Add link-warning.
20981         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20982         definition of GL_LINK_WARNING.
20983         * NEWS: Mention the change.
20984
20985 2008-10-18  Bruno Haible  <bruno@clisp.org>
20986
20987         Move the euidaccess() declaration to <unistd.h>.
20988         * lib/euidaccess.h: Remove file.
20989         * lib/unistd.in.h (euidaccess): New declaration.
20990         * lib/euidaccess.c: Don't include euidaccess.h.
20991         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20992         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20994         and HAVE_EUIDACCESS.
20995         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20996         (Depends-on): Add unistd.
20997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20998         (Include): Specify <unistd.h> instead of euidaccess.h.
20999         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21000         HAVE_EUIDACCESS.
21001         * NEWS: Mention the change.
21002
21003 2008-10-18  Bruno Haible  <bruno@clisp.org>
21004
21005         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21006
21007         Move the getdomainname() declaration to <unistd.h>.
21008         * lib/getdomainname.h: Remove file.
21009         * lib/unistd.in.h (getdomainname): New declaration.
21010         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21011         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21012         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21013         HAVE_GETDOMAINNAME.
21014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21015         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21016         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21017         (Depends-on): Add unistd, extensions.
21018         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21019         (Includes): Specify <unistd.h> instead of getdomainname.h.
21020         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21021         HAVE_GETDOMAINNAME.
21022         * NEWS: Mention the change.
21023
21024 2008-10-18  Bruno Haible  <bruno@clisp.org>
21025
21026         * modules/dirent: New file.
21027         * m4/dirent_h.m4: New file.
21028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21029         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21030         * modules/fchdir (Files): Remove lib/dirent.in.h.
21031         (Depends-on): Add dirent.
21032         (Makefile.am): Move rules to modules/dirent.
21033         * doc/posix-headers/dirent.texi: Mention the new module.
21034
21035 2008-10-18  Bruno Haible  <bruno@clisp.org>
21036
21037         Avoid -Wunused-parameter warnings in public gnulib header files.
21038         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21039         macro.
21040         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21041
21042 2008-10-18  Bruno Haible  <bruno@clisp.org>
21043
21044         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21045         * doc/glibc-functions/error.texi: Mention the module 'error'.
21046         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21047         * doc/glibc-functions/getdomainname.texi: Mention the module
21048         'getdomainname'.
21049         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21050         * doc/glibc-functions/getpagesize.texi: Mention the module
21051         'getpagesize'.
21052         * doc/glibc-functions/getusershell.texi: Mention the module
21053         'getusershell'.
21054         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21055         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21056         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21057         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21058         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21059         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21060         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21061         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21062         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21063         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21064         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21065         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21066         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21067         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21068
21069 2008-10-17  Bruno Haible  <bruno@clisp.org>
21070
21071         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21072         HP-UX and IRIX, use -0.0L.
21073         * tests/test-ceill.c (minus_zero): Likewise.
21074         * tests/test-floorl.c (minus_zero): Likewise.
21075         * tests/test-frexpl.c (minus_zero): Likewise.
21076         * tests/test-isnan.c (minus_zerol): Likewise.
21077         * tests/test-isnanl.h (minus_zero): Likewise.
21078         * tests/test-ldexpl.c (minus_zero): Likewise.
21079         * tests/test-roundl.c (minus_zero): Likewise.
21080         * tests/test-signbit.c (minus_zerol): Likewise.
21081         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21082         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21083         * tests/test-truncl.c (minus_zero): Likewise.
21084         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21085         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21086         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21087         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21088
21089 2008-10-17  Bruno Haible  <bruno@clisp.org>
21090
21091         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21092         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21093         that it gets activated only for gcc >= 3.0.
21094         * lib/dirent.in.h: Likewise.
21095         * lib/errno.in.h: Likewise.
21096         * lib/fcntl.in.h: Likewise.
21097         * lib/float.in.h: Likewise.
21098         * lib/iconv.in.h: Likewise.
21099         * lib/inttypes.in.h: Likewise.
21100         * lib/locale.in.h: Likewise.
21101         * lib/math.in.h: Likewise.
21102         * lib/netdb.in.h: Likewise.
21103         * lib/netinet_in.in.h: Likewise.
21104         * lib/search.in.h: Likewise.
21105         * lib/signal.in.h: Likewise.
21106         * lib/spawn.in.h: Likewise.
21107         * lib/stdarg.in.h: Likewise.
21108         * lib/stdint.in.h: Likewise.
21109         * lib/stdio.in.h: Likewise.
21110         * lib/stdlib.in.h: Likewise.
21111         * lib/string.in.h: Likewise.
21112         * lib/strings.in.h: Likewise.
21113         * lib/sys_file.in.h: Likewise.
21114         * lib/sys_ioctl.in.h: Likewise.
21115         * lib/sys_select.in.h: Likewise.
21116         * lib/sys_socket.in.h: Likewise.
21117         * lib/sys_stat.in.h: Likewise.
21118         * lib/sys_time.in.h: Likewise.
21119         * lib/sysexits.in.h: Likewise.
21120         * lib/time.in.h: Likewise.
21121         * lib/unistd.in.h: Likewise.
21122         * lib/wchar.in.h: Likewise.
21123         * lib/wctype.in.h: Likewise.
21124         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21125
21126 2008-10-17  Jim Meyering  <meyering@redhat.com>
21127
21128         ignore-value: don't depend on inline module
21129         * modules/ignore-value (Depends-on): Remove 'inline'.
21130         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21131         Suggestion from Bruno Haible.
21132
21133 2008-10-17  Bruno Haible  <bruno@clisp.org>
21134
21135         New implementation of condition variables for Win32.
21136         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21137         (gl_linked_waitqueue_t): New type.
21138         (gl_cond_t): Use it.
21139         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21140         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21141         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21142         (glthread_cond_init_func, glthread_cond_wait_func,
21143         glthread_cond_timedwait_func, glthread_cond_signal_func,
21144         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21145         Reimplemented on the basis of gl_linked_waitqueue_t.
21146         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21147         gl_waitqueue_t.
21148         (gl_rwlock_t): Update.
21149         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21150
21151 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21152
21153         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21154         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21155
21156 2008-10-17  Jim Meyering  <meyering@redhat.com>
21157
21158         ignore-value: new module
21159         * modules/ignore-value: New file.
21160         * lib/ignore-value.h: New file.
21161         * MODULES.html.sh (Compiler warning management): New section,
21162         just for this module.  More to come.
21163
21164 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21165
21166         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21167         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21168         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21169
21170 2008-10-16  Jim Meyering  <meyering@redhat.com>
21171
21172         openat-die.c: avoid 'no previous prototype' warning
21173         * lib/openat-die.c: Include "openat.h".
21174         Reported by Reuben Thomas <rrt@sc3d.org>.
21175
21176 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21177
21178         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21179         * lib/netdb.in.h: Fix typo.
21180         Reported by Bruno Haible  <bruno@clisp.org>
21181
21182         * lib/netdb.in.h: Include sys/socket.h for platforms without
21183         netdb.h, to get structures like hostent on MinGW.
21184         * modules/netdb (Depends-on): Add sys_socket.
21185
21186 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21187
21188         * modules/netdb, modules/netdb-tests: New file.
21189         * m4/netdb_h.m4: New file.
21190         * lib/netdb.in.h: Add, currently just an empty file pending
21191         definitions.
21192         * tests/test-netdb.c: New file.
21193         * doc/posix-headers/netdb.texi: Mention that we replace it if
21194         needed.
21195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21196         netdb.
21197
21198 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21199
21200         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21201         with code.
21202
21203 2008-10-13  Bruno Haible  <bruno@clisp.org>
21204
21205         * lib/glthread/cond.c (glthread_cond_wait_func,
21206         glthread_cond_timedwait_func): Add a comment.
21207
21208 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21209
21210         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21211         * tests/test-select.c: Likewise,
21212
21213 2008-10-13  Bruno Haible  <bruno@clisp.org>
21214
21215         * lib/glthread/cond.c (glthread_cond_wait_func,
21216         glthread_cond_timedwait_func): Fix variable name.
21217         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21218
21219 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21220
21221         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21223         struct sockaddr.sa_len.
21224         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21225
21226 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21227
21228         * build-aux/pmccabe2html: Add css and css_url parameters.
21229
21230 2008-10-12  Bruno Haible  <bruno@clisp.org>
21231
21232         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21233         calling aclx_get.
21234         Reported by Rainer Tammer <tammer@tammer.net>.
21235
21236 2008-10-12  Bruno Haible  <bruno@clisp.org>
21237
21238         Use msvcrt aware primitives for creation/termination of Win32 threads.
21239         * lib/glthread/thread.c: Include <process.h>.
21240         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21241         (wrapper_func): Update signature.
21242         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21243
21244 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21245             Bruno Haible  <bruno@clisp.org>
21246
21247         Provide a Win32 implementation of the 'cond' module.
21248         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21249         * lib/glthread/cond.c (glthread_cond_init_func,
21250         glthread_cond_wait_func, glthread_cond_timedwait_func,
21251         glthread_cond_signal_func, glthread_cond_broadcast_func,
21252         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21253         * modules/cond (Dependencies): Add gettimeofday.
21254
21255 2008-10-11  Bruno Haible  <bruno@clisp.org>
21256
21257         Make sleep work on older versions of mingw.
21258         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21259         only whether it exists.
21260         * doc/posix-functions/sleep.texi: Mention the problem with older
21261         versions of mingw.
21262
21263 2008-10-11  Bruno Haible  <bruno@clisp.org>
21264
21265         New module 'shutdown'.
21266         * modules/shutdown: New file.
21267         * lib/sys_socket.in.h (shutdown): New declaration.
21268         * lib/winsock.c (shutdown): New function.
21269         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21270         GNULIB_SHUTDOWN.
21271         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21272         * doc/posix-functions/shutdown.texi: Document the new module.
21273
21274 2008-10-11  Jim Meyering  <meyering@redhat.com>
21275
21276         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21277
21278 2008-10-11  Bruno Haible  <bruno@clisp.org>
21279
21280         New module 'fclose'.
21281         * modules/fclose: New file.
21282         * lib/stdio.in.h (fclose): New declaration.
21283         * lib/fclose.c: New file.
21284         * m4/fclose.m4: New file.
21285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21286         REPLACE_FCLOSE.
21287         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21288         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21289         REPLACE_FCLOSE.
21290         * modules/close (Depends-on): fclose.
21291         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21292
21293 2008-10-11  Bruno Haible  <bruno@clisp.org>
21294
21295         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21296         set errno and don't call _close.
21297
21298 2008-10-10  Bruno Haible  <bruno@clisp.org>
21299
21300         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21301         ACL, not afterwards. Fixes test failure on Cygwin.
21302
21303 2008-10-09  Ben Pfaff  <blp@gnu.org>
21304
21305         * build-aux/announce-gen: Fix gnulib version related part of usage
21306         message.  Die with a useful error message if no tarballs are
21307         found.
21308
21309 2008-10-10  Jim Meyering  <meyering@redhat.com>
21310
21311         bootstrap: use git's --depth=N option only if it's supported
21312         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21313         recognize the --depth option.  Reported by Pádraig Brady.
21314
21315 2008-10-09  Bruno Haible  <bruno@clisp.org>
21316
21317         New module 'ioctl'.
21318         * modules/ioctl: New file.
21319         * lib/sys_socket.in.h (ioctl): Remove declaration.
21320         * lib/winsock.c: Include <sys/ioctl.h>.
21321         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21322         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21323         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21324         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21325         * doc/posix-functions/ioctl.texi: Mention the new module.
21326
21327 2008-10-09  Bruno Haible  <bruno@clisp.org>
21328
21329         New module 'sys_ioctl'.
21330         * lib/sys_ioctl.in.h: New file.
21331         * m4/sys_ioctl_h.m4: New file.
21332         * modules/sys_ioctl: New file.
21333         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21334
21335 2008-10-09  Bruno Haible  <bruno@clisp.org>
21336
21337         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21338         * lib/winsock.c: Include <stdarg.h>.
21339         (rpl_ioctl): Change to second argument 'int' and then varargs.
21340
21341 2008-10-09  Bruno Haible  <bruno@clisp.org>
21342
21343         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21344         when the sys_socket module is present and the system has <winsock2.h>.
21345
21346 2008-10-09  Bruno Haible  <bruno@clisp.org>
21347
21348         * doc/posix-functions/close.texi: Mention module 'close' instead of
21349         module 'sys_socket'.
21350
21351 2008-10-09  Bruno Haible  <bruno@clisp.org>
21352
21353         * doc/glibc-headers/sys_ioctl.texi: New file.
21354         * doc/gnulib.texi: Include it.
21355
21356 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21357             Bruno Haible  <bruno@clisp.org>
21358
21359         Combine the two replacements of 'close'.
21360         * lib/sys_socket.in.h (close): Define to a reminder to include
21361         <unistd.h>.
21362         (_gl_close_fd_maybe_socket): New declaration.
21363         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21364         * lib/winsock.c (close): Remove undefinition.
21365         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21366         needed for the gnulib module 'close'.
21367         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21368         define to an error symbol or to a warning, if suitable.
21369         * lib/close.c: Include <sys/socket.h>.
21370         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21371         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21372         UNISTD_H_HAVE_WINSOCK2_H.
21373         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21375         UNISTD_H_HAVE_WINSOCK2_H.
21376         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21377         (configure.ac): Set a module indicator.
21378         (Makefile.am): Substitute GNULIB_CLOSE.
21379         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21380         * modules/poll-tests (Depends-on): Add close.
21381         * modules/select-tests (Depends-on): Likewise.
21382
21383 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21384             Bruno Haible  <bruno@clisp.org>
21385
21386         New module 'close'.
21387         * modules/close: New file.
21388         * lib/unistd.in.h (close): Move declaration out of the
21389         FCHDIR_REPLACEMENT scope.
21390         (_gl_unregister_fd): New declaration.
21391         * lib/close.c: New file.
21392         * lib/fchdir.c (rpl_close): Remove function.
21393         * m4/close.m4: New file.
21394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21395         close.
21396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21397         REPLACE_CLOSE.
21398         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21399         REPLACE_CLOSE.
21400         * modules/fchdir (Depends-on): Add close.
21401
21402 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21403             Bruno Haible  <bruno@clisp.org>
21404
21405         * lib/fcntl.in.h (open): Simplify conditionals.
21406         (_gl_register_fd): New declaration.
21407         * lib/fchdir.c (rpl_open): Remove function.
21408         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21409         also.
21410         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21412         open.
21413
21414 2008-10-09  Jim Meyering  <meyering@redhat.com>
21415
21416         GNUmakefile: use the more name-space-friendly "_version"
21417         * top/GNUmakefile (_dummy): Update.
21418         (_version): Rename from "version".
21419
21420 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21421             Bruno Haible  <bruno@clisp.org>
21422
21423         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21424         rpl_close.
21425         (_gl_register_fd): New function, extracted from rpl_open.
21426         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21427         (rpl_open, rpl_opendir): Use _gl_register_fd.
21428
21429 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21430
21431         Fix organization of 'open' replacement.
21432         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21433         (gl_FUNC_OPEN): Use it.
21434         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21435
21436 2008-10-08  Bruno Haible  <bruno@clisp.org>
21437
21438         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21439
21440 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21441
21442         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21443         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21444         listen).
21445
21446 2008-10-08  Eric Blake  <ebb9@byu.net>
21447
21448         GNUmakefile: add 'make version' target
21449         * top/GNUmakefile (_curr-ver): Split version update rules...
21450         (version): ...into a target.
21451
21452 2008-10-07  Bruno Haible  <bruno@clisp.org>
21453
21454         Use a more portable replacement expression for -0.0L.
21455         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21456         instead of -0.0L. Fix m4 quotation.
21457
21458         * tests/test-signbit.c: Include <float.h>.
21459         (minus_zero): New variable.
21460         (test_signbitl): Use minus_zero instead of -zero.
21461         * modules/signbit-tests (Depends-on): Add float.
21462
21463         * tests/test-ceill.c: Include <float.h>.
21464         (zero): Remove variable.
21465         (minus_zero): New variable.
21466         (main): Use minus_zero instead of -zero.
21467         * modules/ceill-tests (Depends-on): Add float.
21468
21469         * tests/test-floorl.c: Include <float.h>.
21470         (zero): Remove variable.
21471         (minus_zero): New variable.
21472         (main): Use minus_zero instead of -zero.
21473         * modules/floorl-tests (Depends-on): Add float.
21474
21475         * tests/test-roundl.c: Include <float.h>.
21476         (zero): Remove variable.
21477         (minus_zero): New variable.
21478         (main): Use minus_zero instead of -zero.
21479         * modules/roundl-tests (Depends-on): Add float.
21480
21481         * tests/test-truncl.c: Include <float.h>.
21482         (zero): Remove variable.
21483         (minus_zero): New variable.
21484         (main): Use minus_zero instead of -zero.
21485         * modules/truncl-tests (Depends-on): Add float.
21486
21487         * tests/test-frexpl.c (zero): Remove variable.
21488         (minus_zero): New variable.
21489         (main): Use minus_zero instead of -zero.
21490         * modules/frexpl-tests (Depends-on): Add float.
21491
21492         * tests/test-isnan.c (zerol): Remove variable.
21493         (minus_zerol): New variable.
21494         (test_long_double): Use minus_zerol instead of -zerol.
21495         * modules/isnan-tests (Depends-on): Add float.
21496
21497         * tests/test-isnanl.h (zero): Remove variable.
21498         (minus_zero): New variable.
21499         (main): Use minus_zero instead of -zero.
21500         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21501         * modules/isnanl-tests (Depends-on): Add float.
21502
21503         * tests/test-ldexpl.c (zero): Remove variable.
21504         (minus_zero): New variable.
21505         (main): Use minus_zero instead of -zero.
21506         * modules/ldexpl-tests (Depends-on): Add float.
21507
21508         * tests/test-snprintf-posix.h (zerol): Remove variable.
21509         (minus_zerol): New variable.
21510         (test_function): Use minus_zerol instead of -zerol.
21511         * modules/snprintf-posix-tests (Depends-on): Add float.
21512         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21513
21514         * tests/test-sprintf-posix.h (zerol): Remove variable.
21515         (minus_zerol): New variable.
21516         (test_function): Use minus_zerol instead of -zerol.
21517         * modules/sprintf-posix-tests (Depends-on): Add float.
21518         * modules/vsprintf-posix-tests (Depends-on): Add float.
21519
21520         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21521         (minus_zerol): New variable.
21522         (test_function): Use minus_zerol instead of -zerol.
21523         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21524
21525         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21526         (minus_zerol): New variable.
21527         (test_function): Use minus_zerol instead of -zerol.
21528         * modules/vasprintf-posix-tests (Depends-on): Add float.
21529
21530 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21531
21532         * MODULES.html.sh (Support for building documentation): Mention
21533         pmccabe2html.  Sort entries.
21534
21535         Add pmccabe2html module, from gnupdf.
21536         * build-aux/pmccabe.css: New file.
21537         * build-aux/pmccabe2html: New file.
21538         * m4/pmccabe2html.m4: New file.
21539         * modules/pmccabe2html: New file.
21540
21541 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21542
21543         flock: new module
21544         * MODULES.html.sh: Add to list of modules.
21545         * lib/flock.c: flock implementation for Windows and Unix systems
21546         which have fcntl.
21547         * doc/glibc-functions/flock.texi: Update documentation.
21548         * lib/sys_file.in.h: <sys/file.h> header file.
21549         * m4/flock.m4: M4 macros.
21550         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21551         * modules/flock: flock module.
21552         * modules/flock-tests: flock tests module.
21553         * modules/sys_file: sys/file.h module.
21554         * tests/test-flock.c: test suite for flock.
21555
21556 2008-10-06  Jim Meyering  <meyering@redhat.com>
21557
21558         bootstrap: check for LT_INIT more portably still ;-)
21559         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21560         Spotted by Bruno Haible.
21561
21562 2008-10-06  Eric Blake  <ebb9@byu.net>
21563
21564         test-signbit: avoid tripping Irix cc bug on -0.0L
21565         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21566         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21567         entire testsuite consistent and avoids an Irix 6.2 bug.
21568
21569 2008-10-05  Bruno Haible  <bruno@clisp.org>
21570             Jim Meyering  <jim@meyering.net>
21571
21572         Add an option for ignoring EPIPE during close_stdout.
21573         * lib/closeout.h: Include <stdbool.h>.
21574         (close_stdout_set_ignore_EPIPE): New declaration.
21575         * lib/closeout.c: Include <stdbool.h>.
21576         (ignore_EPIPE): New variable.
21577         (close_stdout_set_ignore_EPIPE): New function.
21578         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21579         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21580         failure.
21581         * modules/closeout (Depends-on): Add stdbool.
21582
21583 2008-10-05  Bruno Haible  <bruno@clisp.org>
21584
21585         * modules/accept: New file.
21586         * modules/bind: New file.
21587         * modules/connect: New file.
21588         * modules/getpeername: New file.
21589         * modules/getsockname: New file.
21590         * modules/getsockopt: New file.
21591         * modules/listen: New file.
21592         * modules/recv: New file.
21593         * modules/recvfrom: New file.
21594         * modules/send: New file.
21595         * modules/sendto: New file.
21596         * modules/setsockopt: New file.
21597         * modules/socket: New file.
21598         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21599         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21600         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21601         the particular module is requested. Add a link warning when the
21602         particular module is not requested.
21603         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21604         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21605         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21606         the particular module is requested.
21607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21608         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21609         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21610         * modules/sys_socket (Depends-on): Add link-warning.
21611         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21612         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21613         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21614         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21615         GL_LINK_WARNING.
21616         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21617         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21618         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21619         * doc/posix-functions/getpeername.texi: Mention the new module
21620         'getpeername'.
21621         * doc/posix-functions/getsockname.texi: Mention the new module
21622         'getsockname'.
21623         * doc/posix-functions/getsockopt.texi: Mention the new module
21624         'getsockopt'.
21625         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21626         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21627         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21628         * doc/posix-functions/send.texi: Mention the new module 'send'.
21629         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21630         * doc/posix-functions/setsockopt.texi: Mention the new module
21631         'setsockopt'.
21632         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21633         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21634         listen, connect, accept.
21635         * modules/select-tests (Depends-on): Likewise.
21636
21637 2008-10-05  Bruno Haible  <bruno@clisp.org>
21638
21639         * lib/winsock.c (strerror): Remove unused #undef.
21640         (rpl_close): Remove unused local variable.
21641
21642         * modules/sys_socket (Depends-on); Add errno.
21643
21644 2008-10-05  Bruno Haible  <bruno@clisp.org>
21645
21646         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21647         (select): Add a link warning when the 'select' module is not used.
21648         * modules/sys_select (Depends-on): Add link-warning.
21649         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21650         Suggested by Paolo Bonzini.
21651
21652 2008-10-05  Jim Meyering  <meyering@redhat.com>
21653
21654         bootstrap: check for LT_INIT more portably
21655         * build-aux/bootstrap: Avoid using grep -E, since it's not
21656         portable enough.  Suggestion from Bruno Haible.
21657
21658 2008-10-05  Bruno Haible  <bruno@clisp.org>
21659
21660         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21661         as being fixed by gnulib.
21662
21663 2008-10-05  Bruno Haible  <bruno@clisp.org>
21664
21665         * modules/select-tests: New file, mostly copied from
21666         modules/sys_select-tests.
21667         * tests/test-select.c: New file, mostly copied from
21668         tests/test-sys_select.c.
21669         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21670         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21671         (Makefile.am): Remove test_sys_select_LDADD.
21672
21673         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21674         to an undefined symbol, for an error message.
21675         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21676         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21677         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21678         winsock-select.c here.
21679         * modules/sys_select (Files): Remove lib/winsock-select.c.
21680         (Depends-on): Remove alloca.
21681         (Makefile.am): Substitute GNULIB_SELECT.
21682         * modules/select: New file.
21683         * doc/posix-functions/select.texi: Update.
21684
21685 2008-10-05  Bruno Haible  <bruno@clisp.org>
21686
21687         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21688         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21689         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21690         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21691         getdtablesize.
21692         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21693         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21694
21695 2008-10-05  Bruno Haible  <bruno@clisp.org>
21696
21697         * modules/getdtablesize-tests: New file.
21698         * tests/test-getdtablesize.c: New file.
21699
21700         New module 'getdtablesize'.
21701         * lib/unistd.in.h (getdtablesize): New declaration.
21702         * lib/getdtablesize.c: New file.
21703         * m4/getdtablesize.m4: New file.
21704         * modules/getdtablesize: New file.
21705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21706         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21707         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21708         HAVE_GETDTABLESIZE.
21709         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21710
21711 2008-10-05  Bruno Haible  <bruno@clisp.org>
21712
21713         * modules/sched (Makefile.am): Fix typo.
21714         Reported by Simon Josefsson.
21715
21716 2008-10-05  Jim Meyering  <meyering@redhat.com>
21717
21718         bootstrap: check for LT_INIT, too
21719         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21720         are deprecated.  Suggestion from Ralf Wildenhues.
21721
21722 2008-10-05  Bruno Haible  <bruno@clisp.org>
21723
21724         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21725         overriding them by ours.
21726         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21727
21728 2008-10-05  Jim Meyering  <meyering@redhat.com>
21729
21730         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21731         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21732         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21733
21734 2008-10-04  Bruno Haible  <bruno@clisp.org>
21735
21736         * modules/dup2 (License): Change to LGPLv2+.
21737         * modules/sleep (License): Likewise.
21738         * modules/perror (License): Likewise.
21739         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21740         Blake.
21741         * modules/signal (License): Likewise.
21742         * modules/sigprocmask (License): Likewise.
21743         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21744         Meyering.
21745
21746 2008-10-04  Bruno Haible  <bruno@clisp.org>
21747
21748         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21749         Reported by Rainer Tammer <tammer@tammer.net>.
21750
21751 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21752             Bruno Haible  <bruno@clisp.org>
21753
21754         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21755         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21756         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21757
21758 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21759
21760         filevercmp: new module
21761         * lib/filevercmp.h: New function filevercmp comparing version strings.
21762         * lib/filevercmp.c: Implementation of filevercmp function.
21763         * modules/filevercmp: Module metadata.
21764         * tests/test-filevercmp.c: Unit test for new module.
21765         * modules/filevercmp-tests: Unit test metadata.
21766         * MODULES.html.sh: Add filevercmp module.
21767
21768 2008-10-03  Bruno Haible  <bruno@clisp.org>
21769
21770         * lib/c-ctype.h: Add comment.
21771         Reported by Jim Meyering.
21772
21773 2008-10-02  Bruno Haible  <bruno@clisp.org>
21774
21775         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21776
21777 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21778
21779         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21780         name of bootstrap.conf accordingly.
21781
21782 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21783
21784         * build-aux/bootstrap: Install git-merge-changelog configuration
21785         items into .gitconfig if needed.
21786
21787 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21788
21789         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21790         git repository, and initialize/update it accordingly.
21791
21792 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21793
21794         * modules/fsync-tests: New file.
21795         * tests/test-fsync.c: New file.
21796
21797         New module 'fsync'.
21798         * lib/fsync.c: New file.
21799         * m4/fsync.m4: New file.
21800         * modules/fsync: New file.
21801         * lib/unistd.in.h (fsync): New declaration.
21802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21803         GNULIB_FSYNC and HAVE_FSYNC.
21804         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21805         * MODULES.html.sh (posix_functions): Add fsync.
21806         * doc/posix-functions/fsync.texi: Mention the new module.
21807
21808 2008-10-02  Jim Meyering  <meyering@redhat.com>
21809
21810         fts.c: sync with similar code from coreutils' remove.c
21811         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21812         Guard also with "#if defined __linux__", since for now at least,
21813         this code is Linux-kernel-specific.
21814
21815 2008-10-02  Jim Meyering  <meyering@redhat.com>
21816
21817         fts: bug fixes
21818         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21819         Include <sys/vfs.h>, not <sys/statfs.h>.
21820
21821         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21822         Include <sys/vfs.h>, not <sys/statfs.h>.
21823
21824 2008-10-01  Bruno Haible  <bruno@clisp.org>
21825
21826         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21827         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21828         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21829         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21830         * doc/posix-functions/posix_spawnp.texi: Likewise.
21831         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21832         whether posix_spawn actually works.
21833         * m4/pipe.m4 (gl_PIPE): Likewise.
21834         * modules/execute (Files): Add m4/posix_spawn.m4.
21835         * modules/pipe (Files): Add m4/posix_spawn.m4.
21836         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21837
21838 2008-10-01  Jim Meyering  <meyering@redhat.com>
21839
21840         remove trailing spaces
21841         * NEWS: Likewise.
21842         * lib/poll.c (poll): Likewise.
21843         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21844         * lib/winsock.c (rpl_close): Likewise.
21845         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21846         * modules/yield: Likewise.
21847         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21848         * tests/test-sys_select.c (connect_to_socket): Likewise.
21849
21850         fts.c: adjust a new interface to be more generally useful
21851         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21852         (fts_build): Adjust caller.
21853
21854 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21855
21856         * modules/cond-tests: New file.
21857         * tests/test-cond.c: New file.
21858
21859 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21860             Bruno Haible  <bruno@clisp.org>
21861
21862         * modules/cond (Dependencies): Add errno, time.
21863         * lib/glthread/cond.h: Include <time.h>.
21864         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21865         across platforms.
21866
21867 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21868             Bruno Haible  <bruno@clisp.org>
21869
21870         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21871
21872 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21873             Bruno Haible  <bruno@clisp.org>
21874
21875         * modules/tls-tests (Depends-on): Add thread, yield.
21876         (configure.ac): Remove all checks.
21877         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21878         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21879         gl_thread_self): Remove definitions. Include glthread/thread.h and
21880         glthread/yield.h instead.
21881         (test_tls): Pass an additional NULL argument to gl_thread_join.
21882
21883 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21884             Bruno Haible  <bruno@clisp.org>
21885
21886         * modules/lock-tests (Depends-on): Add thread, yield.
21887         (configure.ac): Remove all checks.
21888         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21889         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21890         gl_thread_self): Remove definitions. Include glthread/thread.h and
21891         glthread/yield.h instead.
21892         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21893         additional NULL argument to gl_thread_join.
21894
21895 2008-09-30  Bruno Haible  <bruno@clisp.org>
21896
21897         Fix the Win32 implementation of the 'thread' module.
21898         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21899         pointer type.
21900         (gl_thread_self): Invoke gl_thread_self_func.
21901         (gl_thread_self_func): New declaration.
21902         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21903         (do_init_self_key, init_self_key): New functions.
21904         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21905         Remove some fields.
21906         (running_threads, running_lock): Remove variables.
21907         (get_current_thread_handle): New function.
21908         (gl_thread_self_func, wrapper_func, glthread_create_func,
21909         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21910         simplified.
21911
21912 2008-09-30  Bruno Haible  <bruno@clisp.org>
21913
21914         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21915         files.
21916
21917 2008-09-30  Jim Meyering  <meyering@redhat.com>
21918
21919         fts.m4: correct the test for statfs.f_type
21920         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21921         when checking for statfs.f_type.
21922
21923 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21924
21925         tests: avoid some compiler warnings
21926         * tests/test-memchr.c (main): Pass NULL indirectly.
21927         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21928
21929 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21930
21931         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21932         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21933         exactly specified dayshifts.
21934         (dayshift): New rule.
21935         (rel): Add dayshift.
21936         (relative_time_table) [tomorrow, yesterday, today, now]:
21937         Use tDAY_SHIFT in place of tDAY_UNIT.
21938         * tests/test-getdate.c: Add tests for now-disallowed countable
21939         dayshifts, e.g., "4 yesterday ago".
21940
21941 2008-09-29  Bruno Haible  <bruno@clisp.org>
21942
21943         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21944         * tests/test-posix_spawn1.in.sh: Renamed from
21945         tests/test-posix_spawn.in.sh.
21946         * tests/test-posix_spawn2.c: New file.
21947         * tests/test-posix_spawn2.in.sh: New file.
21948         * modules/posix_spawnp-tests (Files): Update.
21949         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21950
21951 2008-09-29  Bruno Haible  <bruno@clisp.org>
21952
21953         Propagate effects of putenv/setenv/unsetenv to child processes.
21954         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21955         * lib/pipe.c (create_pipe): Likewise.
21956
21957 2008-09-29  Bruno Haible  <bruno@clisp.org>
21958
21959         Enable use of shell scripts as executables in mingw.
21960         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21961         run the program as a shell script.
21962         * lib/pipe.c (create_pipe): Likewise.
21963         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21964         resulting array.
21965
21966 2008-09-29  Eric Blake  <ebb9@byu.net>
21967
21968         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21969
21970 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21971
21972         * doc/posix-functions/accept.texi: Update mingw problems.
21973         * doc/posix-functions/bind.texi: Update mingw problems.
21974         * doc/posix-functions/close.texi: Update mingw problems.
21975         * doc/posix-functions/connect.texi: Update mingw problems.
21976         * doc/posix-functions/getpeername.texi: Update mingw problems.
21977         * doc/posix-functions/getsockname.texi: Update mingw problems.
21978         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21979         * doc/posix-functions/ioctl.texi: Update mingw problems.
21980         * doc/posix-functions/listen.texi: Update mingw problems.
21981         * doc/posix-functions/recv.texi: Update mingw problems.
21982         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21983         * doc/posix-functions/select.texi: Update mingw problems.
21984         * doc/posix-functions/send.texi: Update mingw problems.
21985         * doc/posix-functions/sendto.texi: Update mingw problems.
21986         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21987         * doc/posix-functions/socket.texi: Update mingw problems.
21988
21989 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21990             Bruno Haible  <bruno@clisp.org>
21991
21992         * lib/sys_select.in.h: Include sys/time.h.
21993         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21994         * modules/sys_select: Depend on sys_time.
21995         * tests/test-sys_select.c: Test that sys/select.h defines struct
21996         timeval fully.
21997
21998 2008-09-29  Bruno Haible  <bruno@clisp.org>
21999
22000         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22001         * lib/sys_select.in.h: Likewise.
22002
22003 2008-09-29  Bruno Haible  <bruno@clisp.org>
22004
22005         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22006
22007 2008-09-29  Bruno Haible  <bruno@clisp.org>
22008
22009         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22010         Set LIBSOCKET instead of augmenting LIBS.
22011         * modules/sockets (Link): New section.
22012         * modules/sockets-tests (test_sockets_LDADD): New variable.
22013         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22014         * modules/poll-tests (test_poll_LDADD): New variable.
22015         * NEWS: Document the change.
22016
22017 2008-09-29  Bruno Haible  <bruno@clisp.org>
22018
22019         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22020         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22021         ARPA_INET_H directly.
22022         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22023
22024 2008-09-28  Bruno Haible  <bruno@clisp.org>
22025
22026         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22027         from gl_HEADER_SYS_SOCKET.
22028         (gl_HEADER_SYS_SOCKET): Invoke it.
22029         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22030
22031 2008-09-28  Bruno Haible  <bruno@clisp.org>
22032
22033         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22034         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22035         Needed on OSF/1 4.0.
22036
22037 2008-09-28  Bruno Haible  <bruno@clisp.org>
22038
22039         Override open more carefully.
22040         * lib/open.c (orig_open): New function.
22041         (rpl_open): Use orig_open instead of open.
22042         * lib/fcntl.in.h: Add special invocation convention.
22043         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22044         (gl_FUNC_OPEN): Invoke it.
22045
22046         Override freopen more carefully.
22047         * lib/freopen.c (orig_freopen): New function.
22048         (rpl_freopen): Use orig_freopen instead of freopen.
22049         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22050         (gl_FUNC_FREOPEN): Invoke it.
22051
22052         Override fopen more carefully.
22053         * lib/fopen.c (orig_fopen): New function.
22054         (rpl_fopen): Use orig_fopen instead of fopen.
22055         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22056         (gl_FUNC_FOPEN): Invoke it.
22057         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22058
22059 2008-09-28  Bruno Haible  <bruno@clisp.org>
22060
22061         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22062         SIGPIPE.
22063
22064 2008-09-28  Bruno Haible  <bruno@clisp.org>
22065
22066         * tests/test-sigaction.c (handler, main): Disable the check whether
22067         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22068         glibc systems with LinuxThreads.
22069
22070 2008-09-28  Bruno Haible  <bruno@clisp.org>
22071
22072         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22073
22074         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22075         with AIX xlc.
22076         * lib/fcntl.in.h (open): Likewise.
22077         Reported by Rainer Tammer <tammer@tammer.net>.
22078
22079 2008-09-28  Bruno Haible  <bruno@clisp.org>
22080
22081         * modules/posix_spawnp-tests: New file.
22082         * tests/test-posix_spawn.c: New file.
22083         * tests/test-posix_spawn.in.sh: New file.
22084
22085         New module 'posix_spawnp'.
22086         * modules/posix_spawnp: New file.
22087         * lib/spawnp.c: New file, from GNU libc with modifications.
22088         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22089
22090         New module 'posix_spawn'.
22091         * modules/posix_spawn: New file.
22092         * lib/spawn.c: New file, from GNU libc with modifications.
22093         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22094
22095         New module 'posix_spawnattr_destroy'.
22096         * modules/posix_spawnattr_destroy: New file.
22097         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22098         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22099         module.
22100
22101         New module 'posix_spawnattr_setsigmask'.
22102         * modules/posix_spawnattr_setsigmask: New file.
22103         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22104         modifications.
22105         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22106         new module.
22107
22108         New module 'posix_spawnattr_getsigmask'.
22109         * modules/posix_spawnattr_getsigmask: New file.
22110         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22111         modifications.
22112         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22113         new module.
22114
22115         New module 'posix_spawnattr_setsigdefault'.
22116         * modules/posix_spawnattr_setsigdefault: New file.
22117         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22118         modifications.
22119         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22120         new module.
22121
22122         New module 'posix_spawnattr_getsigdefault'.
22123         * modules/posix_spawnattr_getsigdefault: New file.
22124         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22125         modifications.
22126         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22127         new module.
22128
22129         New module 'posix_spawnattr_setschedpolicy'.
22130         * modules/posix_spawnattr_setschedpolicy: New file.
22131         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22132         modifications.
22133         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22134         new module.
22135
22136         New module 'posix_spawnattr_getschedpolicy'.
22137         * modules/posix_spawnattr_getschedpolicy: New file.
22138         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22139         modifications.
22140         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22141         new module.
22142
22143         New module 'posix_spawnattr_setschedparam'.
22144         * modules/posix_spawnattr_setschedparam: New file.
22145         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22146         modifications.
22147         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22148         new module.
22149
22150         New module 'posix_spawnattr_getschedparam'.
22151         * modules/posix_spawnattr_getschedparam: New file.
22152         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22153         modifications.
22154         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22155         new module.
22156
22157         New module 'posix_spawnattr_setpgroup'.
22158         * modules/posix_spawnattr_setpgroup: New file.
22159         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22160         modifications.
22161         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22162         module.
22163
22164         New module 'posix_spawnattr_getpgroup'.
22165         * modules/posix_spawnattr_getpgroup: New file.
22166         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22167         modifications.
22168         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22169         module.
22170
22171         New module 'posix_spawnattr_setflags'.
22172         * modules/posix_spawnattr_setflags: New file.
22173         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22174         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22175         module.
22176
22177         New module 'posix_spawnattr_getflags'.
22178         * modules/posix_spawnattr_getflags: New file.
22179         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22180         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22181         module.
22182
22183         New module 'posix_spawnattr_init'.
22184         * modules/posix_spawnattr_init: New file.
22185         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22186         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22187         module.
22188
22189         New module 'posix_spawn_file_actions_destroy'.
22190         * modules/posix_spawn_file_actions_destroy: New file.
22191         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22192         modifications.
22193         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22194         the new module.
22195
22196         New module 'posix_spawn_file_actions_addopen'.
22197         * modules/posix_spawn_file_actions_addopen: New file.
22198         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22199         modifications.
22200         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22201         the new module.
22202
22203         New module 'posix_spawn_file_actions_adddup2'.
22204         * modules/posix_spawn_file_actions_adddup2: New file.
22205         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22206         modifications.
22207         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22208         the new module.
22209
22210         New module 'posix_spawn_file_actions_addclose'.
22211         * modules/posix_spawn_file_actions_addclose: New file.
22212         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22213         modifications.
22214         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22215         the new module.
22216
22217         New module 'posix_spawn_file_actions_init'.
22218         * modules/posix_spawn_file_actions_init: New file.
22219         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22220         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22221         new module.
22222
22223         New module 'posix_spawn-internal'.
22224         * modules/posix_spawn-internal: New file.
22225         * lib/spawn_int.h: New file, from GNU libc with modifications.
22226         * lib/spawni.c: New file, from GNU libc with modifications.
22227         * m4/posix_spawn.m4: New file.
22228
22229         New module 'spawn'.
22230         * modules/spawn: New file.
22231         * lib/spawn.in.h: New file, from GNU libc with modifications.
22232         * m4/spawn_h.m4: New file.
22233         * doc/posix-headers/spawn.texi: Mention the new module.
22234
22235 2008-09-28  Bruno Haible  <bruno@clisp.org>
22236
22237         * modules/sched-tests: New file.
22238         * tests/test-sched.c: New file.
22239
22240         New module 'sched'.
22241         * modules/sched: New file.
22242         * lib/sched.in.h: New file.
22243         * m4/sched_h.m4: New file.
22244         * doc/posix-headers/sched.texi: Mention the new module.
22245
22246 2008-09-27  Eric Blake  <ebb9@byu.net>
22247
22248         Fix previous patch, and tweak references to $0.
22249         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22250         (func_version, func_gnulib_dir): Don't call this program
22251         gnulib-tool.
22252         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22253         with using $0 in function.
22254         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22255         (func_fatal_error): Reuse the name the user invoked us with.
22256
22257 2008-09-27  Bruno Haible  <bruno@clisp.org>
22258
22259         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22260         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22261         (gl_ICONV_H): Not here.
22262         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22263         instead of assigning ICONV_H directly.
22264
22265         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22267         WCHAR_H directly.
22268
22269 2008-09-27  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22272         * modules/arpa_inet (Depends-on): Add link-warning.
22273         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22274         * modules/unistd (Makefile.am): Likewise.
22275
22276 2008-09-26  Bruno Haible  <bruno@clisp.org>
22277
22278         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22279         variables.
22280         (func_version): Essentially copied from gnulib-tool.
22281         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22282         func_readlink): Copied from gnulib-tool.
22283
22284 2008-09-26  Bruno Haible  <bruno@clisp.org>
22285
22286         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22287         invoking git-version-gen.
22288
22289 2008-09-26  Bruno Haible  <bruno@clisp.org>
22290
22291         * posix-modules: Update to directory names changed on 2008-01-19.
22292         Remove commas in output before splitting into words. No more need to
22293         avoid 'ftruncate' since 2007-02-19.
22294
22295 2008-09-26  Bruno Haible  <bruno@clisp.org>
22296
22297         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22298
22299 2008-09-26  Bruno Haible  <bruno@clisp.org>
22300
22301         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22302         * modules/fwriteerror (Depends-on): Add errno.
22303
22304 2008-09-26  Bruno Haible  <bruno@clisp.org>
22305
22306         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22307         * tests/test-vc-list-files-cvs.sh: Likewise.
22308
22309 2008-09-26  Bruno Haible  <bruno@clisp.org>
22310
22311         * doc/posix-headers/sys_resource.texi: Reorder items.
22312
22313 2008-09-26  Jim Meyering  <meyering@redhat.com>
22314
22315         fts: tweak inode comparison function
22316         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22317         inode numbers, as documented.
22318
22319         fts: sort dirent entries on inode number before traversing
22320         This avoids a quadratic, seek-related performance penalty when
22321         operating on a directory containing many entries (measurable at 10k;
22322         3.5 hours at 2 million entries with a cold cache) on certain types
22323         of file systems, including ext3 and ext4, but not tmpfs.
22324         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22325         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22326         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22327         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22328         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22329         (fts_build): Set the stat.st_ino member from D_INO.
22330         If it is likely to be useful, sort dirent entries on inode number.
22331
22332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22333         and the struct statfs.f_type member.
22334         * modules/fts (Depends-on): Add d-ino.
22335
22336 2008-09-26  Bruno Haible  <bruno@clisp.org>
22337
22338         * modules/sigpipe-die (Depends-on): Add sigpipe.
22339
22340         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22341         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22342         and GNULIB_STDIO_H_SIGPIPE are set.
22343         * lib/stdio-write.c: New file.
22344         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22345         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22346         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22347         REPLACE_STDIO_WRITE_FUNCS.
22348         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22349         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22350         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22351         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22352         * modules/stdio (Files): Add lib/stdio-write.c.
22353         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22354         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22355         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22356         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22357         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22358         REPLACE_FPRINTF_POSIX.
22359         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22360         REPLACE_PRINTF_POSIX.
22361         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22362         REPLACE_VFPRINTF_POSIX.
22363         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22364         REPLACE_VPRINTF_POSIX.
22365         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22366         SIGPIPE issue.
22367         * doc/posix-functions/fputc.texi: Likewise.
22368         * doc/posix-functions/fputs.texi: Likewise.
22369         * doc/posix-functions/fwrite.texi: Likewise.
22370         * doc/posix-functions/printf.texi: Likewise.
22371         * doc/posix-functions/putc.texi: Likewise.
22372         * doc/posix-functions/putchar.texi: Likewise.
22373         * doc/posix-functions/puts.texi: Likewise.
22374         * doc/posix-functions/vfprintf.texi: Likewise.
22375         * doc/posix-functions/vprintf.texi: Likewise.
22376
22377         * modules/safe-write (Depends-on): Add write.
22378
22379         * modules/sigpipe-tests: New file.
22380         * tests/test-sigpipe.c: New file.
22381         * tests/test-sigpipe.sh: New file.
22382
22383         * modules/write: New file.
22384         * lib/unistd.in.h: Include <sys/types.h>.
22385         (write): New declaration.
22386         * lib/write.c: New file.
22387         * m4/write.m4: New file.
22388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22389         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22390         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22391         GNULIB_WRITE, REPLACE_WRITE.
22392         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22393         and the SIGPIPE issue.
22394
22395         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22396         (raise): New declaration.
22397         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22398         (ext_signal): New function.
22399         (rpl_raise): New function.
22400         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22401         GNULIB_SIGNAL_H_SIGPIPE.
22402         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22403         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22404
22405         * modules/sigpipe: New file.
22406         * m4/sigpipe.m4: New file.
22407
22408 2008-09-25  Derek Price  <derek@ximbiot.com>
22409             Bruno Haible  <bruno@clisp.org>
22410
22411         * gnulib-tool (func_import): Report all license incompatibilities, not
22412         just the first one.
22413
22414 2008-09-25  Bruno Haible  <bruno@clisp.org>
22415
22416         * gnulib-tool (func_import): When computing the edits, consider not
22417         only the Makefile.ams that exist but also those that will be generated.
22418
22419 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22420
22421         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22422         fixes gnulib-tool --test warning about duplicate dependency.
22423
22424 2008-09-25  Bruno Haible  <bruno@clisp.org>
22425
22426         * gnulib-tool: Don't ask the user to perform edits in the generated
22427         Makefile.ams.
22428         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22429         apply to the Makefile.am being generated.
22430         (func_emit_tests_Makefile_am): Execute edits that apply to the
22431         Makefile.am being generated.
22432         (func_import): Setup list of Makefile.am edits before emitting the
22433         Makefile.ams, not at the end.
22434         (func_create_testdir): Update.
22435         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22436
22437 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22438
22439         * gnulib-tool (func_import): Store the --tests-base option in the
22440         comment in gnulib-cache.m4.
22441
22442 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22443
22444         * NEWS: Document increased portability that sys_select now provides.
22445
22446         * lib/sys_select.in.h: Install select wrapper.
22447         * lib/sys_socket.in.h: Use more descriptive name when there is no
22448         select wrapper.
22449         * lib/winsock-select.c: New.
22450         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22451         Require gl_HEADER_SYS_SOCKET.
22452         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22453         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22454         * tests/test-sys_select.c: Add functional tests.
22455
22456 2008-09-24  Eric Blake  <ebb9@byu.net>
22457
22458         open, fopen: close fd leak in last patch
22459         * lib/open.c (rpl_open): Close fd before returning error.
22460         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22461         * doc/posix-functions/open.texi (open): Document that Irix also
22462         has the bug.
22463         * doc/posix-functions/fopen.texi (fopen): Likewise.
22464         Reported by Paolo Bonzini.
22465
22466 2008-09-24  Bruno Haible  <bruno@clisp.org>
22467
22468         Ensure that a filename ending in a slash cannot be used to access a
22469         non-directory.
22470         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22471         to check whether it's really a directory.
22472         * lib/fopen.c: Include fcntl.h, unistd.h.
22473         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22474         and fdopen().
22475         * modules/fopen (Depends-on): Add unistd.
22476         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22477         * tests/test-fopen.c (main): Likewise.
22478         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22479         * doc/posix-functions/fopen.texi: Likewise.
22480         Reported by Eric Blake.
22481
22482 2008-09-23  Eric Blake  <ebb9@byu.net>
22483
22484         c-stack: avoid compiler optimizations when provoking overflow
22485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22486         recursion harder to optimize, to ensure a stack overflow occurs.
22487         * tests/test-c-stack.c (recurse): Likewise.
22488         Borrowed from libsigsegv.
22489
22490         c-stack: work around Irix sigaltstack bug
22491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22492         whether sigaltstack uses wrong end of stack_t (copied in part from
22493         libsigsegv).
22494         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22495         Irix bug, without requiring an over-allocation.
22496         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22497         bug.
22498
22499         fopen: document mingw bug on directories
22500         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22501         not allowing a stream visiting a directory, even though reading
22502         from such a stream is not portable.
22503
22504 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22505
22506         * lib/poll.c: Rewrite.
22507         * modules/poll: Depend on alloca.
22508
22509 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22510
22511         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22512         instead define prototypes for a full set of wrappers.  Ensure
22513         that Cygwin does not use the compatibility code, which is only
22514         for MinGW.
22515         * lib/winsock.c: New.
22516         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22517         * modules/sys_socket: Add lib/winsock.c.
22518
22519         * modules/poll-tests: Add errno and perror.
22520         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22521
22522 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22523
22524         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22525
22526 2008-09-23  Bruno Haible  <bruno@clisp.org>
22527
22528         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22529         * doc/glibc-functions/*: Likewise.
22530
22531 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22532
22533         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22534         success.
22535
22536 2008-09-22  Eric Blake  <ebb9@byu.net>
22537             Bruno Haible  <bruno@clisp.org>
22538
22539         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22540         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22541         supply %A but mishandle pseudo-NaN.
22542         Reported by Simon Josefsson.
22543
22544 2008-09-21  Bruno Haible  <bruno@clisp.org>
22545
22546         * tests/test-lock.c (main): Tweak skip message.
22547         * tests/test-tls.c (main): Likewise.
22548
22549 2008-09-21  Bruno Haible  <bruno@clisp.org>
22550
22551         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22552         whether 'struct sigaction' has sa_sigaction here...
22553         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22554         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22555
22556 2008-09-21  Bruno Haible  <bruno@clisp.org>
22557
22558         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22559         section.
22560         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22561         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22562         the new section.
22563         (Support for obsolete systems lacking POSIX:2001): New section.
22564         (String handling <string.h>): Move strdup to the new section.
22565         Suggested by Simon Josefsson and Paolo Bonzini.
22566
22567 2008-09-21  Bruno Haible  <bruno@clisp.org>
22568
22569         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22570         exponents in %e and %g results on 'long double'. Needed for mingw's
22571         improved *printf functions.
22572         * tests/test-vasprintf-posix.c (test_function): Likewise.
22573         * tests/test-snprintf-posix.h (test_function): Likewise.
22574         * tests/test-sprintf-posix.h (test_function): Likewise.
22575         Reported by Eric Blake.
22576
22577 2008-09-21  Bruno Haible  <bruno@clisp.org>
22578
22579         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22580         * tests/test-sprintf-posix.h (test_function): Likewise.
22581
22582 2008-09-21  Bruno Haible  <bruno@clisp.org>
22583
22584         * modules/getpass (Depends-on): Add strdup-posix.
22585
22586         New module 'strdup-posix'.
22587         * modules/strdup-posix: New file.
22588         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22589         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22591         REPLACE_STRDUP.
22592         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22593         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22595         strdup-posix.
22596
22597         * modules/strdup (Depends-on): Remove malloc-posix.
22598
22599 2008-09-20  Bruno Haible  <bruno@clisp.org>
22600
22601         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22602         Wildenhues.
22603
22604 2008-09-20  Bruno Haible  <bruno@clisp.org>
22605
22606         Ensure that wint_t gets defined on IRIX 5.3.
22607         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22608         * lib/wctype.in.h (wint_t): Likewise.
22609         (__wctype_wint_t): Remove type.
22610         (isw*): Use wint_t instead of __wctype_wint_t.
22611         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22612         * modules/wchar (Files): Add m4/wint_t.m4.
22613         (Makefile.am): Substitute HAVE_WINT_T.
22614         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22615         * tests/test-wctype.c: Check that wint_t is defined.
22616         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22617         * doc/posix-headers/wctype.texi: Likewise.
22618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22619
22620 2008-09-18  Bruno Haible  <bruno@clisp.org>
22621
22622         * gnulib-tool (func_exit): Update comment.
22623
22624 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22625
22626         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22627         assumes strdup exists and does not depend on strdup to return
22628         ENOMEM on out of memory conditions.
22629
22630 2008-09-18  Bruno Haible  <bruno@clisp.org>
22631
22632         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22633         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22634         digits for the exponent.
22635
22636 2008-09-18  Jim Meyering  <meyering@redhat.com>
22637             Bruno Haible  <bruno@clisp.org>
22638
22639         * lib/vasnprintf.c (decimal_point_char): Define also if
22640         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22641
22642 2008-09-16  Bruno Haible  <bruno@clisp.org>
22643         and Eric Blake  <ebb9@byu.net>
22644
22645         vasnprintf: support Irix 5.3
22646         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22647         that mishandle long double infinity.
22648         Reported by Tom G. Christensen.
22649
22650 2008-09-16  Bruno Haible  <bruno@clisp.org>
22651
22652         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22653         Solaris 9.
22654         * doc/glibc-functions/alphasort.texi: Likewise.
22655         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22656
22657 2008-09-16  Jim Meyering  <meyering@redhat.com>
22658
22659         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22660         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22661         a umask modification leak out of a subshell.  Otherwise, the
22662         opensolaris /bin/sh would be accepted and thus cause unwarranted
22663         failures in the coreutils test suite.
22664
22665 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22666
22667         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22668         to succeed.
22669
22670 2008-09-16  Jim Meyering  <meyering@redhat.com>
22671
22672         avoid spurious test failure when library is built without ACL support
22673         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22674         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22675         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22676         * tests/test-copy-acl.sh: Likewise.
22677
22678 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22679
22680         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22681         based on character occurrence counts.
22682
22683 2008-09-15  Eric Blake  <ebb9@byu.net>
22684
22685         tests: avoid some compiler warnings
22686         * tests/test-memchr.c (main): Pass NULL indirectly.
22687         * tests/test-closein.c (main): Avoid unused variable.
22688
22689 2008-09-15  Bruno Haible  <bruno@clisp.org>
22690
22691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22692         are missing on OpenBSD 4.0 individually.
22693         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22694
22695 2008-09-15  Bruno Haible  <bruno@clisp.org>
22696
22697         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22698         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22699         * doc/posix-functions/perror.texi: Likewise.
22700         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22701         is missing.
22702         Reported by Eric Blake.
22703
22704         * lib/errno.in.h: Use replacement values >= 2000.
22705         Reported by Eric Blake.
22706
22707 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22708
22709         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22710         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22711         limit.
22712         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22713         compareseq was aborted.
22714
22715 2008-09-14  Bruno Haible  <bruno@clisp.org>
22716
22717         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22718         yvec_edit_count.
22719         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22720         (fstrcmp_bounded): Simplify result computation accordingly.
22721
22722 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22723
22724         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22725         (fstrcmp): Define in terms of fstrcmp_bounded.
22726         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22727         lower_bound argument.
22728         Return quickly if the result is certainly < lower_bound.
22729         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22730
22731 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22732
22733         * lib/diffseq.h (EARLY_ABORT): New macro.
22734         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22735         evaluates to true.
22736
22737 2008-09-14  Bruno Haible  <bruno@clisp.org>
22738
22739         * modules/perror-tests: New file.
22740         * tests/test-perror.sh: New file.
22741         * tests/test-perror.c: New file.
22742
22743         New module 'perror'.
22744         * lib/stdio.in.h (perror): New declaration.
22745         * lib/perror.c: New file.
22746         * m4/perror.m4: New file.
22747         * modules/perror: New file.
22748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22749         * doc/posix-functions/perror.texi: Mention the perror module.
22750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22751         REPLACE_PERROR.
22752         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22753         REPLACE_PERROR.
22754
22755 2008-09-14  Bruno Haible  <bruno@clisp.org>
22756
22757         * modules/stdio (Makefile.am): Reorder to match the order in
22758         lib/stdio.in.h.
22759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22760
22761 2008-09-13  Bruno Haible  <bruno@clisp.org>
22762
22763         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22764
22765 2008-09-13  Bruno Haible  <bruno@clisp.org>
22766
22767         Extend strerror to cover the added errno values.
22768         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22769         (rpl_strerror): Provide error messages for the added errno values and
22770         for the WSA* values.
22771         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22772         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22773         strerror.
22774         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22775         * modules/strerror (Depends-on): Add errno.
22776         * doc/posix-functions/strerror.texi: Document the change.
22777         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22778         and EOVERFLOW.
22779
22780 2008-09-13  Bruno Haible  <bruno@clisp.org>
22781
22782         * modules/EOVERFLOW: Remove file.
22783         * m4/eoverflow.m4: Remove file.
22784         * modules/EOVERFLOW-tests: Remove file.
22785         * tests/test-EOVERFLOW.c: Remove file.
22786         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22787         * modules/ftell (Depends-on): Likewise.
22788         * modules/getdelim (Depends-on): Likewise.
22789         * modules/getugroups (Depends-on): Likewise.
22790         * modules/poll (Depends-on): Likewise.
22791         * modules/snprintf (Depends-on): Likewise.
22792         * modules/sprintf-posix (Depends-on): Likewise.
22793         * modules/vasnprintf (Depends-on): Likewise.
22794         * modules/vasprintf (Depends-on): Likewise.
22795         * modules/vfprintf-posix (Depends-on): Likewise.
22796         * modules/vsnprintf (Depends-on): Likewise.
22797         * modules/vsprintf-posix (Depends-on): Likewise.
22798         * modules/xvasprintf (Depends-on): Likewise.
22799         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22800         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22801         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22802         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22803         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22804         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22805         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22806         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22807         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22808         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22809         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22810         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22811         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22812         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22813         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22814         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22815         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22816         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22817         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22818         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22819         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22820         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22821         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22822         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22823         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22824         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22825         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22826         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22827         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22828         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22829         * MODULES.html.sh: Remove EOVERFLOW.
22830         * NEWS: Mention the change.
22831
22832 2008-09-13  Bruno Haible  <bruno@clisp.org>
22833
22834         * modules/errno-tests: New file.
22835         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22836
22837         * lib/errno.in.h: New file.
22838         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22839         * modules/errno: New file.
22840         * doc/posix-headers/errno.texi: Update documentation.
22841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22842
22843 2008-09-13  Bruno Haible  <bruno@clisp.org>
22844
22845         * tests/test-poll.c: Use #if for native Windows, rather than testing
22846         __MSVCRT__.
22847
22848 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22849             Bruno Haible  <bruno@clisp.org>
22850
22851         * lib/glob.c: Don't include <pwd.h> on native Windows.
22852         (WINDOWS32): New macro.
22853         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22854
22855 2008-09-13  Bruno Haible  <bruno@clisp.org>
22856
22857         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22858         (ETIMEDOUT): Remove macro.
22859         (glthread_cond_timedwait_multithreaded): New declaration.
22860         (glthread_cond_timedwait): Use it.
22861         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22862         (glthread_cond_timedwait_multithreaded): New function.
22863
22864 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22865
22866         * modules/poll-tests: Do not check for io.h.
22867         * tests/test-poll.c: Check for __MSVCRT__ instead.
22868
22869 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22870
22871         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22872         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22873         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22874
22875 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22876
22877         * modules/poll-tests: New.
22878         * tests/test-poll.c: New.
22879
22880 2008-09-12  Eric Blake  <ebb9@byu.net>
22881
22882         frexp: test for NetBSD failure on -0.0
22883         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22884         not all, bugs from NetBSD 3.0 have been fixed.
22885         * doc/posix-functions/frexp.texi (frexp): Document bug.
22886         Reported by Thomas Klausner.
22887
22888         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22889         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22890         literal -0.0.
22891         Reported by Jonathan C. Patschke <jp@centtech.com>.
22892
22893 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22894
22895         * lib/glthread/cond.h: Use dummy implementation also if
22896         USE_WIN32_THREADS.
22897
22898 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22899
22900         * modules/fnmatch-posix (License): Change to LGPLv2+.
22901         * modules/fnmatch-gnu (License): Likewise.
22902
22903 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22904
22905         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22906
22907 2008-09-11  Jim Meyering  <meyering@redhat.com>
22908
22909         * users.txt: Add gtk-vnc.
22910
22911 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22912
22913         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22914         rotate amounts.
22915
22916         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22917         required for 16-bit and 8-bit rotates.
22918         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22919         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22920         UINT8_MAX instead of hard-coded constants.
22921         Suggested by Paul Eggert.
22922
22923 2008-09-07  Bruno Haible  <bruno@clisp.org>
22924
22925         * tests/test-striconveh.c (main): Check behaviour when converting from
22926         UTF-7.
22927
22928         Make striconveh work better with stateful encodings.
22929         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22930         that iconv does not increment the inptr when returning -1/EINVAL.
22931
22932 2008-09-07  Bruno Haible  <bruno@clisp.org>
22933
22934         * build-aux/config.rpath: Update according to libtool-2.2.6.
22935         * build-aux/config.libpath: Likewise.
22936
22937 2008-09-06  Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22940         * lib/freadptr.c (freadptr): Likewise.
22941         * lib/freadseek.c (freadptrinc): Likewise.
22942         Reported by Simon Josefsson.
22943
22944 2008-09-06  Bruno Haible  <bruno@clisp.org>
22945
22946         * modules/freadptr (License): Change to LGPLv2+.
22947         * modules/freadseek (License): Likewise.
22948         Suggested by Eric Blake.
22949
22950         * modules/memchr2 (License): Change to LGPLv2+.
22951         Approved by Eric Blake.
22952
22953 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22954             Bruno Haible  <bruno@clisp.org>
22955
22956         Make gnulib-tool work with native 'sed' on AIX.
22957         * gnulib-tool (sed_noop): New variable.
22958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22959         func_add_or_update, func_create_testdir): Use it to initialize sed
22960         script variables.
22961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22962
22963 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22964             Bruno Haible  <bruno@clisp.org>
22965
22966         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22967         also works after #include directives.
22968
22969 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22970
22971         getdate.y: reject an out-of-range timezone value
22972         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22973         the range [-24...+24].  When specified with only one or two digits,
22974         * tests/test-getdate.c: Tests for the fix.
22975         * doc/getdate.texi: Document this change.
22976
22977 2008-09-03  Bruno Haible  <bruno@clisp.org>
22978
22979         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22980
22981 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22982
22983         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22984         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22985         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22986         Blake <ebb9@byu.net>.
22987
22988         * tests/test-bitrotate.c: Add more test vectors.
22989
22990 2008-09-02  Eric Blake  <ebb9@byu.net>
22991
22992         vasnprintf-posix: handle large precision via %.*d
22993         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22994         when handling it ourselves.
22995         * tests/test-vasnprintf-posix.c (test_function): Add test.
22996         * tests/test-snprintf-posix.h (test_function): Likewise.
22997         * tests/test-sprintf-posix.h (test_function): Likewise.
22998         * tests/test-vasprintf-posix.c (test_function): Likewise.
22999         Reported by Alain Guibert.
23000
23001 2008-09-01  Eric Blake  <ebb9@byu.net>
23002
23003         c-stack: make configure-time check more robust
23004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23005         successful sigaction call.
23006         Reported by Tom G. Christensen.
23007
23008 2008-09-01  Bruno Haible  <bruno@clisp.org>
23009
23010         New module 'findprog-lgpl'.
23011         * modules/findprog-lgpl: New file.
23012         * lib/findprog-lgpl.c: New file.
23013         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23014         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23015         to decide whether to use strdup or xstrdup, concatenated_filename or
23016         xconcatenated_filename.
23017
23018 2008-09-01  Bruno Haible  <bruno@clisp.org>
23019
23020         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23021         'xconcat-filename' (GPL).
23022         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23023         (License): Change to LGPLv2+.
23024         * modules/xconcat-filename: New file.
23025         * lib/concat-filename.h (concatenated_filename): Change specification.
23026         (xconcatenated_filename): New declaration.
23027         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23028         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23029         memory situations.
23030         * lib/xconcat-filename.c: New file.
23031         * NEWS: Mention the change.
23032         * lib/findprog.c: Include concat-filename.h, not filename.h.
23033         (find_in_path): Use xconcatenated_filename instead of
23034         concatenated_filename.
23035         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23036         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23037         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23038         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23039         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23040         instead of concatenated_filename.
23041         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23042         (execute_java_class): Use xconcatenated_filename instead of
23043         concatenated_filename.
23044         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23045         * modules/javacomp (Depends-on): Likewise.
23046         * modules/javaexec (Depends-on): Likewise.
23047
23048 2008-09-01  Bruno Haible  <bruno@clisp.org>
23049
23050         Split module 'filename' into 'filename' and 'concat-filename'.
23051         * modules/filename: Keep only lib/filename.h.
23052         (License): Change to LGPLv2+.
23053         * modules/concat-filename: New file, extracted from modules/filename.
23054         * lib/filename.h (concatenated_filename): Remove declaration.
23055         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23056         * lib/concat-filename.c: Include concat-filename.h.
23057         * NEWS: Mention the change.
23058
23059 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23060
23061         * lib/bitrotate.h (rotl8, rotr8): Add.
23062
23063         * modules/bitrotate (configure.ac): Need
23064         AC_REQUIRE([AC_C_INLINE]).
23065         (Description): Mention stdint.h.  Reported by Bruno Haible
23066         <bruno@clisp.org>.
23067
23068         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23069         Paolo Bonzini <bonzini@gnu.org>.
23070
23071 2008-08-31  Bruno Haible  <bruno@clisp.org>
23072
23073         Assume Solaris specific bi-arch conventions on Solaris systems.
23074         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23075         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23076         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23077         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23078         like acl_libdirstem.
23079         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23080         acl_libdirstem.
23081         * NEWS: Mention the change.
23082         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23083
23084 2008-08-31  Jim Meyering  <meyering@redhat.com>
23085
23086         * lib/strftime.h: Add comments describing the two added arguments.
23087
23088         remove duplicate #include directives
23089         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23090         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23091
23092 2008-08-31  Bruno Haible  <bruno@clisp.org>
23093
23094         New module 'sigpipe-die'.
23095         * modules/sigpipe-die: New file.
23096         * lib/sigpipe-die.h: New file.
23097         * lib/sigpipe-die.c: New file.
23098         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23099
23100 2008-08-31  Bruno Haible  <bruno@clisp.org>
23101
23102         Don't override previously installed signal handlers.
23103         * lib/fatal-signal.c (saved_sigactions): New variable.
23104         (uninstall_handlers): Reset the signal to the saved handler, not
23105         to SIG_DFL (except when ignored).
23106         (install_handlers): Save the previous handlers.
23107
23108 2008-08-30  Bruno Haible  <bruno@clisp.org>
23109
23110         * gnulib-tool (func_reset_sigpipe): New function.
23111         (func_get_automake_snippet, func_modules_transitive_closure,
23112         func_import): Invoke it before a join command that reads from stdin,
23113         to avoid "echo: write error: Broken pipe" error messages on stderr.
23114         Reported by Sam Steingold <sds@gnu.org>.
23115
23116 2008-08-30  Bruno Haible  <bruno@clisp.org>
23117
23118         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23119         Code copied from m4/open.m4.
23120         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23121         access and the filename ends in a slash. Code copied from lib/open.c.
23122         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23123         * tests/test-fopen.c (main): Check against bug with trailing slash.
23124
23125 2008-08-29  Bruno Haible  <bruno@clisp.org>
23126
23127         Avoid some "gcc -pedantic" warnings.
23128         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23129         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23130         * lib/dirent.in.h: Likewise.
23131         * lib/fcntl.in.h: Likewise.
23132         * lib/float.in.h: Likewise.
23133         * lib/iconv.in.h: Likewise.
23134         * lib/inttypes.in.h: Likewise.
23135         * lib/locale.in.h: Likewise.
23136         * lib/math.in.h: Likewise.
23137         * lib/netinet_in.in.h: Likewise.
23138         * lib/search.in.h: Likewise.
23139         * lib/signal.in.h: Likewise.
23140         * lib/stdarg.in.h: Likewise.
23141         * lib/stdint.in.h: Likewise.
23142         * lib/stdio.in.h: Likewise.
23143         * lib/stdlib.in.h: Likewise.
23144         * lib/string.in.h: Likewise.
23145         * lib/strings.in.h: Likewise.
23146         * lib/sys_select.in.h: Likewise.
23147         * lib/sys_socket.in.h: Likewise.
23148         * lib/sys_stat.in.h: Likewise.
23149         * lib/sys_time.in.h: Likewise.
23150         * lib/sysexits.in.h: Likewise.
23151         * lib/time.in.h: Likewise.
23152         * lib/unistd.in.h: Likewise.
23153         * lib/wchar.in.h: Likewise.
23154         * lib/wctype.in.h: Likewise.
23155         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23156         * modules/fchdir (Makefile.am): Likewise.
23157         * modules/fcntl (Makefile.am): Likewise.
23158         * modules/float (Makefile.am): Likewise.
23159         * modules/iconv_open (Makefile.am): Likewise.
23160         * modules/inttypes (Makefile.am): Likewise.
23161         * modules/locale (Makefile.am): Likewise.
23162         * modules/math (Makefile.am): Likewise.
23163         * modules/netinet_in (Makefile.am): Likewise.
23164         * modules/search (Makefile.am): Likewise.
23165         * modules/signal (Makefile.am): Likewise.
23166         * modules/stdarg (Makefile.am): Likewise.
23167         * modules/stdint (Makefile.am): Likewise.
23168         * modules/stdio (Makefile.am): Likewise.
23169         * modules/stdlib (Makefile.am): Likewise.
23170         * modules/string (Makefile.am): Likewise.
23171         * modules/strings (Makefile.am): Likewise.
23172         * modules/sys_select (Makefile.am): Likewise.
23173         * modules/sys_socket (Makefile.am): Likewise.
23174         * modules/sys_stat (Makefile.am): Likewise.
23175         * modules/sys_time (Makefile.am): Likewise.
23176         * modules/sysexits (Makefile.am): Likewise.
23177         * modules/time (Makefile.am): Likewise.
23178         * modules/unistd (Makefile.am): Likewise.
23179         * modules/wchar (Makefile.am): Likewise.
23180         * modules/wctype (Makefile.am): Likewise.
23181         Reported by Reuben Thomas <rrt@sc3d.org>.
23182
23183 2008-08-29  Bruno Haible  <bruno@clisp.org>
23184
23185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23186         any more.
23187
23188 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23189
23190         * MODULES.html.sh (Misc): Add bitrotate.
23191
23192         * modules/bitrotate: New file.
23193
23194         * lib/bitrotate.h: New file.
23195
23196         * modules/bitrotate-tests: New file.
23197
23198         * tests/test-bitrotate.c: New file.
23199
23200         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23201         on the bitrotate module.
23202
23203         * lib/arctwo.c: Use new bitrotate module.
23204
23205 2008-08-29  Jim Meyering  <meyering@redhat.com>
23206
23207         bootstrap: merge changes from coreutils
23208         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23209         of copied files.  Remove a kludge, now that this is fixed.
23210         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23211         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23212         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23213
23214 2008-08-29  Bruno Haible  <bruno@clisp.org>
23215
23216         * MODULES.html.sh: Remove --cvs-urls option.
23217
23218 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23219
23220         maint.mk: adjust to file name change
23221         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23222
23223 2008-08-28  Jim Meyering  <meyering@redhat.com>
23224
23225         * modules/getndelim2 (License): Relicense to LGPLv2+.
23226         Approved by Richard Stallman for the version of 1995, and by
23227         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23228
23229 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23230
23231         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23232         dummy if one is not available.  Do not touch them if
23233         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23234         (getc_maybe_unlocked): New.
23235         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23236
23237 2008-08-26  Eric Blake  <ebb9@byu.net>
23238
23239         doc/INSTALL: resync from autoconf
23240         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23241         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23242         moving...
23243         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23244         * INSTALL: Regenerate.
23245         * INSTALL.ISO: New file.
23246         * INSTALL.UTF-8: Likewise.
23247
23248 2008-08-26  Jim Meyering  <meyering@redhat.com>
23249
23250         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23251         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23252         these definitions conditional, so that they may be overridden, too.
23253
23254 2008-08-26  Bruno Haible  <bruno@clisp.org>
23255
23256         Generate INSTALL file variants with prettier quotes.
23257         * doc/Makefile (INSTALL_PRELUDE): New macro.
23258         (INSTALL): Use it.
23259         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23260
23261 2008-08-26  Bruno Haible  <bruno@clisp.org>
23262
23263         Run makeinfo in an English locale.
23264         * doc/Makefile (MAKEINFO): New variable.
23265
23266 2008-08-26  Bruno Haible  <bruno@clisp.org>
23267
23268         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23269         Suggested by Eric Blake.
23270
23271 2008-08-25  Bruno Haible  <bruno@clisp.org>
23272
23273         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23274
23275 2008-08-25  Eric Blake  <ebb9@byu.net>
23276
23277         c-stack: test that stack overflow can be caught
23278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23279         that platform allows handling stack overflow; at least OS/2 EMX
23280         has sigaltstack, but crashes before transferring control to
23281         handler on stack overflow.
23282         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23283         check for HAVE_STACK_OVERFLOW_HANDLING.
23284         Reported by Elbert Pol.
23285
23286 2008-08-25  Bruno Haible  <bruno@clisp.org>
23287
23288         * doc/posix-functions/strftime.texi: Fix description of strftime
23289         module.
23290
23291 2008-08-24  Bruno Haible  <bruno@clisp.org>
23292
23293         * tests/uniwidth/test-uc_width2.c: New file.
23294         * tests/uniwidth/test-uc_width2.sh: New file.
23295         * modules/uniwidth/width-tests (Files): Add the new files.
23296         (TESTS): Add uniwidth/test-uc_width2.sh.
23297         (TESTS_ENVIRONMENT): New variable.
23298         (check_PROGRAMS): Add test-uc_width2.
23299         (test_uc_width2_SOURCES): New variable.
23300
23301         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23302         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23303         not 0x00AB.
23304         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23305
23306 2008-08-22  Eric Blake  <ebb9@byu.net>
23307
23308         test-lock, test-tls: mention why a test is skipped
23309         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23310         skipped.
23311         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23312
23313         count-one-bits: relax license
23314         * modules/count-one-bits (License): Relicense to LGPLv2+.
23315         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23316
23317 2008-08-22  Andreas Schwab  <schwab@suse.de>
23318
23319         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23320         Remove spurious space in assignment.
23321
23322 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23323
23324         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23325         Paul Eggert <eggert@CS.UCLA.EDU>.
23326
23327 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23328
23329         * modules/gettext: Add m4/threadlib.m4.
23330
23331 2008-08-19  Eric Blake  <ebb9@byu.net>
23332
23333         test-c-stack: fix compilation failure on FreeBSD 5.0
23334         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23335         headers before <sys/resource.h>.
23336         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23337         the bug.
23338         Reported by Nelson H. F. Beebe.
23339
23340         strverscmp: migrate from "strverscmp.h" to <string.h>
23341         * modules/string (Makefile.am): Add new hooks.
23342         * modules/strverscmp (Files): Remove strverscmp.h.
23343         (Depends-on): Add string.
23344         (configure.ac): Add indicator.
23345         (Include): Mention new header.
23346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23347         defaults.
23348         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23349         results.
23350         * lib/strverscmp.h: Delete.
23351         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23352         * tests/test-strverscmp.c (includes): Adjust client.
23353         * lib/check-version.c (includes): Likewise.
23354         * NEWS: Document the change.
23355
23356         strverscmp: add unit test
23357         * modules/strverscmp-tests: New file.
23358         * tests/test-strverscmp.c: Likewise.
23359
23360 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23361
23362         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23363         regarding Windows crypto stuff, from Mono.
23364
23365 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23366
23367         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23368         if present, for intel RND.  Return error on failures.
23369
23370 2008-08-18  Ben Pfaff  <blp@gnu.org>
23371
23372         gitlog-to-changelog: give better diagnostic for failed pipe-open
23373         * build-aux/gitlog-to-changelog: Improve error message: suggest
23374         that the version of Git may be too old.
23375
23376 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23377
23378         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23379         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23380
23381 2008-08-18  Bruno Haible  <bruno@clisp.org>
23382
23383         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23384         pthread_in_use().
23385
23386 2008-08-18  Bruno Haible  <bruno@clisp.org>
23387
23388         * lib/glthread/threadlib.c: Include <pthread.h>.
23389
23390 2008-08-18  Bruno Haible  <bruno@clisp.org>
23391
23392         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23393         glthread_recursive_lock_* macros.
23394         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23395         Fix syntax error.
23396
23397 2008-08-18  Bruno Haible  <bruno@clisp.org>
23398
23399         * lib/glthread/thread.c: Avoid forcing a context switch right after
23400         thread creation.
23401
23402 2008-08-17  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23405         * lib/glthread/thread.h: Provide Win32 specific implementation.
23406         * modules/thread (Files): Add lib/glthread/thread.c.
23407         (Depends-on): Add lock.
23408         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23409
23410 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23411
23412         New module 'yield'.
23413         * modules/yield: New file.
23414         * lib/glthread/yield.h: New file.
23415         * m4/yield.m4: New file.
23416         * MODULES.html.sh (Multithreading): Add yield.
23417
23418 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23419
23420         New module 'thread'.
23421         * modules/thread: New file.
23422         * lib/glthread/thread.h: New file.
23423         * m4/thread.m4: New file.
23424         * MODULES.html.sh (Multithreading): Add thread.
23425
23426 2008-08-17  Bruno Haible  <bruno@clisp.org>
23427
23428         * lib/glthread/lock.h: Include <stdlib.h> always.
23429         * lib/glthread/tls.h: Likewise.
23430         * lib/glthread/cond.h: Likewise.
23431
23432 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23433
23434         New module 'cond'.
23435         * modules/cond: New file.
23436         * lib/glthread/cond.h: New file.
23437         * lib/glthread/cond.c: New file.
23438         * m4/cond.m4: New file.
23439         * MODULES.html.sh (Multithreading): Add cond.
23440
23441 2008-08-16  Eric Blake  <ebb9@byu.net>
23442
23443         c-stack: fix regression on Irix 5.3 from 2008-06-21
23444         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23445         sa_sigaction...
23446         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23447         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23448         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23449         * modules/signal (Makefile.am): Use the value.
23450         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23451         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23452         * doc/posix-headers/signal.texi (signal.h): Document this
23453         portability issue.
23454         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23455         Reported by Tom G. Christensen.
23456
23457 2008-08-17  Bruno Haible  <bruno@clisp.org>
23458
23459         New module 'threadlib'.
23460         * modules/threadlib: New file.
23461         * lib/glthread/threadlib.c: New file, extracted from
23462         lib/glthread/lock.c.
23463         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23464         functions.
23465         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23466         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23467         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23468         macros.
23469         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23470         (gl_DISABLE_THREADS): Remove macro.
23471         * modules/lock (Files): Remove build-aux/config.rpath.
23472         (Depends-on): Remove havelib. Add threadlib.
23473         (configure.ac-early): Remove section.
23474         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23475         * modules/tls (Depends-on): Remove lock. Add threadlib.
23476         (Link): New section, copied from threadlib.
23477         * MODULES.html.sh (Multithreading): Add threadlib.
23478
23479 2008-08-14  Bruno Haible  <bruno@clisp.org>
23480
23481         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23482         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23483         glthread_rwlock_unlock, glthread_rwlock_destroy,
23484         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23485         glthread_recursive_lock_destroy): Define as macros always.
23486         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23487         glthread_lock_lock.
23488         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23489         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23490         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23491         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23492         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23493         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23494         (glthread_recursive_lock_lock_func): Renamed from
23495         glthread_recursive_lock_lock.
23496         (glthread_recursive_lock_unlock_func): Renamed from
23497         glthread_recursive_lock_unlock.
23498         (glthread_recursive_lock_destroy_func): Renamed from
23499         glthread_recursive_lock_destroy.
23500
23501 2008-08-14  Bruno Haible  <bruno@clisp.org>
23502
23503         * lib/glthread/lock.h: Renamed from lib/lock.h.
23504         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23505         * lib/glthread/tls.h: Renamed from lib/tls.h.
23506         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23507         * lib/fstrcmp.c: Update includes.
23508         * lib/strsignal.c: Update includes.
23509         * modules/lock (Files, Makefile.am): Update.
23510         (Include): Change to "glthread/lock.h".
23511         * modules/tls (Files, Makefile.am): Update.
23512         (Include): Change to "glthread/tls.h".
23513         * tests/test-lock.c: Update includes.
23514         * tests/test-tls.c: Update includes.
23515         * NEWS: Mention the renamed header files.
23516
23517 2008-08-11  Jim Meyering  <meyering@redhat.com>
23518
23519         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23520
23521 2008-08-11  Eric Blake  <ebb9@byu.net>
23522
23523         test-c-stack: avoid C99-ism
23524         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23525         before statement.
23526         Reported by Alain Guibert.
23527
23528 2008-08-10  Jim Meyering  <meyering@redhat.com>
23529
23530         ensure that return value of uinttostr et al are not ignored
23531         * lib/inttostr.h (__GNUC_PREREQ): Define.
23532         (__attribute_warn_unused_result__): Define.
23533         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23534
23535 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23536
23537         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23538         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23539
23540 2008-08-07  Jim Meyering  <meyering@redhat.com>
23541
23542         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23543
23544         * modules/mkstemp (License): Relicense under LGPLv2+.
23545         * modules/tempname (License): Likewise.
23546
23547 2008-08-06  Bruno Haible  <bruno@clisp.org>
23548
23549         * lib/poll.c (poll): Further micro-optimization.
23550
23551 2008-08-06  Jim Meyering  <meyering@redhat.com>
23552
23553         inet_pton.c: use locale-independent tolower
23554         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23555         (inet_pton6): Use c_tolower rather than tolower.
23556         * modules/inet_pton (Depends-on): Add c-ctype.
23557
23558 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23559
23560         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23561         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23562
23563 2008-08-06  Jim Meyering  <meyering@redhat.com>
23564
23565         * modules/inet_pton (License): Relicense under LGPLv2+.
23566
23567 2008-08-03  Bruno Haible  <bruno@clisp.org>
23568
23569         Additional non-aborting API for lock and tls.
23570         * lib/lock.h: Include <errno.h>.
23571         (glthread_lock_init): New macro/function.
23572         (gl_lock_init): Define as wrapper around glthread_lock_init.
23573         (glthread_lock_lock): New macro/function.
23574         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23575         (glthread_lock_unlock): New macro/function.
23576         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23577         (glthread_lock_destroy): New macro/function.
23578         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23579         (glthread_rwlock_init): New macro/function.
23580         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23581         (glthread_rwlock_rdlock): New macro/function.
23582         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23583         (glthread_rwlock_wrlock): New macro/function.
23584         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23585         (glthread_rwlock_unlock): New macro/function.
23586         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23587         (glthread_rwlock_destroy): New macro/function.
23588         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23589         (glthread_recursive_lock_init): New macro/function.
23590         (gl_recursive_lock_init): Define as wrapper around
23591         glthread_recursive_lock_init.
23592         (glthread_recursive_lock_lock): New macro/function.
23593         (gl_recursive_lock_lock): Define as wrapper around
23594         glthread_recursive_lock_lock.
23595         (glthread_recursive_lock_unlock): New macro/function.
23596         (gl_recursive_lock_unlock): Define as wrapper around
23597         glthread_recursive_lock_unlock.
23598         (glthread_recursive_lock_destroy): New macro/function.
23599         (gl_recursive_lock_destroy): Define as wrapper around
23600         glthread_recursive_lock_destroy.
23601         (glthread_once): New macro/function.
23602         (gl_once): Define as wrapper around glthread_once.
23603         Update function declarations.
23604         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23605         glthread_rwlock_init. Return error code.
23606         (glthread_rwlock_rdlock_multithreaded): Renamed from
23607         glthread_rwlock_rdlock. Return error code.
23608         (glthread_rwlock_wrlock_multithreaded): Renamed from
23609         glthread_rwlock_wrlock. Return error code.
23610         (glthread_rwlock_unlock_multithreaded): Renamed from
23611         glthread_rwlock_unlock. Return error code.
23612         (glthread_rwlock_destroy_multithreaded): Renamed from
23613         glthread_rwlock_destroy. Return error code.
23614         (glthread_recursive_lock_init_multithreaded): Renamed from
23615         glthread_recursive_lock_init. Return error code.
23616         (glthread_recursive_lock_lock_multithreaded): Renamed from
23617         glthread_recursive_lock_lock. Return error code.
23618         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23619         glthread_recursive_lock_unlock. Return error code.
23620         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23621         glthread_recursive_lock_destroy. Return error code.
23622         (glthread_once_call): Make static.
23623         (glthread_once_multithreaded): Renamed from glthread_once.
23624         * lib/tls.h: Include <errno.h>.
23625         (glthread_tls_key_init): New macro/function.
23626         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23627         (glthread_tls_set): New macro/function.
23628         (gl_tls_set): Define as wrapper around glthread_tls_set.
23629         (glthread_tls_key_destroy): New macro/function.
23630         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23631         Update function declarations.
23632         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23633         glthread_tls_get.
23634         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23635
23636 2008-08-04  Eric Blake  <ebb9@byu.net>
23637
23638         gnumakefile: use space, not TAB, outside of targets
23639         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23640
23641 2008-08-02  Jim Meyering  <meyering@redhat.com>
23642
23643         getdate.y: avoid locale-dependent date parsing failure
23644         In Turkish locales, getdate would fail to recognize keywords
23645         containing a lowercase "i".  The solution is not to rely on
23646         locale-sensitive case-conversion.
23647         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23648         (lookup_word): Use c_toupper in place of toupper.
23649         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23650         Reported by Vefa Bicakci <bicave@superonline.com> in
23651         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23652         * modules/getdate (Depends-on): Add c-ctype.
23653
23654 2008-08-02  Bruno Haible  <bruno@clisp.org>
23655
23656         * gnulib-tool (func_import): When updating or creating a .gitignore
23657         file, prepend each added line with a slash, and ignore leading slashes
23658         from the existing lines.
23659         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23660
23661 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23662
23663         Portability fix for GNU make 3.79.1.
23664         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23665         versions do not understand.
23666
23667 2008-08-01  Bruno Haible  <bruno@clisp.org>
23668
23669         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23670         * tests/test-isnanf.h (zero): New variable.
23671         (main): Avoid literal -0.0f.
23672         * tests/test-isnand.h (zero): New variable.
23673         (main): Avoid literal -0.0.
23674         * tests/test-isnanl.h (zero): New variable.
23675         (main): Avoid literal -0.0L.
23676         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23677         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23678         -0.0, -0.0L.
23679         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23680         (test_signbitd): Avoid literal -0.0.
23681         (test_signbitl): Avoid literal -0.0L.
23682         * tests/test-ceilf1.c (zero): New variable.
23683         (main): Avoid literal -0.0f.
23684         * tests/test-ceill.c (zero): New variable.
23685         (main): Avoid literal -0.0L.
23686         * tests/test-floorf1.c (zero): New variable.
23687         (main): Avoid literal -0.0f.
23688         * tests/test-floorl.c (zero): New variable.
23689         (main): Avoid literal -0.0L.
23690         * tests/test-roundf1.c (zero): New variable.
23691         (main): Avoid literal -0.0f.
23692         * tests/test-round1.c (zero): New variable.
23693         (main): Avoid literal -0.0.
23694         * tests/test-roundl.c (zero): New variable.
23695         (main): Avoid literal -0.0L.
23696         * tests/test-truncf1.c (zero): New variable.
23697         (main): Avoid literal -0.0f.
23698         * tests/test-trunc1.c (zero): New variable.
23699         (main): Avoid literal -0.0.
23700         * tests/test-truncl.c (zero): New variable.
23701         (main): Avoid literal -0.0L.
23702         * tests/test-frexp.c (zero): New variable.
23703         (main): Avoid literal -0.0.
23704         * tests/test-frexpl.c (zero): New variable.
23705         (main): Avoid literal -0.0L.
23706         * tests/test-ldexpl.c (zero): New variable.
23707         (main): Avoid literal -0.0L.
23708         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23709         (zerod, zerol): New variables.
23710         (test_function): Avoid literals -0.0, -0.0L.
23711         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23712         (zerod, zerol): New variables.
23713         (test_function): Avoid literals -0.0, -0.0L.
23714         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23715         (zerod, zerol): New variables.
23716         (test_function): Avoid literals -0.0, -0.0L.
23717         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23718         (zerod, zerol): New variables.
23719         (test_function): Avoid literals -0.0, -0.0L.
23720         * tests/test-strtod.c (zero): New variable.
23721         (main): Avoid literal -0.0.
23722         Reported by Jonathan C. Patschke <jp@centtech.com>.
23723
23724 2008-07-31  Jim Meyering  <meyering@redhat.com>
23725
23726         sha256.h: correct definition of SHA224_DIGEST_SIZE
23727         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23728         Reported by Paulie Pena IV <paulie4@gmail.com>.
23729         Define as 224 / 8, rather than as a literal.
23730         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23731         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23732         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23733
23734 2008-07-31  Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23737         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23738         Reported by Jonathan Patschke <jp@centtech.com>.
23739
23740 2008-07-31  Bruno Haible  <bruno@clisp.org>
23741
23742         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23743         Reported by Paolo Bonzini <bonzini@gnu.org>.
23744
23745 2008-07-30  Eric Blake  <ebb9@byu.net>
23746
23747         test-strtod: allow compilation without -lm
23748         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23749         Reported by Dennis Clarke <blastwave@gmail.com>.
23750
23751 2008-07-28  Jim Meyering  <meyering@redhat.com>
23752
23753         bootstrap: work also when there are no .po files in po/
23754         * build-aux/bootstrap (update_po_files): Complete the change
23755         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23756
23757 2008-07-27  Jim Meyering  <meyering@redhat.com>
23758
23759         * users.txt: Add zile.
23760
23761 2008-07-26  Ben Pfaff  <blp@gnu.org>
23762
23763         Add missing dependencies on new m4/exponent[fdl].m4 files.
23764         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23765         * modules/isnand-nolibm: Add m4/exponentd.m4.
23766         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23767         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23768         m4/isnan[fdl].m4, because the macros actually used moved.
23769         Reported by Jim Meyering.
23770
23771 2008-07-14  Ben Pfaff  <blp@gnu.org>
23772
23773         Add isinf module.
23774         * lib/isinf.c: New file.
23775         * lib/math.in.h: Define isinf macro if we have decided to replace
23776         it.
23777         * m4/isinf.m4: New file.
23778         * m4/math_h.m4: Initialize and substitute variables for isinf
23779         module.
23780         * modules/isinf: New file.
23781         * modules/isinf-tests: New file.
23782         * modules/math: Add substitutions for new module.
23783         * tests/test-isinf.c: New file.
23784         * doc/posix-functions/isinf.texi: Mention new module.
23785         * MODULES.html.sh: Mention new module.
23786
23787 2008-07-14  Ben Pfaff  <blp@gnu.org>
23788
23789         Factor out some macros for use by additional modules.
23790         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23791         exponentf.m4.
23792         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23793         exponentd.m4.
23794         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23795         file exponentl.m4.
23796         * m4/exponentf.m4: New file.
23797         * m4/exponentd.m4: New file.
23798         * m4/exponentl.m4: New file.
23799         * modules/isnanf: Use new file m4/exponentf.m4.
23800         * modules/isnand: Use new file m4/exponentd.m4.
23801         * modules/isnanl: Use new file m4/exponentl.m4.
23802
23803 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23804
23805         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23806         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23807         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23808         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23809
23810         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23811         readlink on platforms without PATH_MAX.
23812
23813 2008-07-21  Eric Blake  <ebb9@byu.net>
23814
23815         Warn, not fail, on stale version.
23816         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23817
23818         Don't allow installation with stale devel version number.
23819         * top/GNUmakefile (_is-install-target): New macro.
23820         (_curr-ver): Forbid installation with stale version number.
23821
23822 2008-07-20  Bruno Haible  <bruno@clisp.org>
23823
23824         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23825         TESTS_ENVIRONMENT.
23826         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23827
23828 2008-07-20  Bruno Haible  <bruno@clisp.org>
23829
23830         * lib/c-stack.h (c_stack_action): Add documentation.
23831         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23832
23833 2008-07-20  Bruno Haible  <bruno@clisp.org>
23834
23835         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23836         * modules/readlink (License): Likewise.
23837
23838 2008-07-17  Eric Blake  <ebb9@byu.net>
23839
23840         * modules/c-stack (Link): Fix typo.
23841
23842         Make c-stack use libsigsegv, when available.
23843         * modules/c-stack (Depends-on): Add libsigsegv.
23844         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23845         needed.
23846         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23847         (segv_handler, overflow_handler, c_stack_action)
23848         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23849         implementation when libsigsegv is available, but only when using
23850         the library is necessary.
23851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23852         comment, explaining why XSI check fails on Linux.
23853         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23854         * tests/test-c-stack2.sh: Tweak skip message.
23855         * NEWS: Document new link-time requirements.
23856
23857 2008-07-16  Eric Blake  <ebb9@byu.net>
23858
23859         c-stack: Expose false positives when not using libsigsegv.
23860         * modules/c-stack-tests (Files): Expand test.
23861         * tests/test-c-stack.c (main): Add means to conditionally trigger
23862         non-overflow SIGSEGV.
23863         * tests/test-c-stack2.sh: New file.
23864
23865 2008-07-14  Bruno Haible  <bruno@clisp.org>
23866
23867         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23868         Reported by Eric Blake.
23869
23870 2008-07-14  Sam Steingold  <sds@gnu.org>
23871             Bruno Haible  <bruno@clisp.org>
23872
23873         New module libsigsegv.
23874         * modules/libsigsegv: New file.
23875         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23876         modifications.
23877         * MODULES.html.sh (Signal handling): New section.
23878
23879 2008-07-14  Bruno Haible  <bruno@clisp.org>
23880
23881         * modules/unictype/ctype-* (Description): Add the word "function".
23882         Improves the resulting doc in MODULES.html.
23883
23884 2008-07-12  Ben Pfaff  <blp@gnu.org>
23885
23886         Add longlong module.
23887         * modules/longlong: New file.
23888
23889 2008-07-12  Bruno Haible  <bruno@clisp.org>
23890
23891         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23892         to empty.
23893
23894 2008-07-10  Ben Pfaff  <blp@gnu.org>
23895
23896         Add isnan module.
23897         * doc/posix-functions/isnan.texi: Mention new module.
23898         * lib/math.in.h: Define isnan macro if we have decided to replace
23899         it.
23900         * m4/isnan.m4: New file.
23901         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23902         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23903         also.
23904         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23905         redundancy.
23906         * m4/math_h.m4: Initialize and substitute variables for isnan
23907         module.
23908         * modules/isnan: New file.
23909         * modules/isnan-tests: New file.
23910         * modules/math: Add substitutions for new module.
23911         * tests/test-isnan.c: New file.
23912         * MODULES.html.sh: Mention new module.
23913
23914 2008-07-10  Ben Pfaff  <blp@gnu.org>
23915
23916         Add isnanf module.
23917         * lib/isnanf.m4: New file.
23918         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23919         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23920         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23921         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23922         * modules/isnanf: New file.
23923         * modules/isnanf-tests: New file.
23924         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23925         files.
23926         * tests/test-isnanf-nolibm.c: factored most of its contents into
23927         new file tests/test-isnanf.h.
23928         * tests/test-isnanf.h: New file.
23929         * tests/test-isnanf.c: New file.
23930         * MODULES.html.sh: Mention new module.
23931         * doc/glibc-functions/isnanf.texi: Mention new module.
23932
23933 2008-07-10  Ben Pfaff  <blp@gnu.org>
23934
23935         Add isnand module.
23936         * lib/isnand.h: New file.
23937         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23938         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23939         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23940         functionality also.
23941         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23942         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23943         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23944         * modules/isnand: New file.
23945         * modules/isnand-tests: New file.
23946         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23947         files.
23948         * tests/test-isnand-nolibm.c: factored most of its contents into
23949         new file tests/test-isnand.h.
23950         * tests/test-isnand.h: New file.
23951         * tests/test-isnand.c: New file.
23952         * MODULES.html.sh: Mention new module.
23953
23954 2008-07-10  Ben Pfaff  <blp@gnu.org>
23955
23956         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23957         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23958         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23959         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23960         * modules/isnanf-nolibm: Update references to renamed files.
23961         * modules/isnand-nolibm: Likewise.
23962         * modules/isnanf-nolibm-tests: Likewise.
23963         * modules/isnand-nolibm-tests: Likewise.
23964         * lib/frexp.c: Likewise.
23965         * lib/isfinite.c: Likewise.
23966         * lib/signbitd.c: Likewise.
23967         * lib/signbitf.c: Likewise.
23968         * lib/vasnprintf.c: Likewise.
23969         * tests/test-ceilf1.c: Likewise.
23970         * tests/test-ceilf2.c: Likewise.
23971         * tests/test-floorf1.c: Likewise.
23972         * tests/test-floorf2.c: Likewise.
23973         * tests/test-frexp.c: Likewise.
23974         * tests/test-round1.c: Likewise.
23975         * tests/test-round2.c: Likewise.
23976         * tests/test-roundf1.c: Likewise.
23977         * tests/test-strtod.c: Likewise.
23978         * tests/test-trunc1.c: Likewise.
23979         * tests/test-trunc2.c: Likewise.
23980         * tests/test-truncf1.c: Likewise.
23981         * tests/test-truncf2.c: Likewise.
23982         * NEWS: Mention the renamed header files.
23983
23984 2008-07-11  Jim Meyering  <meyering@redhat.com>
23985
23986         vc-list-files: make the last-resort awk code more portable
23987         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23988         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23989         does not support it.
23990
23991 2008-07-10  Eric Blake  <ebb9@byu.net>
23992
23993         Work with tar's bootstrap.
23994         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23995         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23996         an m4 comment.
23997
23998 2008-07-09  Jim Meyering  <meyering@redhat.com>
23999
24000         posix-shell.m4: fix typo that made this test malfunction
24001         * m4/posix-shell.m4: Remove capitalization in variable name.
24002
24003 2008-07-08  Bruno Haible  <bruno@clisp.org>
24004
24005         * m4/onceonly.m4: Update comments.
24006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24007
24008 2008-07-04  Jim Meyering  <meyering@redhat.com>
24009
24010         * users.txt: Add vc-dwim.
24011         (bison, coreutils): Use the gitweb URL.
24012
24013 2008-07-03  Jim Meyering  <meyering@redhat.com>
24014
24015         * users.txt: Add libffcall.  From Sam Steingold.
24016
24017 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
24018
24019         getdate.y: do not ignore TZ with relative day, month or year offset
24020         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24021         relative-date-handling, since otherwise, the latter would clobber the
24022         sole output (an updated Start value) of the tz-handling block.
24023         * tests/test-getdate.c: Tests for the fix
24024
24025 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24026
24027         Recognize 'foo_LIBRARIES += libgnu.a'.
24028         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24029         makefile snippet has already specified an installation location,
24030         also using '+='.
24031
24032 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
24033
24034         getdate.y: factor out common actions
24035         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24036         Use them in place of open-coded actions.
24037
24038 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24039
24040         Add self-test for getdate module.
24041         * modules/getdate-tests: New file.
24042         * tests/test-getdate.c: New file.
24043
24044 2008-06-29  Bruno Haible  <bruno@clisp.org>
24045
24046         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24047         .gitignore.
24048         Reported by Sylvain Beucler <beuc@beuc.net>.
24049
24050 2008-06-29  Bruno Haible  <bruno@clisp.org>
24051
24052         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24053         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24054
24055 2008-06-29  Bruno Haible  <bruno@clisp.org>
24056
24057         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24058         EXTRA_DIST.
24059         Reported by Sylvain Beucler <beuc@beuc.net>.
24060
24061 2008-06-26  Jim Meyering  <meyering@redhat.com>
24062
24063         make several modules depend on the "open" module
24064         This provides slightly increased consistency when opening-for-write
24065         the name of a non-directory spelled with a trailing slash.
24066         * modules/chdir-safer: Likewise.
24067         * modules/chown: Likewise.
24068         * modules/clean-temp: Likewise.
24069         * modules/copy-file: Likewise.
24070         * modules/fchdir: Likewise.
24071         * modules/fcntl-safer: Likewise.
24072         * modules/pipe: Likewise.
24073         * modules/utime: Likewise.
24074         Prompted by Eric Blake and Bruno Haible.
24075
24076 2008-06-24  Andreas Schwab  <schwab@suse.de>
24077
24078         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24079         literals can be used as initializers for global variables.
24080
24081 2008-06-23  Eric Blake  <ebb9@byu.net>
24082
24083         Make gnulib-cache.m4 easier to diff.
24084         * gnulib-tool (func_import): Allow newlines when reading cached
24085         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24086
24087 2008-06-23  Bruno Haible  <bruno@clisp.org>
24088
24089         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24090         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24091         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24092         m4/signalblocking.m4.
24093         (gl_PREREQ_SIGACTION): Don't invoke it.
24094         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24095         gl_PREREQ_SIG_HANDLER_H.
24096         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24097         Don't check for sigaction here.
24098
24099 2008-06-23  Bruno Haible  <bruno@clisp.org>
24100
24101         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24102         (install_handlers): Don't set the SA_RESETHAND flag.
24103
24104 2008-06-23  Bruno Haible  <bruno@clisp.org>
24105
24106         * m4/sigaction.m4: Comment fixes.
24107         * lib/signal.in.h: Likewise.
24108
24109 2008-06-23  Eric Blake  <ebb9@byu.net>
24110
24111         Fix typo.
24112         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24113
24114         Avoid SA_ namespace.
24115         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24116         Reported by Ralf Wildenhues.
24117
24118         Avoid test failure due to SA_RESTORER.
24119         * tests/test-sigaction.c (SA_MASK): New macro.
24120         (main): Avoid failing due to extension flags being set.
24121         Reported by Jim Meyering.
24122
24123         Revert use of sig-handler.h in sigprocmask.c.
24124         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24125         it requires the existence of struct sigaction.
24126         * lib/sigprocmask.c (handler_t): Restore typedef.
24127         (rpl_signal, old_handlers): Use local type.
24128
24129 2008-06-22  Bruno Haible  <bruno@clisp.org>
24130
24131         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24132         conditionally.
24133         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24134
24135 2008-06-22  Bruno Haible  <bruno@clisp.org>
24136
24137         * doc/posix-functions/siginterrupt.texi: Move note.
24138
24139         * lib/signal.in.h (SA_RESTART): New macro.
24140         * lib/sigaction.c: Update comment.
24141
24142         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24143
24144         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24145         (gl_PREREQ_SIGPROCMASK): Invoke it.
24146         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24147
24148         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24149
24150         * lib/sigprocmask.c: Update a comment.
24151
24152 2008-06-21  Eric Blake  <ebb9@byu.net>
24153
24154         Use sigaction module rather than signal().
24155         * modules/c-stack (Depends-on): Add sigaction.
24156         * modules/fatal-signal (Depends-on): Likewise.
24157         * modules/nanosleep (Depends-on): Likewise.
24158         * modules/sigprocmask (Files): Add sig-handler.h.
24159         * modules/sigaction (Files): Likewise.
24160         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24161         Eggert.
24162         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24163         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24164         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24165         (init_fatal_signals): Likewise.
24166         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24167         (siginterrupt): Delete fallback.
24168         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24169         instead.
24170         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24171         siginterrupt.
24172
24173         New module sigaction, for mingw.
24174         * modules/sigaction: New module...
24175         * modules/sigaction-tests: ...and its test.
24176         * m4/sigaction.m4: New file.
24177         * lib/sigaction.c: Likewise.
24178         * tests/test-sigaction.c: Likewise.
24179         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24180         * modules/signal (Makefile.am): Likewise.
24181         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24182         needed.
24183         * doc/posix-headers/signal.texi (signal.h): Mention provided
24184         types.
24185         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24186         that sigaction is preferable.
24187         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24188         module.
24189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24190         sigaction.
24191
24192         Improve robustness of sigprocmask by overriding signal.
24193         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24194         is in use.
24195         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24196         (SIGKILL, SIGSTOP): Provide fallbacks.
24197         (rpl_signal): Implement.
24198         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24199         signal can be called inside handlers.
24200
24201         Fix nanosleep module on mingw.
24202         * modules/nanosleep (Depends-on): Add sys_select.
24203         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24204
24205         Fix licensing of sigprocmask.
24206         * modules/raise (License): Relicense as LGPL.
24207
24208 2008-06-21  Bruno Haible  <bruno@clisp.org>
24209
24210         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24211         result if it contains question marks.
24212         Reported by Michael Geng <linux@michaelgeng.de>.
24213
24214 2008-06-19  Bruno Haible  <bruno@clisp.org>
24215
24216         Fix CVS-ism.
24217         * doc/gnulib.texi: Include updated-stamp.texi.
24218         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24219         (updated-stamp.texi): New rule.
24220         (gnulib.info): Depend on it.
24221         * doc/.gitignore: Add updated-stamp.texi.
24222         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24223
24224 2008-06-19  Bruno Haible  <bruno@clisp.org>
24225
24226         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24227         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24228
24229 2008-06-19  Eric Blake  <ebb9@byu.net>
24230
24231         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24232         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24233         Reported by Stepan Kasal.
24234
24235 2008-06-18  Bruno Haible  <bruno@clisp.org>
24236
24237         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24238         Reported by Eric Blake.
24239
24240 2008-06-18  Eric Blake  <ebb9@byu.net>
24241
24242         Work around cygwin 1.5.25 strsignal bug.
24243         * tests/test-strsignal.c: Allow for const char *.
24244         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24245
24246 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24247
24248         * users.txt: Update URL to article and add author/date
24249         information.
24250
24251 2008-06-17  Bruno Haible  <bruno@clisp.org>
24252
24253         New macro gl_DISABLE_THREADS.
24254         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24255         if the user did not pass --enable-threads or --disable-threads option.
24256         (gl_DISABLE_THREADS): New macro.
24257         Reported by Eric Blake <ebb9@byu.net>.
24258
24259 2008-06-17  Bruno Haible  <bruno@clisp.org>
24260
24261         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24262         when the macro ignores it.
24263         Based on a patch by Eric Blake <ebb9@byu.net>.
24264
24265 2008-06-17  Bruno Haible  <bruno@clisp.org>
24266
24267         * modules/tls (License): Change to LGPLv2+.
24268         Reported by Eric Blake.
24269
24270 2008-06-17  Eric Blake  <ebb9@byu.net>
24271
24272         Simplify c-stack prerequisites.
24273         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24275         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24276         check.
24277         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24278         <sys/resource.h>.
24279
24280         Move c-stack test into testsuite.
24281         * modules/c-stack-tests: New file.
24282         * lib/c-stack.c [DEBUG]: Move test program...
24283         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24284         fail test if sigaltstack is lacking.
24285         * tests/test-c-stack.sh: New driver file.
24286
24287 2008-06-16  Eric Blake  <ebb9@byu.net>
24288
24289         Use raise module consistently.
24290         * modules/fatal-signal (Depends-on): Add raise.
24291         * modules/sigprocmask (Depends-on): Likewise.
24292         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24293         * lib/sigprocmask.c (sigprocmask): Likewise.
24294         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24295         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24296
24297         Fix compliance bug in sigpending.
24298         * lib/sigprocmask.c (sigpending): Return pending array via
24299         parameter, not return value.
24300
24301 2008-06-14  Eric Blake  <ebb9@byu.net>
24302
24303         Improve obstack-printf test code.
24304         * tests/test-obstack-printf.c (test_function): Fix comment, and
24305         simplify usage of obstack_* in macros.  Add a test for coverage.
24306         Reported by Bruno Haible.
24307
24308 2008-06-14  Bruno Haible  <bruno@clisp.org>
24309
24310         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24311         array size as a constant, not as a const variable.
24312         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24313         AC_USE_SYSTEM_EXTENSIONS.
24314         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24315         Test whether the obstack_printf function actually exists.
24316         * modules/obstack-printf (Depends-on): Add extensions.
24317         (Include): Remove obstack.h.
24318         * modules/obstack-printf-posix (Depends-on): Add extensions.
24319         (Include): Remove obstack.h.
24320
24321 2008-06-13  Eric Blake  <ebb9@byu.net>
24322
24323         Add obstack-printf and obstack-printf-posix modules.
24324         * modules/obstack-printf: New file.
24325         * modules/obstack-printf-posix: Likewise.
24326         * MODULES.html.sh (Misc): Mention them.
24327         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24328         Likewise.
24329         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24330         Likewise.
24331         * modules/stdio (Makefile.am): Accomodate new modules.
24332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24333         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24334         Declare.
24335         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24336         functions.
24337         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24338         (gl_REPLACE_OBSTACK_PRINTF): New macros
24339         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24340         * tests/test-obstack-printf.c: New file.
24341         * modules/obstack-printf-tests: Likewise.
24342         * modules/obstack-printf-posix-tests: Likewise.
24343
24344 2008-06-11  Bruno Haible  <bruno@clisp.org>
24345
24346         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24347         * lib/open.c: Include errno.h.
24348         (open): Fail when attempting to write to a file that has a trailing
24349         slash.
24350         * tests/test-open.c (main): Test against trailing slash bug.
24351         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24352
24353 2008-06-10  Bruno Haible  <bruno@clisp.org>
24354
24355         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24356         for $? to work inside the trap command, with various /bin/sh-s.
24357         * tests/test-vc-list-files-cvs.sh: Likewise.
24358
24359 2008-06-10  Bruno Haible  <bruno@clisp.org>
24360
24361         * lib/acl-internal.h: Don't include gettext.h here.
24362         * lib/set-mode-acl.c: Include gettext.h here.
24363         * lib/copy-acl.c: Likewise.
24364
24365 2008-06-10  Bruno Haible  <bruno@clisp.org>
24366
24367         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24368         * lib/wait-process.c (wait_subprocess): Likewise.
24369         * lib/execute.h (execute): Add termsigp argument.
24370         * lib/execute.c (execute): Likewise.
24371         * lib/csharpcomp.c (compile_csharp_using_pnet,
24372         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24373         * lib/csharpexec.c (execute_csharp_using_pnet,
24374         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24375         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24376         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24377         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24378         is_jikes_present): Update.
24379         * lib/javaexec.c (execute_java_class): Update.
24380         * lib/javaversion.c (execute_and_read_line): Update.
24381         * NEWS: Document the changes.
24382         Reported by Eric Blake.
24383
24384 2008-06-10  Eric Blake  <ebb9@byu.net>
24385
24386         Add missing include.
24387         * tests/test-strstr.c (includes): Add <signal.h>.
24388         * tests/test-strcasestr.c (includes): Likewise.
24389         * tests/test-memmem.c (includes): Likewise.
24390
24391 2008-06-10  Bruno Haible  <bruno@clisp.org>
24392
24393         * lib/wait-process.c (wait_subprocess): Add an assertion.
24394
24395 2008-06-10  Bruno Haible  <bruno@clisp.org>
24396
24397         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24398
24399 2008-06-10  Bruno Haible  <bruno@clisp.org>
24400
24401         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24402         using alarm().
24403         * tests/test-strcasestr.c (main): Likewise.
24404         * tests/test-strstr.c (main): Likewise.
24405
24406 2008-06-09  Bruno Haible  <bruno@clisp.org>
24407
24408         Work around the Solaris 10 ACE ACLs ABI change.
24409         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24410         declare if ACL_NO_TRIVIAL is present.
24411         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24412         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24413         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24414         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24415         define if ACL_NO_TRIVIAL is present.
24416         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24417         and use the current ABI.
24418         (file_has_acl): Use same #if condition as elsewhere.
24419         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24420         in use, and use the current ABI.
24421         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24422         Reported by Jim Meyering.
24423
24424 2008-06-09  Eric Blake  <ebb9@byu.net>
24425
24426         Work around environments that (stupidly) ignore SIGALRM.
24427         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24428         before using alarm().
24429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24431         Reported by Ian Beckwith <ianb@erislabs.net>.
24432
24433         Produce autobuild blurb earlier in log.
24434         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24435
24436 2008-06-09  Jim Meyering  <meyering@redhat.com>
24437         and OndÅ™ej Vašík  <ovasik@redhat.com>
24438
24439         utimens.c: correct kernel bug work-around
24440         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24441         failure, not success, and the kernel bug we're trying to work
24442         around affects not just the utimensat call, but also the fallback
24443         futimens call.
24444         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24445         not success.
24446         [HAVE_FUTIMENS]: Use the same work-around, here.
24447
24448 2008-06-09  Jim Meyering  <meyering@redhat.com>
24449
24450         add more guards around definition of ACE_-related code
24451         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24452         ALLOW and ACE_OWNER are also defined.
24453
24454 2008-06-08  Bruno Haible  <bruno@clisp.org>
24455
24456         * lib/acl-internal.h: Add me as co-author.
24457         * lib/file-has-acl.c: Likewise.
24458         * lib/set-mode-acl.c: Likewise.
24459         * lib/copy-acl.c: Likewise.
24460
24461 2008-06-08  Bruno Haible  <bruno@clisp.org>
24462
24463         Add support for AIX ACLs.
24464         * lib/acl-internal.h (acl_nontrivial): New declaration.
24465         * lib/file-has-acl.c (acl_nontrivial): New function.
24466         (file_has_acl): Add implementation using AIX 4 ACL API.
24467         * lib/set-mode-acl.c (qset_acl): Likewise.
24468         * lib/copy-acl.c (qcopy_acl): Likewise.
24469
24470 2008-06-08  Bruno Haible  <bruno@clisp.org>
24471
24472         Add support for HP-UX ACLs.
24473         * lib/acl-internal.h (acl_nontrivial): New declaration.
24474         * lib/file-has-acl.c (acl_nontrivial): New function.
24475         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24476         * lib/set-mode-acl.c (qset_acl): Likewise.
24477         * lib/copy-acl.c (qcopy_acl): Likewise.
24478
24479 2008-06-08  Bruno Haible  <bruno@clisp.org>
24480
24481         Add support for Cygwin ACLs.
24482         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24483         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24484         the chmod_or_fchmod call.
24485         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24486
24487 2008-06-08  Bruno Haible  <bruno@clisp.org>
24488
24489         Fix bug with setuid modes in Solaris 10+ code.
24490         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24491         succeeded, when the mode contains some special bits.
24492
24493 2008-06-08  Bruno Haible  <bruno@clisp.org>
24494
24495         Add support for Solaris 7..10 ACLs.
24496         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24497         declarations.
24498         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24499         functions.
24500         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24501         * lib/set-mode-acl.c (qset_acl): Likewise.
24502         * lib/copy-acl.c (qcopy_acl): Likewise.
24503
24504 2008-06-08  Bruno Haible  <bruno@clisp.org>
24505
24506         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24507         declaration.
24508         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24509         (acl_access_nontrivial): Remove MacOS X case.
24510         (file_has_acl): Use acl_extended_nontrivial.
24511         * lib/copy-acl.c (qcopy_acl): Likewise.
24512
24513 2008-06-08  Bruno Haible  <bruno@clisp.org>
24514
24515         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24516
24517 2008-06-08  Jim Meyering  <meyering@redhat.com>
24518
24519         * modules/acl (Maintainer): Add Bruno Haible.
24520
24521 2008-06-07  Bruno Haible  <bruno@clisp.org>
24522
24523         Improve support for Tru64 ACLs.
24524         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24525         ACL on OSF/1.
24526
24527 2008-06-07  Bruno Haible  <bruno@clisp.org>
24528
24529         Add support for MacOS X ACLs.
24530         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24531         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24532         * lib/set-mode-acl.c (qset_acl): Likewise.
24533         * lib/copy-acl.c (qcopy_acl): Likewise.
24534
24535 2008-06-07  Bruno Haible  <bruno@clisp.org>
24536
24537         Fix memory leak introduced on 2008-05-22.
24538         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24539         use.
24540
24541 2008-06-07  Bruno Haible  <bruno@clisp.org>
24542
24543         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24544         to construct an empty ACL.
24545
24546 2008-06-07  Bruno Haible  <bruno@clisp.org>
24547
24548         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24549         precisely.
24550         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24551
24552 2008-06-07  Bruno Haible  <bruno@clisp.org>
24553
24554         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24555         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24556
24557 2008-06-07  Bruno Haible  <bruno@clisp.org>
24558
24559         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24560         regardless of POSIX.
24561         * doc/posix-functions/_longjmp.texi: Likewise.
24562         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24563         SystemV platform in this case.
24564
24565 2008-06-06  Eric Blake  <ebb9@byu.net>
24566
24567         Document abort() bugs.
24568         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24569
24570         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24571         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24572         sigsetjmp.
24573         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24574         siglongjmp, but only as a macro.
24575         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24576         is obsolete.
24577         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24578
24579         Tweak documentation to cover cygwin argz bugs.
24580         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24581         argz bug fix; no code change needed since no cygwin releases
24582         occurred between the last fix and the bug being tested.
24583         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24584         module and recently fixed cygwin bugs.
24585         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24586         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24587         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24588         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24589         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24590         Likewise.
24591         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24592         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24593         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24594         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24595         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24596         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24597         Likewise.
24598
24599         Avoid gcc warning on cygwin.
24600         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24601         !ACL_NO_TRIVIAL]: Avoid unused variable.
24602
24603 2008-06-05  Eric Blake  <ebb9@byu.net>
24604
24605         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24606         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24607         git-version-gen fails to come up with a version.
24608         Reported by Simon Josefsson.
24609
24610 2008-06-05  Jim Meyering  <meyering@redhat.com>
24611             Paul Eggert  <eggert@cs.ucla.edu>
24612
24613         utimens.c: work around a probable Linux kernel bug
24614         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24615         appears to be a kernel bug that causes utimensat to return 280
24616         instead of 0, indicating success.
24617
24618 2008-06-04  Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24621         2008-06-01 commit.
24622
24623 2008-06-04  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24626         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24627         (file_has_acl): Use it. Save errno afterwards.
24628         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24629
24630 2008-06-03  Bruno Haible  <bruno@clisp.org>
24631
24632         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24633         draft code. Simplify #ifs.
24634         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24635         Put Solaris code after POSIX-draft code. Fix comments regarding
24636         Solaris 10, HP-UX. Mention Cygwin.
24637         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24638
24639 2008-06-03  Eric Blake  <ebb9@byu.net>
24640
24641         Provide fallback for older kernels.
24642         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24643         Provide runtime fallback if kernel lacks support.
24644         Reported by Mike Frysinger.
24645
24646 2008-06-02  Bruno Haible  <bruno@clisp.org>
24647
24648         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24649         it exists.
24650
24651 2008-06-02  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24654         * lib/copy-acl.c (qcopy_acl): Update comment.
24655
24656 2008-06-02  Bruno Haible  <bruno@clisp.org>
24657
24658         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24659         like ACL APIs.
24660
24661 2008-06-02  Bruno Haible  <bruno@clisp.org>
24662
24663         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24664         * tests/test-set-mode-acl.sh: Likewise.
24665         * tests/test-copy-acl.sh: Likewise.
24666         * tests/test-copy-file.sh: Likewise.
24667
24668 2008-06-02  Bruno Haible  <bruno@clisp.org>
24669
24670         * tests/test-file-has-acl.sh: Remove unused code.
24671
24672 2008-06-01  Bruno Haible  <bruno@clisp.org>
24673
24674         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24675         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24676         messages.
24677         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24678
24679 2008-06-01  Bruno Haible  <bruno@clisp.org>
24680
24681         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24682         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24683         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24684         APIs.
24685         * modules/acl-tests (configure.ac): Remove tests now contained in
24686         m4/acl.m4.
24687
24688 2008-06-02  Jim Meyering  <meyering@redhat.com>
24689
24690         announce-gen: use a better key-server host name
24691         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24692         it may be more consistently reliable.  Suggested by Werner Koch
24693         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24694
24695 2008-06-01  Bruno Haible  <bruno@clisp.org>
24696
24697         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24698         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24699
24700 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24701
24702         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24703
24704 2008-06-01  Bruno Haible  <bruno@clisp.org>
24705
24706         New ACL tests.
24707         * tests/test-file-has-acl.sh: New file.
24708         * tests/test-file-has-acl.c: New file.
24709         * tests/test-set-mode-acl.sh: New file.
24710         * tests/test-set-mode-acl.c: New file.
24711         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24712         * tests/test-copy-acl.c: New file.
24713         * modules/acl-tests: New file, based on modules/copy-file-tests.
24714         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24715         (Depends-on): Add acl-tests.
24716         (configure.ac): Remove checks.
24717         (Makefile.am): Don't create test-sameacls program here any more.
24718
24719 2008-06-01  Bruno Haible  <bruno@clisp.org>
24720
24721         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24722         * tests/test-sameacls.c: Include progname.h.
24723         (main): Invoke set_program_name. Portability fixes for MacOS X,
24724         Solaris, HP-UX.
24725
24726 2008-06-01  Bruno Haible  <bruno@clisp.org>
24727
24728         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24729         function.
24730         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24731
24732 2008-06-01  Bruno Haible  <bruno@clisp.org>
24733
24734         * modules/rpmatch (Depends-on): Add strdup.
24735
24736 2008-06-01  Bruno Haible  <bruno@clisp.org>
24737
24738         * lib/pipe.c: Include unistd-safer.h.
24739         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24740         * modules/pipe (Depends-on): Add unistd-safer.
24741
24742 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24743
24744         * modules/autobuild (configure.ac): Call AB_INIT.
24745
24746 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24747
24748         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24749         Suggested by Bruno Haible <bruno@clisp.org>.
24750
24751 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24752
24753         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24754         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24755         <bruno@clisp.org>.
24756
24757 2008-05-29  Eric Blake  <ebb9@byu.net>
24758
24759         Prefer new POSIX 200x interfaces over futimesat.
24760         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24761         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24762         when available.
24763         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24764
24765 2008-05-28  Bruno Haible  <bruno@clisp.org>
24766
24767         * modules/stpcpy (License): Change to LGPLv2+.
24768         Requested by David Lutterkort <dlutter@redhat.com>.
24769
24770 2008-05-27  Bruno Haible  <bruno@clisp.org>
24771
24772         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24773         current mingw.
24774         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24775
24776 2008-05-27  Bruno Haible  <bruno@clisp.org>
24777
24778         * modules/iconv_open (Link): New section, from module 'iconv'.
24779         * modules/striconv (Link): Likewise.
24780         * modules/striconveh (Link): Likewise.
24781         * modules/xstriconv (Link): Likewise.
24782         * modules/unicodeio (Link): Likewise.
24783         * modules/propername (Link): Likewise.
24784         Reported by Jim Meyering.
24785
24786 2008-05-26  Jim Meyering  <meyering@redhat.com>
24787
24788         sha256: do not artificially restrict buffer length to be < 2^32
24789         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24790         uint32_t to size_t.
24791         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24792         to match.
24793
24794         avoid unaligned access errors, e.g., on sparc
24795         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24796         direct access through a possibly-unaligned uint64* pointer.
24797         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24798         direct access through a possibly-unaligned uint32* pointer.
24799         Prompted by this patch from Tom "spot" Callaway:
24800         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24801
24802         sha512.c: fix typo in comment
24803         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24804
24805 2008-05-25  Bruno Haible  <bruno@clisp.org>
24806
24807         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24808         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24809         (Makefile.am): Update lib_SOURCES.
24810
24811 2008-05-25  Bruno Haible  <bruno@clisp.org>
24812
24813         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24814
24815 2008-05-25  Jim Meyering  <meyering@redhat.com>
24816
24817         useless-if-before-free: freed expr may have white-space differences
24818         * build-aux/useless-if-before-free: Recognize cases in which the
24819         freed expression differs from the tested one in embedded white
24820         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24821         $1 was used, so we can't make any regexp shy.  Improved tests now
24822         detect this.
24823
24824         useless-if-before-free: accept white space in the expression.
24825         * build-aux/useless-if-before-free: For now, any white space
24826         in the expression must be identical in the free argument.
24827
24828         useless-if-before-free: efficiency tweak
24829         * build-aux/useless-if-before-free: Make the expression-matching
24830         regexp "shy".
24831         Make the *outer* regexp shy, not the expr-matching one.
24832
24833         update code-in-comment to accept cast of free arg
24834         * build-aux/useless-if-before-free: Update regexp.
24835
24836 2008-05-25  Bruno Haible  <bruno@clisp.org>
24837
24838         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24839         * modules/copy-file-tests (Files, Makefile.am): Update.
24840         * tests/test-copy-file.c (func_test_copy): Update.
24841
24842 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24843
24844         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24845
24846 2008-05-23  Bruno Haible  <bruno@clisp.org>
24847
24848         Improve support for ACLs on OSF/1.
24849         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24850         Remove fallback for unknown flavors of ACLs.
24851
24852 2008-05-22  Bruno Haible  <bruno@clisp.org>
24853
24854         Add support for ACLs on OSF/1.
24855         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24856         replacements.
24857         (acl_free_text): New macro fallback.
24858         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24859         acl_free.
24860         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24861         acl_free_text function. Require AC_C_INLINE.
24862
24863 2008-05-22  Bruno Haible  <bruno@clisp.org>
24864
24865         Make copy_acl work on MacOS X 10.5.
24866         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24867         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24868         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24869         If MODE_INSIDE_ACL, don't assume that every system has the same text
24870         representation for ACLs as FreeBSD.
24871         * lib/copy-acl.c (copy_acl): Add support for platforms with
24872         !MODE_INSIDE_ACL.
24873         * lib/file-has-acl.c (file_has_acl): Likewise.
24874         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24875         FreeBSD, MacOS X, or IRIX, respectively.
24876
24877 2008-05-22  Bruno Haible  <bruno@clisp.org>
24878
24879         * lib/acl.h: Don't include <sys/acl.h>.
24880         (GETACLCNT): Move fallback to lib/acl-internal.h.
24881         * lib/acl-internal.h: Include <sys/acl.h> here.
24882         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24883
24884 2008-05-22  Bruno Haible  <bruno@clisp.org>
24885
24886         Split off copy_acl function to separate file.
24887         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24888         * lib/acl.c (copy_acl): Moved function to separate file.
24889         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24890         * modules/acl (Files): Add lib/copy-acl.c.
24891         (Makefiles.am): Augment lib_SOURCES.
24892
24893 2008-05-22  Bruno Haible  <bruno@clisp.org>
24894
24895         * modules/copy-file-tests: New file.
24896         * tests/test-copy-file.sh: New file.
24897         * tests/test-copy-file.c: New file.
24898         * tests/test-copy-file-sameacls.c: New file.
24899
24900 2008-05-22  Eric Blake  <ebb9@byu.net>
24901
24902         Avoid gcc warning.
24903         * tests/test-memcmp.c (main): Pass NULL indirectly.
24904
24905 2008-05-21  Bruno Haible  <bruno@clisp.org>
24906
24907         Add reference doc about ACLs.
24908         * doc/acl-resources.txt: New file.
24909         * doc/acl-cygwin.txt: New file.
24910
24911 2008-05-21  Bruno Haible  <bruno@clisp.org>
24912
24913         Avoid one more warning from gcc.
24914         * lib/vasnprintf.c (IF_LINT): Update comments.
24915         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24916
24917 2008-05-21  Jim Meyering  <meyering@redhat.com>
24918
24919         avoid a warning from gcc
24920         * lib/vasnprintf.c (IF_LINT): Define.
24921         (scale10_round_decimal_long_double):
24922         Use it to avoid a "may be used uninitialized" warning.
24923         (scale10_round_decimal_double): Likewise.
24924
24925 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24926
24927         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24928         declared.
24929
24930 2008-05-20  Bruno Haible  <bruno@clisp.org>
24931
24932         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24933         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24934
24935 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24936
24937         * modules/memcmp-tests: New file.
24938         * tests/test-memcmp.c: New file.
24939
24940 2008-05-19  Bruno Haible  <bruno@clisp.org>
24941
24942         * modules/propername (Notice, configure.ac): Put quoted "..." into
24943         --keyword option.
24944         * lib/propername.h: Update comments accordingly.
24945         Reported by Eric Blake.
24946
24947 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24948
24949         * modules/getpass-gnu (Depends-on): Add fseeko.
24950
24951 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24952
24953         * modules/base64-tests: New file.
24954
24955 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24956
24957         * lib/base64.c (base64_decode_ctx): If a decode context structure
24958         was passed in use it to ignore newlines.  If a context structure
24959         was _not_ passed in, continue to treat newlines as garbage (this
24960         is the historical behavior).  Formerly base64_decode.
24961         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24962         takes a decode context structure.
24963         * lib/base64.h (base64_decode): Macro for four-argument calls.
24964         (base64_decode_alloc): Likewise.
24965         * lib/base64.c (base64_decode_ctx): If a decode context structure
24966         was passed in use it to ignore newlines.  If a context structure
24967         was _not_ passed in, continue to treat newlines as garbage (this
24968         is the historical behavior).  Formerly base64_decode.
24969         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24970         takes a decode context structure.
24971         * lib/base64.h (base64_decode): Macro for four-argument calls.
24972         (base64_decode_alloc): Likewise.
24973
24974 2008-05-19  Jim Meyering  <meyering@redhat.com>
24975
24976         avoid a warning from gcc
24977         * lib/trim.c (IF_LINT): Define.
24978         (trim2): Use it to avoid a "may be used uninitialized" warning.
24979
24980         Fix doc typo.
24981         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24982
24983 2008-05-19  Bruno Haible  <bruno@clisp.org>
24984
24985         * doc/glibc-functions/getpass.texi: Document limits of other
24986         implementations.
24987
24988 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24989             Bruno Haible <bruno@clisp.org>
24990
24991         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24992
24993 2008-05-18  Bruno Haible  <bruno@clisp.org>
24994
24995         * modules/propername: New file, from GNU gettext.
24996         * lib/propername.h: New file, from GNU gettext.
24997         * lib/propername.c: New file, from GNU gettext.
24998         * MODULES.html.sh (Internationalization functions): Add propername.
24999
25000 2008-05-16  Jim Meyering  <meyering@redhat.com>
25001             Bruno Haible  <bruno@clisp.org>
25002
25003         Avoid some warnings from "gcc -Wshadow".
25004         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25005
25006 2008-05-15  Eric Blake  <ebb9@byu.net>
25007
25008         Extend previous patch to cygwin 1.7.0.
25009         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25010         fast implementation in cygwin >= 1.7.0.
25011         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25013
25014 2008-05-15  Bruno Haible  <bruno@clisp.org>
25015
25016         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25017         implementation in glibc >= 2.9.
25018         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25020
25021 2008-05-15  Bruno Haible  <bruno@clisp.org>
25022
25023         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25024         (Unicode string functions): Add unilbrk/*.
25025         Reported by Karl Berry.
25026
25027 2008-05-15  Eric Blake  <ebb9@byu.net>
25028
25029         Fix violation of <stdbool.h> replacement in regex.
25030         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25031         * lib/regexec.c (re_search_internal): Likewise.
25032         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25033
25034 2008-05-15  Jim Meyering  <meyering@redhat.com>
25035
25036         avoid distracting test output when git or cvs is not found
25037         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25038         * tests/test-vc-list-files-git.sh: Likewise.
25039
25040 2008-05-15  Eric Blake  <ebb9@byu.net>
25041
25042         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25043         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25044         glibc version.
25045         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25046         * doc/posix-functions/strstr.texi (strstr): Likewise.
25047         * lib/str-two-way.h (MAX): Sychronize with glibc.
25048
25049 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25050
25051         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25052         opr.ctx_type.
25053         (calc_first): Initialize constraint field.
25054         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25055         Fix grammar.
25056         (duplicate_node): Merge constraint field for all node types.
25057         (calc_eclosure_iter): Look at constraint field for all node types.
25058         * lib/regex_internal.c (create_cd_newstate): Don't look at
25059         opr.ctx_type.
25060
25061 2008-05-14  Bruno Haible  <bruno@clisp.org>
25062
25063         Help GCC to do better code generation.
25064         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25065         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25066         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25067         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25068         Declare with attribute 'malloc' if supported.
25069
25070 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25071
25072         use "echo STR|wc -c" rather than unportable "expr length STR"
25073         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25074         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25075
25076 2008-05-14  Jim Meyering  <meyering@redhat.com>
25077
25078         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25079         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25080         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25081         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25082         via Collin Lasse.
25083
25084 2008-05-14  Eric Blake  <ebb9@byu.net>
25085
25086         Avoid quadratic growth in gl_LIBSOURCES.
25087         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25088         Suggested by Bruno Haible.
25089
25090         Test xmemdup0.
25091         * modules/xmemdup0-tests: New file.
25092         * tests/test-xmemdup0.c: Likewise.
25093
25094 2008-05-13  Eric Blake  <ebb9@byu.net>
25095
25096         Split xmemdup0 into its own module.
25097         * modules/xmemdup0: New file.
25098         * lib/xmemdup0.h: Likewise.
25099         * lib/xmemdup0.c: Likewise.
25100         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25101         * lib/xalloc.h (xmemdup0): Remove.
25102         * lib/xmalloc.c (xmemdup0): Likewise.
25103
25104 2008-05-13  Eric Blake  <ebb9@byu.net>
25105             Bruno Haible  <bruno@clisp.org>
25106
25107         Reduce number of forks required during autoconf.
25108         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25109         and gl_LIBSOURCES_DIR.
25110         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25111         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25112         m4_syscmd per file.
25113         <m4_foreach_w>: Move...
25114         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25115
25116 2008-05-13  Eric Blake  <ebb9@byu.net>
25117
25118         * gnulib-tool: Fix various comment typos.
25119
25120 2008-05-12  Bruno Haible  <bruno@clisp.org>
25121
25122         Tailor the linebreaking algorithm.
25123         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25124
25125 2008-05-12  Bruno Haible  <bruno@clisp.org>
25126
25127         Update to Unicode 5.0.0.
25128         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25129         LBP_JV, LBP_JT. Redistribute values.
25130         (unilbrk_table): Change size.
25131         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25132         Unicode TR#14 rev. 22.
25133         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25134         LBP_JV, LBP_JT. Redistribute values.
25135         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25136         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25137         Update.
25138         * lib/unilbrk/lbrkprop1.h: Regenerated.
25139         * lib/unilbrk/lbrkprop2.h: Regenerated.
25140         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25141         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25142         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25143         Likewise.
25144         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25145         Likewise.
25146         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25147         result.
25148         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25149         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25150         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25151         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25152         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25153         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25154
25155 2008-05-11  Bruno Haible  <bruno@clisp.org>
25156
25157         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25158
25159 2008-05-11  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25162         * modules/unilbrk/gen-lbrk: New file.
25163
25164 2008-05-11  Bruno Haible  <bruno@clisp.org>
25165
25166         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25167         * m4/sha512.m4 (gl_SHA512): Likewise.
25168
25169 2008-05-11  Jim Meyering  <meyering@redhat.com>
25170
25171         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25172         * modules/crypto/sha256: New file.
25173         * modules/crypto/sha512: Likewise.
25174         * lib/sha256.c: Likewise.
25175         * lib/sha256.h: Likewise.
25176         * lib/sha512.c: Likewise.
25177         * lib/sha512.h: Likewise.
25178         * lib/u64.h: Likewise.
25179         * m4/sha256.m4: Likewise.
25180         * m4/sha512.m4: Likewise.
25181         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25182
25183 2008-05-10  Bruno Haible  <bruno@clisp.org>
25184
25185         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25186         (Input/Output <stdio.h>): Add xprintf.
25187         (Signal handling <signal.h>): Add strsignal.
25188         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25189         (Core language properties): Add func.
25190         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25191         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25192         strings.
25193         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25194         (Input/output): New section.
25195         (File system functions): Add openat-die, stat-macros.
25196         (Networking functions): Add sockets.
25197         (Unicode string functions): Add unictype/*.
25198         (Support for building libraries and executables): Add gperf.
25199         (Support for building documentation): Add agpl-3.0.
25200         (Misc): Add nocrash.
25201
25202 2008-05-10  Bruno Haible  <bruno@clisp.org>
25203
25204         * modules/unictype/gen-ctype: New file.
25205
25206 2008-05-10  Jim Meyering  <meyering@redhat.com>
25207
25208         Make chdir-safer.c more efficient on a system with no symlinks.
25209         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25210         also if ELOOP is zero.  Suggested by Bruno Haible.
25211
25212         Make chdir-safer.c slightly safer.
25213         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25214         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25215
25216         Avoid compile failure on systems without ELOOP (like mingw).
25217         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25218         Reported by Bruno Haible.
25219
25220 2008-05-10  Bruno Haible  <bruno@clisp.org>
25221
25222         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25223         (is_utf8_encoding): Use a case-insensitive comparison.
25224         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25225         streq.
25226
25227 2008-05-10  Bruno Haible  <bruno@clisp.org>
25228
25229         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25230         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25231         * lib/unilbrk/ulc-common.h (iconv_string_length,
25232         iconv_string_keeping_offsets): Remove declarations.
25233         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25234         Don't include <iconv.h>, streq.h, xsize.h.
25235         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25236         conversion.
25237         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25238         <iconv.h>, streq.h, xsize.h.
25239         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25240         conversion.
25241         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25242         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25243         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25244         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25245
25246 2008-05-10  Bruno Haible  <bruno@clisp.org>
25247
25248         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25249         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25250
25251         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25252         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25253
25254         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25255         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25256
25257         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25258         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25259
25260         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25261         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25262
25263         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25264         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25265
25266         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25267         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25268
25269         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25270         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25271
25272 2008-05-10  Bruno Haible  <bruno@clisp.org>
25273
25274         Split up 'linebreak' module.
25275         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25276         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25277         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25278         modifications.
25279         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25280         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25281         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25282         lib/linebreak.c.
25283         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25284         lib/linebreak.c.
25285         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25286         lib/linebreak.c.
25287         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25288         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25289         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25290         lib/linebreak.c.
25291         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25292         lib/linebreak.c.
25293         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25294         lib/linebreak.c.
25295         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25296         lib/linebreak.c.
25297         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25298         lib/linebreak.c.
25299         * modules/unilbrk/base: New file.
25300         * modules/unilbrk/tables: New file.
25301         * modules/unilbrk/u8-possible-linebreaks: New file.
25302         * modules/unilbrk/u16-possible-linebreaks: New file.
25303         * modules/unilbrk/u32-possible-linebreaks: New file.
25304         * modules/unilbrk/ulc-common: New file.
25305         * modules/unilbrk/ulc-possible-linebreaks: New file.
25306         * modules/unilbrk/u8-width-linebreaks: New file.
25307         * modules/unilbrk/u16-width-linebreaks: New file.
25308         * modules/unilbrk/u32-width-linebreaks: New file.
25309         * modules/unilbrk/ulc-width-linebreaks: New file.
25310         * lib/linebreak.h: Remove file.
25311         * lib/linebreak.c: Remove file.
25312         * m4/linebreak.m4: Remove file.
25313         * modules/linebreak: Remove file.
25314         * NEWS: Mention the changes.
25315
25316 2008-05-09  Eric Blake  <ebb9@byu.net>
25317
25318         Add xmemdup0.
25319         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25320         implementation.
25321         * lib/xmalloc.c (xmemdup0): New C implementation.
25322
25323 2008-05-08  Bruno Haible  <bruno@clisp.org>
25324
25325         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25326
25327 2008-05-07  Eric Blake  <ebb9@byu.net>
25328
25329         Support cross-compilation of <wctype.h>.
25330         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25331         AC_CACHE_CHECK.
25332
25333 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25334
25335         * build-aux/vc-list-files: Add support for bzr.
25336
25337 2008-05-03  Jim Meyering  <meyering@redhat.com>
25338
25339         avoid failed assertion with tight malloc
25340         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25341
25342 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25343
25344         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25345         are needed from arpa/inet.h.
25346         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25347         Reported by Bruno Haible.
25348
25349 2008-05-02  Jim Meyering  <meyering@redhat.com>
25350
25351         avoid compilation error on FreeBSD 6
25352         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25353
25354 2008-05-01  Jim Meyering  <meyering@redhat.com>
25355
25356         useless-if-before-free: correct --help's exit status description
25357         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25358         for one or more matches, etc.  Reported by Bruno Haible.
25359
25360         vc-list-files: make the stand-alone gnulib test work
25361         * modules/vc-list-files-tests (configure.ac):
25362         Define and AC_SUBST abs_aux_dir.
25363         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25364         $(abs_top_srcdir) to each script and having each of them
25365         duplicate the work of setting PATH, set PATH here, using
25366         the new variable, abs_aux_dir instead.
25367         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25368         * tests/test-vc-list-files-git.sh: Likewise.
25369         Reported by Bruno Haible.
25370
25371 2008-05-01  Bruno Haible  <bruno@clisp.org>
25372
25373         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25374         reallocation. Rename 'done' to 'found_delimiter'.
25375
25376 2008-05-01  Jim Meyering  <meyering@redhat.com>
25377
25378         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25379         * build-aux/vc-list-files: Use `...`, not $(...).
25380
25381 2008-04-30  Jim Meyering  <meyering@redhat.com>
25382
25383         add tests for vc-list-files
25384         * modules/vc-list-files-tests: New module.
25385         * tests/test-vc-list-files-cvs.sh: New file.
25386         * tests/test-vc-list-files-git.sh: New file.
25387
25388         avoid a warning from gcc
25389         * lib/getndelim2.c (IF_LINT): Define.
25390         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25391
25392         vc-list-files: work properly with build-aux/cvsu, too
25393         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25394         to all cvs-based clauses.
25395
25396         vc-list-files: work properly in the CVS+awk case, too
25397         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25398
25399         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25400         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25401         take more than one file argument, so .  Add quotes, just in case $dir
25402         ever contains a shell meta-character.  Prompted by Soren Hansen in
25403         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25404
25405 2008-04-29  Eric Blake  <ebb9@byu.net>
25406
25407         Optimize getndelim2 to use block operations when possible.
25408         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25409         freadseek, and memchr2.
25410         * lib/getndelim2.c (getndelim2): Use them for block reads.
25411
25412 2008-04-29  Bruno Haible  <bruno@clisp.org>
25413
25414         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25415         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25416         * modules/inet_ntop (Depends-on): Add extensions.
25417         * modules/inet_pton (Depends-on): Likewise.
25418         Reported by Simon Josefsson.
25419
25420 2008-04-29  Jim Meyering  <meyering@redhat.com>
25421
25422         When the is more than one match in a block, match all of them.
25423         * build-aux/useless-if-before-free: Iterate through each block
25424         until there are no more matches.
25425
25426         Fix broken useless-if-before-free script.
25427         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25428         the expression to match cast of argument to free-like function.
25429
25430 2008-04-29  Eric Blake  <ebb9@byu.net>
25431
25432         Use new header.
25433         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25434
25435 2008-04-29  Jim Meyering  <meyering@redhat.com>
25436
25437         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25438         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25439         by gnulib to exist and to declare e.g., inet_ntop.
25440         Don't include "inet_ntop.h", now removed.
25441
25442         * m4/arpa_inet_h.m4: Remove trailing blanks.
25443
25444 2008-04-29  Eric Blake  <ebb9@byu.net>
25445
25446         Silence valgrind on safe reads beyond potential array bounds.
25447         * lib/rawmemchr.valgrind: New file.
25448         * lib/strchrnul.valgrind: Likewise.
25449         * modules/rawmemchr (Files): Distribute new file.
25450         * modules/strchrnul (Files): Likewise.
25451         Suggested by Bruno Haible.
25452
25453 2008-04-29  Bruno Haible  <bruno@clisp.org>
25454
25455         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25456         (inet_ntop, inet_pton): Change portability warning's wording.
25457         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25458         Invoke gl_CHECK_NEXT_HEADERS.
25459         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25460         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25461         set ARPA_INET_H.
25462         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25463         * modules/arpa_inet (Description): No longer only for systems that
25464         lack it.
25465         (Depends-on): Add include_next.
25466         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25467         HAVE_ARPA_INET_H.
25468
25469 2008-04-29  Jim Meyering  <meyering@redhat.com>
25470
25471         * modules/mkdir (License): Re-license as LGPLv2+.
25472
25473 2008-04-29  Bruno Haible  <bruno@clisp.org>
25474
25475         * modules/rawmemchr (Maintainer): Set to Eric.
25476         * modules/strchrnul (Maintainer): Likewise.
25477
25478 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25479
25480         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25481         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25482
25483         * modules/arpa_inet (arpa/inet.h): Use them.
25484
25485 2008-04-28  Eric Blake  <ebb9@byu.net>
25486
25487         Test getndelim2.
25488         * modules/getndelim2-tests: New file.
25489         * tests/test-getndelim2.c: Likewise.
25490         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25491         stream.
25492         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25493
25494         * MODULES.html.sh: Document new module.
25495
25496 2008-04-20  Bruno Haible  <bruno@clisp.org>
25497
25498         * lib/c-stack.c (die): Use raise.
25499         * modules/c-stack (Depends-on): Add raise.
25500
25501 2008-04-28  Bruno Haible  <bruno@clisp.org>
25502
25503         Expect rpmatch to be declared.
25504         * lib/yesno.c (rpmatch): Remove declaration.
25505
25506         Declare rpmatch.
25507         * lib/stdlib.in.h (rpmatch): New declaration.
25508         * lib/rpmatch.c: Include <stdlib.h> first.
25509         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25510         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25512         HAVE_RPMATCH.
25513         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25514         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25515         (Include): Set to <stdlib.h>.
25516         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25517         HAVE_RPMATCH.
25518         * NEWS: Document the change.
25519
25520 2008-04-28  Bruno Haible  <bruno@clisp.org>
25521
25522         Change rpmatch to use nl_langinfo when appropriate.
25523         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25524         (N_): New macro.
25525         (localized_pattern): New function/macro.
25526         (try): Remove match, nomatch arguments. Copy the pattern into safe
25527         memory before caching it.
25528         (rpmatch): Use localized_pattern. Add translator comments.
25529         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25530         Suggested by Eric Blake.
25531         * modules/rpmatch (Depends-on): Add stdbool.
25532
25533 2008-04-28  Eric Blake  <ebb9@byu.net>
25534
25535         Add rawmemchr module, matching glibc.
25536         * modules/string (Makefile.am): New indicator.
25537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25538         * lib/string.in.h (rawmemchr): Declare when appropriate.
25539         * modules/rawmemchr: New file.
25540         * m4/rawmemchr.m4: Likewise.
25541         * lib/rawmemchr.c: Likewise.
25542         * modules/rawmemchr-tests: Likewise.
25543         * tests/test-rawmemchr.c: Likewise.
25544         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25545         module.
25546         * modules/strchrnul (Depends-on): Add rawmemchr.
25547         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25548
25549         Whitespace cleanup.
25550         * tests/test-strchrnul.c: Reindent.
25551         * lib/strchrnul.c: Likewise.
25552
25553         Optimize and test strchrnul.
25554         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25555         * modules/strchrnul-tests: New file.
25556         * tests/test-strchrnul.c: Likewise.
25557
25558         Remove intprops dependency.
25559         * modules/memchr (Depends-on): Remove intprops.
25560         * modules/memrchr (Depends-on): Likewise.
25561         * modules/memchr2 (Depends-on): Likewise.
25562         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25563         * lib/memrchr.c (__memrchr): Likewise.
25564         * lib/memrchr2.c (memchr2): Likewise.
25565         Reported by Simon Josefsson.
25566
25567 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25568
25569         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25570         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25571
25572 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25573
25574         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25575
25576         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25577
25578         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25579
25580         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25581         declarations.
25582         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25583
25584         * m4/inet_pton.m4: Don't check for header files.
25585
25586         * m4/inet_ntop.m4: Don't check for header files.
25587
25588 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25589
25590         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25591         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25592         trigger for cygwin).
25593         Reported by Bruno Haible  <bruno@clisp.org>.
25594
25595 2008-04-28  Bruno Haible  <bruno@clisp.org>
25596
25597         * doc/posix-functions/strdup.texi: Mention mingw problem.
25598
25599 2008-04-27  Bruno Haible  <bruno@clisp.org>
25600
25601         * modules/stat-time-tests (Depends-on): Add sleep.
25602         * tests/test-stat-time.c (force_unlink): New function.
25603         (cleanup): Use it.
25604         (test_mtime): Remove the ctime related tests.
25605         (test_ctime): New function, containing the ctime related tests.
25606         (main): Call test_ctime, except on native Windows platforms.
25607
25608 2008-04-27  Bruno Haible  <bruno@clisp.org>
25609
25610         * lib/rpmatch.c (rpmatch): Add some comments.
25611         Reported by James Youngman <jay@gnu.org>.
25612
25613 2008-04-27  Bruno Haible  <bruno@clisp.org>
25614
25615         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25616         quiet NaNs.
25617
25618 2008-04-27  Bruno Haible  <bruno@clisp.org>
25619
25620         Make test-yesno.sh work on mingw.
25621         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25622         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25623         (main): Set stdin to binary mode.
25624         * modules/yesno-tests (Depends-on): Add binary-io.
25625
25626 2008-04-27  Bruno Haible  <bruno@clisp.org>
25627
25628         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25629         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25630         argument that lie outside the IEEE 854 domain.
25631         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25632         (gl_ISFINITE): Use it.
25633         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25634
25635 2008-04-27  Bruno Haible  <bruno@clisp.org>
25636
25637         Allow local renaming in config.h.
25638         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25639
25640 2008-04-27  Bruno Haible  <bruno@clisp.org>
25641
25642         * lib/memchr.c (__memchr): Change type of 'i'.
25643         * lib/memchr2.c (memchr2): Likewise.
25644
25645 2008-04-26  Eric Blake  <ebb9@byu.net>
25646         and Bruno Haible  <bruno@clisp.org>
25647
25648         Optimize and test memrchr.
25649         * modules/memrchr (Depends-on): Add intprops.
25650         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25651         * modules/memrchr-tests: New file.
25652         * tests/test-memrchr.c: New file.
25653
25654 2008-04-26  Bruno Haible  <bruno@clisp.org>
25655
25656         Add tentative support for DragonFly BSD.
25657         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25658         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25659         fp.
25660         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25661         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25662         * lib/fpurge.c (fpurge): Likewise.
25663         * lib/freadable.c (freaadable): Likewise.
25664         * lib/freadahead.c (freadahead): Likewise.
25665         * lib/freading.c (freading): Likewise.
25666         * lib/freadptr.c (freadptr): Likewise.
25667         * lib/freadseek.c (freadptrinc): Likewise.
25668         * lib/fseeko.c (fseeko): Likewise.
25669         * lib/fseterr.c (fseterr): Likewise.
25670         * lib/fwritable.c (fwritable): Likewise.
25671         * lib/fwriting.c (fwriting): Likewise.
25672
25673 2008-04-26  Bruno Haible  <bruno@clisp.org>
25674
25675         * lib/stdio-impl.h: New file.
25676         * lib/fbufmode.c: Include stdio-impl.h.
25677         (fbufmode): Use fp_, remove redundant #defines.
25678         * lib/fflush.c: Include stdio-impl.h.
25679         (clear_ungetc_buffer): Remove redundant #defines.
25680         * lib/fpurge.c: Include stdio-impl.h.
25681         (fpurge): Remove redundant #defines.
25682         * lib/freadable.c: Include stdio-impl.h.
25683         (freadable): Remove redundant #defines.
25684         * lib/freadahead.c: Include stdio-impl.h.
25685         (freadahead): Remove redundant #defines.
25686         * lib/freading.c: Include stdio-impl.h.
25687         (freading): Remove redundant #defines.
25688         * lib/freadptr.c: Include stdio-impl.h.
25689         (freadptr): Remove redundant #defines.
25690         * lib/freadseek.c: Include stdio-impl.h.
25691         (freadptrinc): Remove redundant #defines.
25692         * lib/fseeko.c: Include stdio-impl.h.
25693         (rpl_fseeko): Remove redundant #defines.
25694         * lib/fseterr.c: Include stdio-impl.h.
25695         (fseterr): Remove redundant #defines.
25696         * lib/fwritable.c: Include stdio-impl.h.
25697         (fwritable: Remove redundant #defines.
25698         * lib/fwriting.c: Include stdio-impl.h.
25699         (fwriting): Remove redundant #defines.
25700         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25701         * modules/fflush (Files): Likewise.
25702         * modules/fpurge (Files): Likewise.
25703         * modules/freadable (Files): Likewise.
25704         * modules/freadahead (Files): Likewise.
25705         * modules/freading (Files): Likewise.
25706         * modules/freadptr (Files): Likewise.
25707         * modules/freadseek (Files): Likewise.
25708         * modules/fseeko (Files): Likewise.
25709         * modules/fseterr (Files): Likewise.
25710         * modules/fwritable (Files): Likewise.
25711         * modules/fwriting (Files): Likewise.
25712
25713 2008-04-26  Bruno Haible  <bruno@clisp.org>
25714
25715         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25716         restore_seek_optimization, update_fpos_cache): New functions, extracted
25717         from rpl_fflush.
25718         (rpl_fflush): Use them.
25719         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25720         (gl_REPLACE_FFLUSH): Use it.
25721
25722 2008-04-26  Bruno Haible  <bruno@clisp.org>
25723
25724         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25725         on Solaris.
25726         * tests/test-xstrtoimax.sh: Likewise.
25727         * tests/test-xstrtoumax.sh: Likewise.
25728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25729
25730 2008-04-26  Bruno Haible  <bruno@clisp.org>
25731
25732         * modules/memchr-tests: New file.
25733         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25734
25735 2008-04-26  Eric Blake  <ebb9@byu.net>
25736             Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/memchr.c: Include intprops.h.
25739         (__memchr): Optimize parallel detection of matching bytes. Rename local
25740         variables. Add explanatory comments.
25741
25742 2008-04-26  Bruno Haible  <bruno@clisp.org>
25743
25744         Fix module 'memchr', broken since 2000-10-28.
25745         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25746
25747 2008-04-26  Bruno Haible  <bruno@clisp.org>
25748
25749         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25750         comments.
25751
25752 2008-04-25  Eric Blake  <ebb9@byu.net>
25753
25754         Use native fstatat on cygwin 1.7.0.
25755         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25756         first.
25757
25758 2008-04-23  Eric Blake  <ebb9@byu.net>
25759
25760         Improve memchr2 performance.
25761         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25762         NUL bytes.
25763         * modules/memchr2 (Depends-on): Use intprops.h.
25764
25765 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25766
25767         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25768         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25769         <blp@cs.stanford.edu>.
25770
25771 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25772
25773         * lib/arpa_inet.in.h: New file.
25774
25775         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25776         (Makefile.am): Sed in substitute header file.
25777
25778         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25779         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25780
25781         * modules/inet_ntop (configure.ac): Use
25782         gl_ARPA_INET_MODULE_INDICATOR.
25783
25784         * modules/inet_pton (configure.ac): Use
25785         gl_ARPA_INET_MODULE_INDICATOR.
25786
25787 2008-04-22  Jim Meyering  <meyering@redhat.com>
25788
25789         * modules/verify (License): Re-license as LGPLv2+.
25790
25791 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25792
25793         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25794         parameter to void* as per POSIX standard (MinGW uses char*).
25795
25796 2008-04-21  Bruno Haible  <bruno@clisp.org>
25797
25798         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25799         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25800         Define to replacements if REPLACE_ISWCNTRL is 1.
25801         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25802         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25803         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25804         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25805         what it fixes.
25806         * doc/posix-functions/iswalpha.texi: Likewise.
25807         * doc/posix-functions/iswblank.texi: Likewise.
25808         * doc/posix-functions/iswcntrl.texi: Likewise.
25809         * doc/posix-functions/iswdigit.texi: Likewise.
25810         * doc/posix-functions/iswgraph.texi: Likewise.
25811         * doc/posix-functions/iswlower.texi: Likewise.
25812         * doc/posix-functions/iswprint.texi: Likewise.
25813         * doc/posix-functions/iswpunct.texi: Likewise.
25814         * doc/posix-functions/iswspace.texi: Likewise.
25815         * doc/posix-functions/iswupper.texi: Likewise.
25816         * doc/posix-functions/iswxdigit.texi: Likewise.
25817         Reported by Alain Guibert.
25818
25819 2008-04-21  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25822         Patch by Alain Guibert.
25823
25824 2008-04-21  Bruno Haible  <bruno@clisp.org>
25825
25826         Fix test failures on mingw.
25827         * tests/test-xstrtol.c (print_no_progname): New function.
25828         (main): Install it in error_print_progname hook.
25829         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25830         * tests/test-xstrtoimax.sh: Likewise.
25831         * tests/test-xstrtoumax.sh: Likewise.
25832
25833 2008-04-21  Bruno Haible  <bruno@clisp.org>
25834
25835         Fix test failure on mingw.
25836         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25837
25838 2008-04-21  Bruno Haible  <bruno@clisp.org>
25839
25840         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25841         Actually assign a value.
25842
25843 2008-04-20  Bruno Haible  <bruno@clisp.org>
25844
25845         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25846         take 2.
25847         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25848         'canonicalize-lgpl' module is also used.
25849         * lib/canonicalize-lgpl.c: Undo last change.
25850         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25851
25852 2008-04-20  Bruno Haible  <bruno@clisp.org>
25853
25854         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25855         config.h. Provide _mkdir based fallback for mingw.
25856         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25857         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25858         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25859         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25860         rather than defining mkdir in config.h.
25861         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25862         (gl_SYS_STAT_H_DEFAULTS): New macro.
25863         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25864         HAVE_IO_H any more.
25865         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25866         HAVE_DECL_MKDIR and HAVE_IO_H.
25867
25868 2008-04-20  Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/isapipe.c: Port to native Windows platforms.
25871
25872 2008-04-20  Bruno Haible  <bruno@clisp.org>
25873
25874         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25875
25876 2008-04-21  Eric Blake  <ebb9@byu.net>
25877
25878         Work around preprocessors that don't handle UINTMAX_MAX.
25879         * lib/memchr2.c (memchr2): Avoid embedded #if.
25880         Reported by Alain Guibert, fix suggested by Bruno Haible.
25881
25882 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25883
25884         * doc/posix-functions/strftime.texi (strftime): Explain better
25885         Windows incompatibility.  Suggested by Micah Cowan
25886         <micah@cowan.name>.
25887
25888 2008-04-20  Bruno Haible  <bruno@clisp.org>
25889
25890         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25891         unistr/u8-mblen.
25892
25893 2008-04-20  Bruno Haible  <bruno@clisp.org>
25894
25895         Fix test failure on platforms with non-GNU iconv.
25896         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25897         (U_TO_U8): Use it, rather than u16_to_u8.
25898         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25899         units at the end of the input string.
25900         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25901
25902 2008-04-20  Bruno Haible  <bruno@clisp.org>
25903
25904         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25905         when the resulting length is 0.
25906         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25907
25908 2008-04-20  Bruno Haible  <bruno@clisp.org>
25909
25910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25911         works.
25912         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25913
25914 2008-04-20  Bruno Haible  <bruno@clisp.org>
25915
25916         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25917         * modules/tsearch-tests (configure.ac): Test for initstate function.
25918
25919 2008-04-20  Bruno Haible  <bruno@clisp.org>
25920
25921         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25922         for nlink_t if missing.
25923         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25924
25925 2008-04-19  Bruno Haible  <bruno@clisp.org>
25926
25927         Work around snprintf bug on Linux libc5.
25928         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25930         gl_SNPRINTF_SIZE1.
25931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25932         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25933         that test failed.
25934         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25935         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25936         * modules/snprintf (Files): Add m4/printf.m4.
25937         * modules/vsnprintf (Files): Likewise.
25938         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25939         * doc/posix-functions/vsnprintf.texi: Likewise.
25940
25941 2008-04-19  Bruno Haible  <bruno@clisp.org>
25942
25943         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25944         from 0.0058 to less than 10^-7.
25945
25946 2008-04-19  Bruno Haible  <bruno@clisp.org>
25947
25948         Fix rounding when a precision is given.
25949         * lib/vasnprintf.c (is_borderline): New function.
25950         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25951         9...9x.
25952         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25953         %e, %g.
25954         * tests/test-vasprintf-posix.c (test_function): Likewise.
25955         * tests/test-snprintf-posix.h (test_function): Likewise.
25956         * tests/test-sprintf-posix.h (test_function): Likewise.
25957         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25958         * tests/test-printf-posix.h (test_function): Likewise.
25959         * tests/test-printf-posix.output: Update.
25960         Reported by John Darrington <john@darrington.wattle.id.au> via
25961         Ben Pfaff <blp@cs.stanford.edu>.
25962
25963 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25964
25965         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25966         Suggested by Bruno Haible <bruno@clisp.org>.
25967
25968 2008-04-17  Bruno Haible  <bruno@clisp.org>
25969
25970         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25971         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25972         implementation.
25973         Patch by Bruce Merry <bmerry@gmail.com>.
25974
25975 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25976
25977         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25978         doesn't work under Windows.
25979
25980 2008-04-16  Bruno Haible  <bruno@clisp.org>
25981
25982         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25983         New macros.
25984         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25985         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25986         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25987         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25988         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25989         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25990         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25991         macros.
25992         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25993         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25994         Northern Sotho, Uighur.
25995
25996 2008-04-16  Bruno Haible  <bruno@clisp.org>
25997
25998         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25999         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26000         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26001         Reported by Daniel Bergström <daniel@octocode.com>.
26002
26003 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26004             Bruno Haible  <bruno@clisp.org>
26005
26006         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26007         function.
26008         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26009         New functions, mostly extracted from gl_locale_name_default.
26010         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26011
26012 2008-04-16  Eric Blake  <ebb9@byu.net>
26013
26014         Adjust strtod detection to catch glibc 2.7 bug.
26015         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26016         Reported by John Gatewood Ham.
26017
26018 2008-04-16  Bruno Haible  <bruno@clisp.org>
26019
26020         Add tentative support for Linux libc5.
26021         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26022         * lib/fpurge.c (fpurge): Likewise.
26023         * lib/freadable.c (freadable): Likewise.
26024         * lib/freadahead.c (freadahead): Likewise.
26025         * lib/freading.c (freading): Likewise.
26026         * lib/freadptr.c (freadptr): Likewise.
26027         * lib/freadseek.c (freadptrinc): Likewise.
26028         * lib/fseeko.c (rpl_fseeko): Likewise.
26029         * lib/fseterr.c (fseterr): Likewise.
26030         * lib/fwritable.c (fwritable): Likewise.
26031         * lib/fwriting.c (fwriting): Likewise.
26032         Reported by Alain Guibert <alguibert+bts@free.fr>.
26033
26034 2008-04-15  Bruno Haible  <bruno@clisp.org>
26035
26036         * modules/mathl (configure.ac): Define module indicator.
26037
26038 2008-04-15  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/logl.c (logl): Remove unused variables.
26041
26042 2008-04-15  Bruno Haible  <bruno@clisp.org>
26043
26044         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26045         fails.
26046
26047 2008-04-15  Bruno Haible  <bruno@clisp.org>
26048
26049         * lib/trim.c (trim2): Fix argument of isspace() macro.
26050
26051 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26052
26053         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26054         to 0.
26055         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26056
26057 2008-04-14  Bruno Haible  <bruno@clisp.org>
26058
26059         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26060         AC_LANG_PROGRAM argument.
26061         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26062         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26064         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26065         * m4/math_h.m4 (gl_MATH_H): Likewise.
26066         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26068         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26069         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26070         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26071         * m4/regex.m4 (gl_REGEX): Likewise.
26072         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26073         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26075         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26076         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26077         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26078         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26079         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26080
26081 2008-04-14  Jim Meyering  <meyering@redhat.com>
26082
26083         test-strtod: fix typos: s/abs/fabs/
26084         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26085
26086 2008-04-13  Bruno Haible  <bruno@clisp.org>
26087
26088         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26089         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26090         module is also used and while not building the reloc-wrapper.
26091
26092 2008-04-13  Bruno Haible  <bruno@clisp.org>
26093
26094         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26095
26096 2008-04-13  Bruno Haible  <bruno@clisp.org>
26097
26098         Fix AIX compilation failure introduced on 2008-04-02.
26099         * tests/test-frexp.c (exp): Undefine before redefining.
26100         * tests/test-frexpl.c (exp): Likewise.
26101
26102 2008-04-13  Bruno Haible  <bruno@clisp.org>
26103
26104         Work around a HP-UX stdio bug.
26105         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26106         * tests/test-ftello.c (main): Likewise.
26107         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26108         * doc/posix-functions/ftello.texi: Likewise.
26109
26110 2008-04-13  Bruno Haible  <bruno@clisp.org>
26111
26112         Make test-signbit pass on HP-UX/hppa.
26113         * tests/test-signbit.c (minus_zerol): New variable.
26114         (test_signbitl): Use it.
26115
26116 2008-04-13  Bruno Haible  <bruno@clisp.org>
26117
26118         Make truncl work on OSF/1 4.0.
26119         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26120         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26121         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26123         HAVE_DECL_TRUNCL.
26124         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26125         HAVE_DECL_TRUNCL.
26126         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26127
26128 2008-04-13  Bruno Haible  <bruno@clisp.org>
26129
26130         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26131
26132 2008-04-13  Bruno Haible  <bruno@clisp.org>
26133
26134         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26135         expression, so as to avoid HP-UX 11 cc compiler bug.
26136
26137 2008-04-13  Bruno Haible  <bruno@clisp.org>
26138
26139         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26140
26141 2008-04-13  Bruno Haible  <bruno@clisp.org>
26142
26143         * lib/git-merge-changelog.c: Remove empty declaration outside of
26144         functions.
26145
26146 2008-04-13  Bruno Haible  <bruno@clisp.org>
26147
26148         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26149
26150 2008-04-13  Bruno Haible  <bruno@clisp.org>
26151
26152         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26153         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26155         also if it exists but lacks definitions of the SHUT_* macros.
26156         * modules/sys_socket (Description): Update.
26157         Reported by Elbert Pol <e.pol@chello.nl>.
26158
26159 2008-04-13  Bruno Haible  <bruno@clisp.org>
26160
26161         * lib/localcharset.c (OS2): Don't redefine if already defined.
26162         Reported by Elbert Pol <e.pol@chello.nl>.
26163
26164 2008-04-13  Bruno Haible  <bruno@clisp.org>
26165
26166         * lib/binary-io.h [__EMX__]: Include <io.h>.
26167         Reported by Elbert Pol <e.pol@chello.nl>.
26168
26169 2008-04-12  Bruno Haible  <bruno@clisp.org>
26170
26171         * lib/fpucw.h: Enable the definitions also for x86_64.
26172         Needed for NetBSD/x86_64.
26173         Reported by Thomas Klausner <tk@giga.or.at>.
26174
26175 2008-04-12  Bruno Haible  <bruno@clisp.org>
26176
26177         * tests/test-strtod.c: Include isnand.h.
26178         (main): Use isnand instead of isnan.
26179         Reported by Jim Meyering.
26180
26181 2008-04-12  Bruno Haible  <bruno@clisp.org>
26182
26183         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26184         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26185
26186 2008-04-12  Jim Meyering  <meyering@redhat.com>
26187
26188         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26189
26190 2008-04-12  Bruno Haible  <bruno@clisp.org>
26191
26192         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26193         Reported by Elbert Pol <e.pol@chello.nl>.
26194
26195 2008-04-12  Eric Blake  <ebb9@byu.net>
26196
26197         Work around Solaris 10 math.h bug.
26198         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26199         (gl_MATH_H_DEFAULTS): Set up default.
26200         * modules/math (Makefile.am): Replace new indicators.
26201         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26202         * tests/test-math.c (main): Test this.
26203         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26204         * doc/posix-headers/math.texi (math.h): Mention bug.
26205         Reported by Nelson H. F. Beebe and Jim Meyering.
26206
26207 2008-04-11  Bruno Haible  <bruno@clisp.org>
26208
26209         Adapt to future versions of Apple GCC.
26210         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26211         Reported by Peter O'Gorman <peter@pogma.com>.
26212
26213 2008-04-11  Bruno Haible  <bruno@clisp.org>
26214
26215         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26216
26217 2008-04-11  Bruno Haible  <bruno@clisp.org>
26218
26219         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26220
26221         * modules/getaddrinfo-tests (Makefile.am): Define
26222         test_getaddrinfo_LDADD.
26223
26224 2008-04-11  Bruno Haible  <bruno@clisp.org>
26225
26226         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26227         (init): Fix syntax error.
26228         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26229         is declared.
26230
26231 2008-04-11  Bruno Haible  <bruno@clisp.org>
26232
26233         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26234         * modules/glob (Depends-on): Add stdbool.
26235
26236 2008-04-11  Bruno Haible  <bruno@clisp.org>
26237
26238         * lib/trim.c: Include <string.h>.
26239
26240 2008-04-11  Eric Blake  <ebb9@byu.net>
26241
26242         Avoid compile failure on OS/2.
26243         * lib/regex_internal.h (internal_function): Disable optimization
26244         on OS/2 (__EMX__), where it caused compiler error.
26245         Reported by Elbert Pol.
26246
26247 2008-04-11  Bruno Haible  <bruno@clisp.org>
26248
26249         Flush the standard error stream before aborting. Needed on mingw.
26250         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26251         * tests/test-array_list.c (ASSERT): Likewise.
26252         * tests/test-array_oset.c (ASSERT): Likewise.
26253         * tests/test-avltree_list.c (ASSERT): Likewise.
26254         * tests/test-avltree_oset.c (ASSERT): Likewise.
26255         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26256         * tests/test-binary-io.c (ASSERT): Likewise.
26257         * tests/test-byteswap.c (ASSERT): Likewise.
26258         * tests/test-c-ctype.c (ASSERT): Likewise.
26259         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26260         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26261         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26262         * tests/test-c-strstr.c (ASSERT): Likewise.
26263         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26264         * tests/test-canonicalize.c (ASSERT): Likewise.
26265         * tests/test-carray_list.c (ASSERT): Likewise.
26266         * tests/test-ceilf1.c (ASSERT): Likewise.
26267         * tests/test-ceilf2.c (ASSERT): Likewise.
26268         * tests/test-ceill.c (ASSERT): Likewise.
26269         * tests/test-count-one-bits.c (ASSERT): Likewise.
26270         * tests/test-fbufmode.c (ASSERT): Likewise.
26271         * tests/test-fflush2.c (ASSERT): Likewise.
26272         * tests/test-floorf1.c (ASSERT): Likewise.
26273         * tests/test-floorf2.c (ASSERT): Likewise.
26274         * tests/test-floorl.c (ASSERT): Likewise.
26275         * tests/test-fopen.c (ASSERT): Likewise.
26276         * tests/test-fpending.c (ASSERT): Likewise.
26277         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26278         * tests/test-fpurge.c (ASSERT): Likewise.
26279         * tests/test-freadable.c (ASSERT): Likewise.
26280         * tests/test-freadahead.c (ASSERT): Likewise.
26281         * tests/test-freading.c (ASSERT): Likewise.
26282         * tests/test-freadptr.c (ASSERT): Likewise.
26283         * tests/test-freadptr2.c (ASSERT): Likewise.
26284         * tests/test-freadseek.c (ASSERT): Likewise.
26285         * tests/test-freopen.c (ASSERT): Likewise.
26286         * tests/test-frexp.c (ASSERT): Likewise.
26287         * tests/test-frexpl.c (ASSERT): Likewise.
26288         * tests/test-fseek.c (ASSERT): Likewise.
26289         * tests/test-fseeko.c (ASSERT): Likewise.
26290         * tests/test-fstrcmp.c (ASSERT): Likewise.
26291         * tests/test-ftell.c (ASSERT): Likewise.
26292         * tests/test-ftello.c (ASSERT): Likewise.
26293         * tests/test-func.c (ASSERT): Likewise.
26294         * tests/test-fwritable.c (ASSERT): Likewise.
26295         * tests/test-fwriting.c (ASSERT): Likewise.
26296         * tests/test-getdelim.c (ASSERT): Likewise.
26297         * tests/test-getline.c (ASSERT): Likewise.
26298         * tests/test-i-ring.c (ASSERT): Likewise.
26299         * tests/test-iconv-utf.c (ASSERT): Likewise.
26300         * tests/test-iconv.c (ASSERT): Likewise.
26301         * tests/test-isfinite.c (ASSERT): Likewise.
26302         * tests/test-isnand.c (ASSERT): Likewise.
26303         * tests/test-isnanf.c (ASSERT): Likewise.
26304         * tests/test-isnanl.h (ASSERT): Likewise.
26305         * tests/test-ldexpl.c (ASSERT): Likewise.
26306         * tests/test-linked_list.c (ASSERT): Likewise.
26307         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26308         * tests/test-localename.c (ASSERT): Likewise.
26309         * tests/test-lseek.c (ASSERT): Likewise.
26310         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26311         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26312         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26313         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26314         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26315         * tests/test-mbschr.c (ASSERT): Likewise.
26316         * tests/test-mbscspn.c (ASSERT): Likewise.
26317         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26318         * tests/test-mbspbrk.c (ASSERT): Likewise.
26319         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26320         * tests/test-mbsrchr.c (ASSERT): Likewise.
26321         * tests/test-mbsspn.c (ASSERT): Likewise.
26322         * tests/test-mbsstr1.c (ASSERT): Likewise.
26323         * tests/test-mbsstr2.c (ASSERT): Likewise.
26324         * tests/test-mbsstr3.c (ASSERT): Likewise.
26325         * tests/test-memchr2.c (ASSERT): Likewise.
26326         * tests/test-memmem.c (ASSERT): Likewise.
26327         * tests/test-open.c (ASSERT): Likewise.
26328         * tests/test-printf-frexp.c (ASSERT): Likewise.
26329         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26330         * tests/test-printf-posix.c (ASSERT): Likewise.
26331         * tests/test-quotearg.c (ASSERT): Likewise.
26332         * tests/test-rbtree_list.c (ASSERT): Likewise.
26333         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26334         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26335         * tests/test-round1.c (ASSERT): Likewise.
26336         * tests/test-roundf1.c (ASSERT): Likewise.
26337         * tests/test-roundl.c (ASSERT): Likewise.
26338         * tests/test-signbit.c (ASSERT): Likewise.
26339         * tests/test-sleep.c (ASSERT): Likewise.
26340         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26341         * tests/test-snprintf.c (ASSERT): Likewise.
26342         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26343         * tests/test-stat-time.c (ASSERT): Likewise.
26344         * tests/test-strcasestr.c (ASSERT): Likewise.
26345         * tests/test-strerror.c (ASSERT): Likewise.
26346         * tests/test-striconv.c (ASSERT): Likewise.
26347         * tests/test-striconveh.c (ASSERT): Likewise.
26348         * tests/test-striconveha.c (ASSERT): Likewise.
26349         * tests/test-strsignal.c (ASSERT): Likewise.
26350         * tests/test-strstr.c (ASSERT): Likewise.
26351         * tests/test-strtod.c (ASSERT): Likewise.
26352         * tests/test-trunc1.c (ASSERT): Likewise.
26353         * tests/test-trunc2.c (ASSERT): Likewise.
26354         * tests/test-truncf1.c (ASSERT): Likewise.
26355         * tests/test-truncf2.c (ASSERT): Likewise.
26356         * tests/test-truncl.c (ASSERT): Likewise.
26357         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26358         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26359         * tests/test-vasnprintf.c (ASSERT): Likewise.
26360         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26361         * tests/test-vasprintf.c (ASSERT): Likewise.
26362         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26363         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26364         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26365         * tests/test-vsnprintf.c (ASSERT): Likewise.
26366         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26367         * tests/test-wcwidth.c (ASSERT): Likewise.
26368         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26369         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26370         * tests/test-xvasprintf.c (ASSERT): Likewise.
26371         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26372         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26373         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26374         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26375         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26376         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26377         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26378         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26379         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26380         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26381         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26382         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26383         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26384         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26385         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26386         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26387         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26388         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26389         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26390         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26391         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26392         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26393         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26394         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26395         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26396         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26397         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26398         * tests/unictype/test-combining.c (ASSERT): Likewise.
26399         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26400         * tests/unictype/test-digit.c (ASSERT): Likewise.
26401         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26402         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26403         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26404         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26405         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26406         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26407         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26408         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26409         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26410         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26411         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26412         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26413         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26414         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26415         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26416         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26417         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26418         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26419         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26420         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26421         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26422         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26423         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26424         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26425         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26426         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26427         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26428         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26429         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26430         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26431         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26432         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26433         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26434         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26435         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26436         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26437         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26438         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26439         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26440         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26441         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26442         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26443         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26444         Reported by Eric Blake.
26445
26446 2008-04-11  Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/wchar.in.h: Tweak comment.
26449
26450 2008-04-11  Bruno Haible  <bruno@clisp.org>
26451
26452         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26453         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26454         gl_COMMON.
26455         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26456
26457 2008-04-11  Bruno Haible  <bruno@clisp.org>
26458
26459         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26460
26461 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26462
26463         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26464         of attempting to use non-existing /dev/*random.  Based on patch
26465         from Adam Strzelecki <ono@java.pl> in
26466         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26467
26468 2008-04-08  Bruno Haible  <bruno@clisp.org>
26469
26470         Add tentative support for emx+gcc.
26471         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26472         * lib/fpurge.c (fpurge): Likewise.
26473         * lib/freadable.c (freadable): Likewise.
26474         * lib/freadahead.c (freadahead): Likewise.
26475         * lib/freading.c (freading): Likewise.
26476         * lib/freadptr.c (freadptr): Likewise.
26477         * lib/freadseek.c (freadptrinc): Likewise.
26478         * lib/fseeko.c (rpl_fseeko): Likewise.
26479         * lib/fseterr.c (fseterr): Likewise.
26480         * lib/fwritable.c (fwritable): Likewise.
26481         * lib/fwriting.c (fwriting): Likewise.
26482         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26483
26484 2008-04-09  Eric Blake  <ebb9@byu.net>
26485
26486         Avoid some autoconf warnings.
26487         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26488         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26489         * m4/afs.m4 (gl_AFS): Likewise.
26490         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26491         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26493         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26494         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26495         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26496         (AC_CHECK_DECLS_ONCE): Likewise.
26497         Rename file...
26498         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26499         gnulib-tool requires autoconf 2.59 or better.
26500         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26501
26502 2008-04-08  Eric Blake  <ebb9@byu.net>
26503
26504         Use 'git describe --match' if present (added in git 1.5.5).
26505         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26506         if possible.
26507
26508 2008-04-08  Bruno Haible  <bruno@clisp.org>
26509
26510         Add tentative support for OpenServer.
26511         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26512         _ptr, _cnt.
26513         * lib/fpurge.c (fpurge): Likewise.
26514         * lib/freadable.c (freadable): Likewise.
26515         * lib/freadahead.c (freadahead): Likewise.
26516         * lib/freading.c (freading): Likewise.
26517         * lib/freadptr.c (freadptr): Likewise.
26518         * lib/freadseek.c (freadptrinc): Likewise.
26519         * lib/fseeko.c (rpl_fseeko): Likewise.
26520         * lib/fseterr.c (fseterr): Likewise.
26521         * lib/fwritable.c (fwritable): Likewise.
26522         * lib/fwriting.c (fwriting): Likewise.
26523         Reported by Roger Cornelius <rac@tenzing.org> and
26524         Brian K. White <brian@aljex.com>.
26525
26526 2008-04-06  Jim Meyering  <meyering@redhat.com>
26527
26528         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26529
26530 2008-04-06  Bruno Haible  <bruno@clisp.org>
26531
26532         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26533         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26534         * tests/test-printf-posix.sh: Likewise.
26535         * tests/test-vfprintf-posix.sh: Likewise.
26536         * tests/test-vprintf-posix.sh: Likewise.
26537         * tests/test-xprintf-posix.sh: Likewise.
26538
26539 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26540
26541         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26542         hide error from 'ls', needed on OS/2.
26543         Report by Elbert Pol <elbert.pol@gmail.com>.
26544
26545 2008-04-04  Eric Blake  <ebb9@byu.net>
26546
26547         Make test-fseeko.c failures meaningful.
26548         * tests/test-fseeko.c: Print line number on failure.
26549         * tests/test-fseek.c: Likewise.
26550         Reported by Nelson H. F. Beebe.
26551
26552         Improve strtod bug detection check.
26553         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26554         required for Solaris 10.
26555         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26556
26557 2008-04-04  Bruno Haible  <bruno@clisp.org>
26558
26559         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26560         by m4/setenv.m4.
26561
26562 2008-04-03  Eric Blake  <ebb9@byu.net>
26563
26564         Ensure sane .version contents.
26565         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26566         version string.
26567         * build-aux/git-version-gen: Improve documentation.
26568
26569         Make GNU make output nicer.
26570         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26571         MAKECMDGOALS to enforce message for all command line targets.  Set
26572         srcdir for use in maint.mk.
26573
26574         Another maintainer tweak.
26575         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26576         a target that regenerates version.
26577
26578 2008-04-03  Jim Meyering  <meyering@redhat.com>
26579
26580         vc-list-files: don't cause coreutils "make po-check" failure
26581         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26582
26583 2008-04-03  Eric Blake  <ebb9@byu.net>
26584
26585         Allow VPATH usage of vc-list-files.
26586         * build-aux/vc-list-files (scriptversion): Add timestamp.
26587         (options): Add --help, --version, -C.
26588         (CVS): Support installed cvsu.
26589
26590 2008-04-02  Bruno Haible  <bruno@clisp.org>
26591
26592         Avoid some "statement with no effect" warnings from gcc.
26593         * tests/test-wctype.c (main): Explicitly ignore unused values.
26594         Reported by Jim Meyering.
26595
26596 2008-04-02  Jim Meyering  <meyering@redhat.com>
26597
26598         Avoid some warnings from "gcc -Wshadow".
26599         * tests/test-frexp.c (exp): Define to a different identifier.
26600         * tests/test-frexpl.c (exp): Likewise.
26601
26602 2008-04-03  Jim Meyering  <meyering@redhat.com>
26603
26604         bootstrap: remove dangling *.[ch] symlinks from lib
26605         * build-aux/bootstrap [dangling symlink removal]: Move find's
26606         -depth option to precede all others, to avoid a warning.
26607         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26608
26609 2008-04-02  Bruno Haible  <bruno@clisp.org>
26610
26611         Avoid some warnings from "gcc -Wshadow".
26612         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26613         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26614         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26615         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26616         Reported by Jim Meyering.
26617
26618 2008-04-01  Bruno Haible  <bruno@clisp.org>
26619
26620         Fix test to work on IRIX 6.5 with cc.
26621         * tests/test-math.c (numeric_equal): New function.
26622         (main): Use it.
26623
26624 2008-04-01  Bruno Haible  <bruno@clisp.org>
26625
26626         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26627
26628 2008-04-01  Bruno Haible  <bruno@clisp.org>
26629
26630         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26631         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26632         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26633         (Depends-on): Remove math.
26634
26635         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26636         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26637         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26638         (Depends-on): Remove math.
26639
26640         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26641         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26642         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26643         (Depends-on): Remove math.
26644         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26645         (Depends-on): Remove math.
26646
26647         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26648         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26649         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26650         (Depends-on): Remove math.
26651         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26652         (Depends-on): Remove math.
26653
26654         * tests/test-round1.c: Include nan.h.
26655         (main): Use NaNd instead of NAN.
26656         * modules/round-tests (Files): Add tests/nan.h.
26657
26658         * tests/test-trunc1.c: Include nan.h.
26659         (main): Use NaNd instead of NAN.
26660         * modules/trunc-tests (Files): Add tests/nan.h.
26661
26662         * tests/test-roundf1.c: Include nan.h.
26663         (main): Use NaNf instead of NAN.
26664         * modules/roundf-tests (Files): Add tests/nan.h.
26665
26666         * tests/test-truncf1.c: Include nan.h.
26667         (main): Use NaNf instead of NAN.
26668         * modules/truncf-tests (Files): Add tests/nan.h.
26669
26670         * tests/test-ceilf1.c: Include nan.h.
26671         (main): Use NaNf instead of NAN.
26672         * modules/ceilf-tests (Files): Add tests/nan.h.
26673
26674         * tests/test-floorf1.c: Include nan.h.
26675         (main): Use NaNf instead of NAN.
26676         * modules/floorf-tests (Files): Add tests/nan.h.
26677
26678         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26679         (main): Use NaNf instead of NAN.
26680         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26681
26682         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26683         (main): Use NaNd instead of NAN.
26684         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26685
26686         * tests/test-frexp.c: Include nan.h.
26687         (main): Use NaNd instead of NAN.
26688         * modules/frexp-tests (Files): Add tests/nan.h.
26689
26690         * lib/isnan.c: Don't include <math.h>.
26691         (FUNC): Don't use NAN macro.
26692         * modules/isnand-nolibm (Depends-on): Remove math.
26693         * modules/isnanf-nolibm (Depends-on): Remove math.
26694         * modules/isnanl (Depends-on): Remove math.
26695         * modules/isnanl-nolibm (Depends-on): Remove math.
26696
26697         * tests/nan.h: New file.
26698
26699 2008-04-01  Eric Blake  <ebb9@byu.net>
26700
26701         Fix typos.
26702         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26703         values to be the right type.
26704
26705         For now, cater to gnulib strtod inaccuracies.
26706         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26707         fractional results.  While not as nice from a QoI perspective, it
26708         is a quicker patch than correctly implementing decimal to binary
26709         rounding.
26710
26711 2008-03-31  Eric Blake  <ebb9@byu.net>
26712
26713         Guarantee a definition of NAN.
26714         * lib/math.in.h (NAN): Define if missing.
26715         * tests/test-math.c (main): Test it.
26716         * doc/posix-headers/math.texi (math.h): Document this.
26717         * lib/isnan.c (rpl_isnand): Use it.
26718         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26719         * tests/test-floorf1.c (NaN): Likewise.
26720         * tests/test-frexp.c (NaN): Likewise.
26721         * tests/test-isnand.c (NaN): Likewise.
26722         * tests/test-isnanf.c (NaN): Likewise.
26723         * tests/test-round1.c (NaN): Likewise.
26724         * tests/test-roundf1.c (NaN): Likewise.
26725         * tests/test-snprintf-posix.h (NaN): Likewise.
26726         * tests/test-sprintf-posix.h (NaN): Likewise.
26727         * tests/test-trunc1.c (NaN): Likewise.
26728         * tests/test-truncf1.c (NaN): Likewise.
26729         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26730         * tests/test-vasprintf-posix.c (NaN): Likewise.
26731         * modules/isnand-nolibm (Depends-on): Add math.
26732         * modules/isnanf-nolibm (Depends-on): Likewise.
26733         * modules/isnanl (Depends-on): Likewise.
26734         * modules/isnanl-nolibm (Depends-on): Likewise.
26735         * modules/snprintf-posix-tests (Depends-on): Likewise.
26736         * modules/sprintf-posix-tests (Depends-on): Likewise.
26737         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26738         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26739         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26740         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26741
26742 2008-03-31  Bruno Haible  <bruno@clisp.org>
26743
26744         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26745         * doc/posix-functions/strtod.texi: Likewise.
26746
26747 2008-03-31  Bruno Haible  <bruno@clisp.org>
26748
26749         * tests/test-strtod.c (main): Don't use C99 syntax.
26750
26751 2008-03-31  Bruno Haible  <bruno@clisp.org>
26752
26753         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26754         Reported by Eric Blake.
26755
26756 2008-03-31  Jim Meyering  <meyering@redhat.com>
26757
26758         Don't compare actual signbit return values.
26759         * tests/test-strtod.c (main): Rather, compare only their
26760         zero/non-zero nature.
26761
26762 2008-03-31  Eric Blake  <ebb9@byu.net>
26763
26764         More strtod documentation.
26765         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26766         failures as distinct bugs.
26767
26768 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26769
26770         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26771         Problem reported by Erik Benada in
26772         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26773
26774 2008-03-30  Bruno Haible  <bruno@clisp.org>
26775
26776         * tests/test-strtod.c: Add comments about which assertion fails on which
26777         platform.
26778         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26779
26780 2008-03-30  Eric Blake  <ebb9@byu.net>
26781
26782         Test signbit behavior on zeros.
26783         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26784         (test_signbitd, test_signbitl): Likewise.
26785
26786         More strtod touchups.
26787         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26788         sign of negative underflow, for now.  Use .5, not .1.
26789         * doc/posix-functions/strtod.texi (strtod): Mention these
26790         limitations.
26791         Reported by Jim Meyering.
26792
26793 2008-03-30  Bruno Haible  <bruno@clisp.org>
26794
26795         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26796         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26797
26798 2008-03-30  Bruno Haible  <bruno@clisp.org>
26799
26800         Avoid failure when attempting to return empty iconv results on some
26801         platforms.
26802         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26803         allocation, don't report ENOMEM when the resulting string is empty.
26804
26805 2008-03-30  Bruno Haible  <bruno@clisp.org>
26806
26807         Fix buffer overrun.
26808         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26809         Don't consider the width for tmp_length. Check count against tmp_length
26810         before doing the padding. Ensure enough allocation during padding.
26811
26812 2008-03-30  Eric Blake  <ebb9@byu.net>
26813
26814         strtod touchups.
26815         * lib/strtod.c (strtod): Avoid compiler warnings.
26816         Reported by Jim Meyering.
26817
26818 2008-03-30  Bruno Haible  <bruno@clisp.org>
26819
26820         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26821         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26822         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26823         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26824         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26825         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26826         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26827         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26828
26829         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26830         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26831         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26832         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26833         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26834         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26835         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26836         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26837
26838         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26839         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26840         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26841         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26842         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26843         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26844         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26845         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26846
26847         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26848         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26849
26850         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26851         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26852
26853         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26854         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26855
26856         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26857         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26858         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26859
26860         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26862         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26863
26864         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26865         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26866         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26867
26868         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26870         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26871
26872         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26873         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26875         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26876         (Depends-on): Add EOVERFLOW.
26877         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26878         (Depends-on): Add EOVERFLOW.
26879         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26880         (Depends-on): Add EOVERFLOW.
26881         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26882         (Depends-on): Add EOVERFLOW.
26883         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26884         (Depends-on): Add EOVERFLOW.
26885         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26886         (Depends-on): Add EOVERFLOW.
26887         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26888         (Depends-on): Add EOVERFLOW.
26889         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26890         (Depends-on): Add EOVERFLOW.
26891
26892         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26894         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26895
26896         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26898         * modules/snprintf (Depends-on): Add EOVERFLOW.
26899
26900         * lib/poll.c (EOVERFLOW): Remove fallback.
26901         * modules/poll (Depends-on): Add EOVERFLOW.
26902
26903         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26904         * modules/getugroups (Depends-on): Add EOVERFLOW.
26905
26906         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26907         * modules/getdelim (Depends-on): Add EOVERFLOW.
26908
26909         * lib/ftell.c (EOVERFLOW): Remove fallback.
26910         * modules/ftell (Depends-on): Add EOVERFLOW.
26911
26912         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26913         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26914         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26915
26916         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26917
26918         * modules/EOVERFLOW-tests: New file.
26919         * tests/test-EOVERFLOW.c: New file.
26920
26921         * modules/EOVERFLOW: New file.
26922         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26923
26924 2008-03-30  Bruno Haible  <bruno@clisp.org>
26925
26926         Fix bug introduced on 2007-06-10.
26927         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26928         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26929
26930 2008-03-30  Bruno Haible  <bruno@clisp.org>
26931
26932         Improve freadseek's efficiency after ungetc.
26933         * lib/freadseek.c: Include freadahead.h.
26934         (freadptrinc): New function, extracted from freadseek.
26935         (freadseek): Use it in a loop. Use freadahead to determine the number
26936         of loop iterations.
26937         * modules/freadseek (Depends-on): Add freadahead.
26938         (configure.ac): Require AC_C_INLINE.
26939
26940 2008-03-30  Bruno Haible  <bruno@clisp.org>
26941
26942         * lib/freadseek.c (freadseek): Don't ignore the return value of
26943         freadptr.
26944
26945 2008-03-29  Eric Blake  <ebb9@byu.net>
26946
26947         Add hex float support.
26948         * modules/strtod (Depends-on): Add c-ctype.
26949         (Link): Mention POW_LIB.
26950         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26951         whitespace between 'e' and exponent.
26952         * tests/test-strtod.c (main): Enable hex float tests.
26953         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26954         now provides.
26955
26956         Document various strtod bugs, with some fixes.
26957         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26958         "-0x", "inf", "nan", and hex constants.
26959         * doc/posix-functions/atof.texi (atof): Likewise.
26960         * modules/stdlib (Makefile.am): Support strtod.
26961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26962         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26963         detect additional strtod bugs.
26964         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26965         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26966         bool where appropriate.  Parse 'inf' and 'nan'.
26967         * tests/test-strtod.c: New file.
26968         * modules/strtod (Depends-on): Add stdbool, stdlib.
26969         (configure.ac): Turn on module indicator.
26970         * modules/strtod-tests: New module.
26971
26972 2008-03-29  Eric Blake  <ebb9@byu.net>
26973
26974         Fix ftell on mingw.
26975         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26976         * modules/ftell-tests (Depends-on): Add binary-io.
26977         * modules/ftello-tests (Depends-on): Likewise.
26978         * tests/test-ftell.c (main): Enhance test to cover behavior after
26979         ungetc.  Enforce binary mode.
26980         * tests/test-ftello.c (main): Likewise.
26981
26982         Pass test-freadseek on cygwin.
26983         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26984         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26985         ungetc buffer.
26986
26987         * tests/test-fflush2.c (main): Fix typo.
26988
26989 2008-03-29  Bruno Haible  <bruno@clisp.org>
26990
26991         * tests/test-fflush2.c (main): Temporarily disable the contents of
26992         this test.
26993         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26994         Reported by Eric Blake.
26995
26996 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26997
26998         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26999         (GC_SHA224_DIGEST_SIZE): Add.
27000
27001         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27002         (gc_hash_digest_length): Likewise.
27003         (gc_hash_buffer): Likewise.
27004
27005 2008-03-25  Bruno Haible  <bruno@clisp.org>
27006
27007         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27008         detail which gettext release to use.
27009         Reported by Simon Josefsson.
27010
27011 2008-03-26  Jim Meyering  <meyering@redhat.com>
27012
27013         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27014         * modules/gnumakefile (clean-GNUmakefile): Also, use
27015         test ... && ... || : syntax rather than if-then ... fi.
27016
27017         gnumakefile: Don't double-quote-expand $(VPATH) value.
27018         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27019
27020 2008-03-24  Eric Blake  <ebb9@byu.net>
27021
27022         Alter GNUmakefile to install into top directory.
27023         * modules/maintainer-makefile: Split, and add dependency...
27024         * modules/gnumakefile: to this new module.
27025         * build-aux/GNUmakefile: Move...
27026         * top/GNUmakefile: ...here.
27027         * build-aux/maint.mk: Move...
27028         * top/maint.mk: ...here.
27029         * MODULES.html.sh (Support for maintaining...): Document new
27030         module.
27031
27032 2008-03-23  Bruno Haible  <bruno@clisp.org>
27033
27034         * gnulib-tool: New options --vc-files, --no-vc-files.
27035         (func_usage): Document them.
27036         (vc_files): New variable.
27037         (func_import): Consider vc_files.
27038         (func_create_testdir): Set vc_files to empty.
27039         Suggested by Jim Meyering and Karl Berry.
27040
27041 2008-03-23  Bruno Haible  <bruno@clisp.org>
27042
27043         Fix regex compilation error on HP-UX 11.
27044         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27045         * modules/regex (Files): Add m4/mbstate_t.m4.
27046         Reported by Ton Voon <ton.voon@altinity.com>.
27047
27048 2008-03-23  Bruno Haible  <bruno@clisp.org>
27049
27050         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27051
27052 2008-03-23  Eric Blake  <ebb9@byu.net>
27053             Bruno Haible  <bruno@clisp.org>
27054
27055         Install files from top/ in the destination directory.
27056         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27057         augmentation also for the files from top/.
27058         (func_import, func_create_testdir): Rewrite file names:
27059         top/filename -> filename.
27060
27061 2008-03-23  Bruno Haible  <bruno@clisp.org>
27062
27063         Tweak "gnulib --version" output.
27064         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27065
27066 2008-03-23  Bruno Haible  <bruno@clisp.org>
27067
27068         Tweak "gnulib --version" output.
27069         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27070         rather than contents of ChangeLog, when possible.
27071
27072 2008-03-21  Eric Blake  <ebb9@byu.net>
27073
27074         More --version tweaks.
27075         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27076         date of last ChangeLog entry.
27077
27078 2008-03-21  Jim Meyering  <meyering@redhat.com>
27079
27080         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27081
27082 2008-03-20  Eric Blake  <ebb9@byu.net>
27083
27084         VPATH fix.
27085         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27086
27087 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27088
27089         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27090         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27091
27092 2008-03-20  Eric Blake  <ebb9@byu.net>
27093
27094         Sync GNUmakefile with coreutils.
27095         * build-aux/GNUmakefile (have-Makefile): Rename...
27096         (_have-Makefile): ...to this, for namespace consideration.
27097         (GNUmakefile.cfg): Include, if present.
27098         (_autoreconf): Define a default.
27099         (_is-dist-target): New rule for rebuilds to pick up intra-release
27100         version.
27101         (maint-cfg.mk): Rename...
27102         (cfg.mk): ...to this.
27103
27104 2008-03-18  Jim Meyering  <meyering@redhat.com>
27105
27106         New script and module: mktempd
27107         * MODULES.html.sh (maint+release support): Add mktempd.
27108         * build-aux/mktempd: New file.
27109         * modules/mktempd: New file.
27110
27111 2008-03-15  Jim Meyering  <meyering@redhat.com>
27112
27113         Undo last change.
27114         * lib/sha1.c, lib/md5.c: 63 != ~63.
27115         Reported by Andreas Schwab.
27116
27117         sha1.c, md5.c: Hoist a redundant expression.
27118         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27119         "ctx->buflen" only once, before calling *_process_block.
27120         * lib/md5.c (md5_process_bytes): Likewise.
27121
27122 2008-03-14  Eric Blake  <ebb9@byu.net>
27123
27124         Bump copyright year in files generated by gnulib-tool.
27125         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27126         gnulib-tool, rather than hard-coding it.
27127
27128         Fix 'gnulib-tool --version' output to work with git.
27129         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27130         (startup): ...here.
27131         (func_version): Use it to invoke git-version-gen, rather than
27132         relying on CVS keyword expansion.  Modernize wording.
27133         (cvsdatestamp, last_checkin_date, version): Kill unused
27134         variables.
27135
27136 2008-03-12  Jim Meyering  <meyering@redhat.com>
27137
27138         Recognize optional cast of the argument to free.
27139         * build-aux/useless-if-before-free: Update regexps.
27140
27141         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27142
27143 2008-03-11  Bruno Haible  <bruno@clisp.org>
27144
27145         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27146         by a single package.
27147         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27148         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27149         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27150         Reported by Sam Steingold <sds@gnu.org>.
27151
27152 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27153
27154         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27155         repositories.
27156
27157 2008-03-11  Bruno Haible  <bruno@clisp.org>
27158
27159         Avoid conflicts between local macro definitions.
27160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27161         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27162
27163 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27164             Bruno Haible  <bruno@clisp.org>
27165
27166         Make va_copy work with some version of xlc on AIX 5.1.
27167         * lib/stdarg.in.h: New file.
27168         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27169         On AIX, use a <stdarg.h> file substitute.
27170         * modules/stdarg (Files): Add lib/stdarg.in.h.
27171         (Depends-on): Add include_next.
27172         (Makefile.am): Build a stdarg.h substitute if requested.
27173         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27174
27175 2008-03-10  Bruno Haible  <bruno@clisp.org>
27176
27177         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27179         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27180
27181 2008-03-10  Bruno Haible  <bruno@clisp.org>
27182
27183         * modules/stdlib (Depends-on): Add include_next, remove
27184         absolute-header.
27185
27186 2008-03-09  Bruno Haible  <bruno@clisp.org>
27187
27188         * lib/freadahead.h (freadahead): Document more precisely.
27189         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27190         the sum of both buffer sizes.
27191         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27192         * NEWS: Document the change.
27193
27194 2008-03-09  Bruno Haible  <bruno@clisp.org>
27195
27196         Extend freadptr to return also the buffer size.
27197         * lib/freadptr.h (freadptr): Add sizep argument.
27198         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27199         (freadptr): Add sizep argument. Determine buffer size like freadahead
27200         does.
27201         * tests/test-freadptr.c: Don't include freadahead.h.
27202         (main): Adapt for new calling convention of freadptr.
27203         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27204         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27205         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27206         tests/test-freadptr2.sh.
27207         (Depends): Remove freadahead.
27208         (TESTS): Add test-freadptr2.sh.
27209         (check_PROGRAMS): Add test-freadptr2.
27210
27211 2008-03-09  Bruno Haible  <bruno@clisp.org>
27212
27213         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27214         Report and solution by Simon Josefsson.
27215
27216 2008-03-06  Bruno Haible  <bruno@clisp.org>
27217
27218         Make fflush after ungetc work on BSD platforms.
27219         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27220         * tests/test-fflush2.c: New file.
27221         * tests/test-fflush2.sh: New file.
27222         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27223         tests/test-fflush2.c.
27224         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27225         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27226
27227 2008-03-06  Eric Blake  <ebb9@byu.net>
27228
27229         Likewise for ftello.
27230         * modules/ftello (Dependencies): Add extensions.
27231         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27232
27233 2008-03-06  Bruno Haible  <bruno@clisp.org>
27234
27235         * modules/fseeko (Dependencies): Add extensions.
27236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27237         Needed on glibc systems.
27238
27239 2008-03-06  Bruno Haible  <bruno@clisp.org>
27240
27241         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27242         email address.
27243         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27244
27245 2008-03-06  Bruno Haible  <bruno@clisp.org>
27246
27247         * users.txt: Add libgnupdf.
27248
27249 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27250
27251         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27252         (Header File Substitutes, Function Substitutes,
27253         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27254         (Build robot for gnulib): Fix typo.
27255
27256 2008-03-06  Bruno Haible  <bruno@clisp.org>
27257
27258         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27259         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27260
27261 2008-03-06  Bruno Haible  <bruno@clisp.org>
27262
27263         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27264         * doc/gnulib.texi: Include it.
27265
27266 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27267
27268         * modules/func (License): Change license to unlimited; there was
27269         no LGPL parts in the module anyway.
27270
27271 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27272
27273         * modules/__func__: Renamed to modules/func.
27274         * modules/__func__-tests: Renamed to modules/func-tests.
27275         * tests/test-__func__.c: Renamed to tests/test-func.c.
27276         * m4/__func__.m4: Renamed to m4/func.m4.
27277         * doc/gnulib.texi (__func__): Section renamed to func.
27278         Suggested by Eric Blake <ebb9@byu.net>.
27279
27280 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27281
27282         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27283         about __func__.  Make example self-contained.  Suggested by Eric
27284         Blake <ebb9@byu.net>.
27285
27286         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27287         Suggested by Eric Blake <ebb9@byu.net>.
27288
27289 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27290
27291         * modules/__func__: New file.
27292         * modules/__func__-tests: New file.
27293         * tests/test-__func__.c: New file.
27294         * m4/__func__.m4: New file.
27295         * doc/gnulib.texi (__func__): Document __func__ module.
27296
27297 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27298
27299         * modules/byteswap (License): Re-license as LGPLv2+.
27300
27301 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27302
27303         * doc/Makefile: Add pdf target.
27304
27305 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27306
27307         * modules/inline (License): Use 'unlimited', since there are only
27308         *.m4 files in this module.
27309
27310 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27311             Bruno Haible  <bruno@clisp.org>
27312
27313         Add support for HP C 7.1 on OpenVMS 8.3.
27314         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27315
27316 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27317
27318         Update VMS specifics.
27319         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27320
27321 2008-03-02  Jim Meyering  <meyering@redhat.com>
27322
27323         Remove the last dependency on the "free" module.
27324         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27325         Reported by Bob Proulx.
27326
27327         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27328
27329         Remove useless "if" tests before free.  Deprecate "free" module.
27330         * doc/posix-functions/free.texi: Mention that this
27331         module is no longer useful.
27332         * modules/free (Notice): Say this module is obsolete.
27333         * modules/readutmp (Depends-on): Remove free.
27334         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27335         * lib/putenv.c (putenv): Likewise.
27336         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27337         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27338         * tests/test-c-strcasestr.c (main): Likewise.
27339         * tests/test-c-strstr.c (main): Likewise.
27340         * tests/test-mbscasestr1.c (main): Likewise.
27341         * tests/test-mbscasestr2.c (main): Likewise.
27342         * tests/test-mbsstr1.c (main): Likewise.
27343         * tests/test-mbsstr2.c (main): Likewise.
27344         * tests/test-memmem.c (main): Likewise.
27345         * tests/test-strcasestr.c (main): Likewise.
27346         * tests/test-striconv.c (main): Likewise.
27347         * tests/test-striconveh.c (main): Likewise.
27348         * tests/test-striconveha.c (main): Likewise.
27349         * tests/test-strstr.c (main): Likewise.
27350
27351         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27352
27353         bootstrap: sync from coreutils again
27354         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27355
27356 2008-03-01  Jim Meyering  <meyering@redhat.com>
27357
27358         bootstrap: sync from coreutils
27359         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27360         also when the target doesn't exist.
27361
27362 2008-03-01  Eric Blake  <ebb9@byu.net>
27363
27364         Fix bugs in last patch.
27365         * lib/memchr2.c (memchr2): Fix typo.
27366         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27367         extension.
27368         Reported by Bruce Korb.
27369
27370         New module 'memchr2'.
27371         * modules/memchr2: New file.
27372         * modules/memchr2-tests: Likewise.
27373         * lib/memchr2.h: Likewise.
27374         * lib/memchr2.c: Likewise, based on memchr.c.
27375         * tests/test-memchr2.c: New test.
27376         * MODULES.html.sh (String handling): Add memchr2.
27377
27378 2008-02-29  Bruno Haible  <bruno@clisp.org>
27379
27380         * modules/freadseek-tests: New file.
27381         * tests/test-freadseek.sh: New file.
27382         * tests/test-freadseek.c: New file.
27383
27384         New module 'freadseek'.
27385         * modules/freadseek: New file.
27386         * lib/freadseek.h: New file.
27387         * lib/freadseek.c: New file.
27388         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27389
27390 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27391
27392         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27393         wydawca.
27394
27395         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27396         program_invocation_name and program_invocation_short_name are
27397         present.
27398
27399 2008-02-28  Bruno Haible  <bruno@clisp.org>
27400
27401         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27402         * tests/test-freadptr.sh: Also test non-seekable stdin.
27403
27404 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27405
27406         * build-aux/bootstrap (source_base, m4_base)
27407         (doc_base, tests_base): New variables.
27408         (gnulib_tool_options): Do not hardcode base directories, use
27409         the above variables instead.
27410
27411 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27412
27413         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27414
27415 2008-02-28  Bruno Haible  <bruno@clisp.org>
27416
27417         * modules/freadptr-tests: New file.
27418         * tests/test-freadptr.sh: New file.
27419         * tests/test-freadptr.c: New file.
27420
27421         New module 'freadptr'.
27422         * modules/freadptr: New file.
27423         * lib/freadptr.h: New file.
27424         * lib/freadptr.c: New file.
27425         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27426
27427 2008-02-26  Karl Berry  <karl@freefriends.org>
27428
27429         Sync from Libtool:
27430         * libltdl/argz.c (argz_add, argz_count): New functions.
27431         * libltdl/argz.in.h: Declare them.
27432         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27433
27434 2008-02-22  Bruno Haible  <bruno@clisp.org>
27435
27436         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27437         is a pointer type.  Needed for HP-UX 10.
27438         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27439         * doc/posix-functions/gmtime_r.texi: Likewise.
27440         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27441
27442 2008-02-24  Bruno Haible  <bruno@clisp.org>
27443
27444         * modules/environ-tests: New file.
27445         * tests/test-environ.c: New file.
27446
27447         New module 'environ'.
27448         * modules/environ: New file.
27449         * lib/unistd.in.h (environ): New declaration.
27450         * m4/environ.m4: New file.
27451         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27452         after use.
27453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27454         HAVE_DECL_ENVIRON.
27455         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27456         HAVE_DECL_ENVIRON.
27457         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27458         wrong claim that 'environ' is missing on some systems.
27459         * modules/execute (Depends-on): Add environ.
27460         * lib/execute.c (environ): Remove fallback declaration.
27461         * modules/pipe (Depends-on): Add environ.
27462         * lib/pipe.c (environ): Remove fallback declaration.
27463         * modules/setenv (Depends-on): Add environ.
27464         * lib/setenv.c (environ): Remove fallback declaration.
27465         * modules/unsetenv (Depends-on): Add environ.
27466         * lib/unsetenv.c (environ): Remove fallback declaration.
27467         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27468         m4/environ.m4.
27469         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27470         (gl_PREREQ_UNSETENV): Likewise.
27471
27472 2008-02-24  Bruno Haible  <bruno@clisp.org>
27473
27474         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27475
27476 2008-02-20  Bob Proulx  <bob@proulx.com>
27477
27478         Enable use of older two part flavor 'git describe'.
27479         * build-aux/git-version-gen: If using the older two part flavor of
27480         git version then recreate the third part now present in the
27481         newer three part flavor of git describe.
27482
27483 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27484
27485         * lib/fts.c (fts_build): Typo correction to comment.
27486
27487 2008-02-17  Bruno Haible  <bruno@clisp.org>
27488
27489         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27490         generating no-op conflicts.
27491
27492 2008-02-17  Bruno Haible  <bruno@clisp.org>
27493
27494         Speed up by 10%.
27495         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27496         result_entries, rather than an index-based loop.
27497
27498 2008-02-17  Bruno Haible  <bruno@clisp.org>
27499
27500         Speed up by 25%.
27501         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27502         'hashcode_cached'.
27503         (entry_create): New function.
27504         (entry_hashcode): Use the cached hashcode if possible.
27505         (read_changelog_file, try_split_merged_entry): Use entry_create.
27506
27507 2008-02-17  Bruno Haible  <bruno@clisp.org>
27508
27509         Speed up from O(n^2) to O(n) for long ChangeLog files.
27510         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27511         (read_changelog_file): Change implementation of entries_reversed list
27512         to rbtreehash.
27513         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27514
27515 2008-02-17  Bruno Haible  <bruno@clisp.org>
27516
27517         New option --split-merged-entry.
27518         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27519         (find_paragraph_end, try_split_merged_entry): New functions.
27520         (long_options): Add option --split-merged-entry.
27521         (usage): Document option --split-merged-entry.
27522         (main): Implement option --split-merged-entry.
27523         Reported by Eric Blake.
27524
27525 2008-02-17  Bruno Haible  <bruno@clisp.org>
27526
27527         * lib/git-merge-changelog.c: Include c-strstr.h.
27528         (main): Support the "git pull --rebase" situation.
27529         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27530         Reported by Eric Blake.
27531
27532 2008-02-16  Eric Blake  <ebb9@byu.net>
27533
27534         Avoid doubling \ in common case of "c-maybe" quoting style.
27535         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27536         eliding outer quotes.
27537         * lib/quotearg.h: Document this.
27538         * tests/test-quotearg.c (result_strings, inputs, results_g)
27539         (flag_results, locale_results): Test it by adding a new string to
27540         each test group.
27541         (compare_strings): Test new string.
27542
27543 2008-02-13  Eric Blake  <ebb9@byu.net>
27544
27545         Avoid trigraph quoting in default output.
27546         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27547         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27548         unless explicitly requested.
27549         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27550
27551 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27552
27553         Don't rely on signed integer overflowing to negative value.
27554         * lib/getugroups.c (getugroups): Include <limits.h>.
27555         Instead, compare against INT_MAX, and increment only if the test passes.
27556
27557 2008-02-13  Jim Meyering  <meyering@redhat.com>
27558         and Eric Blake  <ebb9@byu.net>
27559
27560         Avoid shadowing warning and compile errors on Linux.
27561         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27562         forwarding macros on Linux.
27563         (dcgettext): Define a stub, for Linux.
27564         (results_g, main): Avoid warnings.
27565
27566 2008-02-12  Eric Blake  <ebb9@byu.net>
27567
27568         Silence warning in last patch.
27569         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27570
27571         Quotearg part 4: add tests, fix c-maybe colon quoting.
27572         * lib/quotearg.h: Improve documentation.
27573         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27574         escapes when adding outer quotes.  When quoting trigraphs, use
27575         valid C notation.  When quoting NUL, omit extra characters if next
27576         character is not digit.  Alter prototype.
27577         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27578         callers.
27579         * modules/quotearg-tests: New module.
27580         * tests/test-quotearg.c: New test.
27581
27582 2008-02-07  Eric Blake  <ebb9@byu.net>
27583
27584         Quotearg part 3: add flag to control outer quote elision.
27585         * lib/quotearg.h (c_maybe_quoting_style): New style.
27586         (enum quoting_flags): Better documentation of flags.
27587         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27588         c-maybe style.
27589         (quotearg_buffer_restyled): Handle new flag to elide outer
27590         quotes.
27591
27592         Quotearg part 2: add flag that can control NUL elision.
27593         * lib/quotearg.h (set_quoting_flags): New prototype.
27594         * lib/quotearg.c (struct quoting_options): Add flag field.
27595         (set_quoting_flags): New function.
27596         (quotearg_buffer_restyled): Add flags parameter.
27597         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27598         (quotearg_n_options): Set the flag, since length cannot be
27599         returned.
27600         (quoting_options_from_style): Default flags correctly.
27601
27602         Quotearg part 1: more wrappers, restore quotearg_char state.
27603         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27604         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27605         (quotearg_colon_mem): New wrappers.
27606         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27607         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27608         functions.
27609         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27610         (quotearg_colon_mem): New functions.
27611
27612 2008-02-11  Bruno Haible  <bruno@clisp.org>
27613
27614         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27615         library in the current directory: it does not work with parallel make.
27616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27617
27618 2008-02-11  Bruno Haible  <bruno@clisp.org>
27619
27620         * .gitattributes: New file.
27621
27622 2008-02-11  Jim Meyering  <meyering@redhat.com>
27623
27624         useless-if-before-free: Fix reversed exit values.
27625         * build-aux/useless-if-before-free: Use correct values
27626         for EXIT_MATCH and EXIT_NO_MATCH.
27627
27628         * build-aux/useless-if-before-free: Close stdout carefully.
27629
27630 2008-02-10  Bruno Haible  <bruno@clisp.org>
27631
27632         New module 'git-merge-changelog'.
27633         * modules/git-merge-changelog: New file.
27634         * lib/git-merge-changelog.c: New file.
27635
27636 2008-02-10  Jim Meyering  <meyering@redhat.com>
27637
27638         useless-if-before-free: New option: --list (-l).
27639
27640         useless-if-before-free: Don't exit immediately upon open failure.
27641         * build-aux/useless-if-before-free: Exit 2 for errors.
27642         Upon failure to open a file, don't exit immediately.
27643         Rather, just warn and continue with any remaining files.
27644
27645 2008-02-10  Bruno Haible  <bruno@clisp.org>
27646
27647         New abstract list operation 'node_set_value'.
27648         * lib/gl_list.h (gl_list_node_set_value): New function.
27649         (struct gl_list_implementation): New field node_set_value.
27650         * lib/gl_list.c (gl_list_node_set_value): New function.
27651         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27652         (gl_array_list_implementation): Update.
27653         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27654         (gl_carray_list_implementation): Update.
27655         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27656         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27657         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27658         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27659         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27660         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27661         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27662         Update.
27663         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27664         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27665         (gl_sublist_list_implementation): Update.
27666
27667 2008-02-10  Bruno Haible  <bruno@clisp.org>
27668
27669         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27670         Needed when ELEMENT is #defined to 'some_type *'.
27671
27672 2008-02-10  Jim Meyering  <meyering@redhat.com>
27673
27674         New script and module: useless-if-before-free
27675         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27676         * build-aux/useless-if-before-free: New file.
27677         * modules/useless-if-before-free: New file.
27678
27679         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27680
27681         xstrtol_error: Fix typo.
27682         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27683         s/exit_failure/exit_status/.
27684
27685 2008-02-09  Jim Meyering  <meyering@redhat.com>
27686
27687         New script and module: gitlog-to-changelog
27688         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27689         * modules/gitlog-to-changelog: New file.
27690         * build-aux/gitlog-to-changelog: New file.
27691
27692 2008-02-08  Jim Meyering  <meyering@redhat.com>
27693
27694         Avoid two "parameter unused" warnings.
27695         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27696         Mark "st" as used.
27697
27698         Use "git COMMAND", not "git-COMMAND".
27699         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27700         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27701         * build-aux/git-version-gen: Use "git status", not "git-status".
27702
27703 2008-02-07  Bruno Haible  <bruno@clisp.org>
27704
27705         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27706         Avoids a crash on Windows Vista.
27707         Reported by Adam Strzelecki <ono@java.pl> via
27708         Simon Josefsson <simon@josefsson.org>.
27709
27710 2008-02-06  Bruno Haible  <bruno@clisp.org>
27711
27712         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27713         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27714         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27716         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27717         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27718         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27719         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27722         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27723         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27724         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27727         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27728         left-adjust flag.
27729         * tests/test-snprintf-posix.h (test_function): Likewise.
27730         * tests/test-sprintf-posix.h (test_function): Likewise.
27731         * tests/test-vasprintf-posix.c (test_function): Likewise.
27732         * doc/posix-functions/fprintf.texi: Update.
27733         * doc/posix-functions/printf.texi: Update.
27734         * doc/posix-functions/snprintf.texi: Update.
27735         * doc/posix-functions/sprintf.texi: Update.
27736         * doc/posix-functions/vfprintf.texi: Update.
27737         * doc/posix-functions/vprintf.texi: Update.
27738         * doc/posix-functions/vsnprintf.texi: Update.
27739         * doc/posix-functions/vsprintf.texi: Update.
27740         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27741
27742 2008-02-06  Bruno Haible  <bruno@clisp.org>
27743
27744         Fix bug introduced on 2008-01-26.
27745         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27746
27747 2008-02-06  Bruno Haible  <bruno@clisp.org>
27748
27749         Fix bug introduced on 2007-06-10.
27750         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27751         !NEED_PRINTF_FLAG_ZERO.
27752
27753 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27754
27755         getloadavg: use libperfstat on AIX5
27756         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27757
27758 2008-02-03  Bruno Haible  <bruno@clisp.org>
27759
27760         * lib/diffseq.h: Add comments about required #includes.
27761         Reported by Michael Biggs <gnulib@doubleplum.net>.
27762
27763 2008-02-01  Bruno Haible  <bruno@clisp.org>
27764
27765         * users.txt: Add gnuit.
27766
27767 2008-01-31  Bruno Haible  <bruno@clisp.org>
27768
27769         * lib/md4.c (set_uint32): Mark as inline.
27770         * lib/md5.c (set_uint32): Likewise.
27771         * lib/sha1.c (set_uint32): Likewise.
27772         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27773         * m4/md5.m4 (gl_MD5): Likewise.
27774         * m4/sha1.m4 (gl_SHA1): Likewise.
27775
27776 2008-01-31  Jim Meyering  <meyering@redhat.com>
27777
27778         Use "sizeof VAR", rather than a literal "4".
27779         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27780         * lib/md4.c (md4_read_ctx): Likewise.
27781         * lib/sha1.c (sha1_read_ctx): Likewise.
27782
27783 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27784
27785         * tests/test-sha1.c: New file, based on test-md5.c.
27786
27787         * modules/crypto/sha1-tests: New file.
27788
27789 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27790
27791         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27792
27793 2008-01-31  Jim Meyering  <meyering@redhat.com>
27794
27795         Prefer "sizeof v" over the equivalent "4".
27796         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27797         * lib/md5.c (set_uint32): Likewise.
27798         * lib/sha1.c (set_uint32): Likewise.
27799
27800 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27801
27802         * lib/sha1.c (set_uint32): Mark function as static.
27803
27804 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27805
27806         md2: clarify comments to say that alignment is not required.
27807         * lib/md2.h: Remove warning about alignment in comment.
27808         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27809         never been required.
27810
27811 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27812
27813         md4: adapt alignment constraint fix from sha1.
27814         * lib/md4.c (set_uint32): New function, from sha1.c
27815         (md4_read_ctx): Use it.
27816         (md4_finish_ctx): Doc fix.
27817         * lib/md4.h: Doc fix.
27818
27819 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27820
27821         md5: adapt alignment constraint fix from sha1.
27822         * lib/md5.c (set_uint32): New function, from sha1.c
27823         (md5_read_ctx): Use it.
27824         (md5_finish_ctx): Doc fix.
27825         * lib/md5.h: Doc fix.
27826
27827 2008-01-30  Peter Palfrader  <weasel@debian.org>
27828
27829         sha1: remove the result buffer alignment constraint
27830         * lib/sha1.c (set_uint32): New function.
27831         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27832         constraint.
27833         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27834         * lib/sha1.h: Likewise.
27835
27836 2008-01-30  Andreas Schwab  <schwab@suse.de>
27837             Bruno Haible  <bruno@clisp.org>
27838
27839         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27840         correct definition of LDBL_MIN_EXP.
27841
27842 2008-01-30  Karl Berry  <karl@gnu.org>
27843
27844         * config/srclist-update: try to preserve x bit on updates.
27845         * config/srclistvars.sh: update for karl.
27846
27847 2008-01-29  Jim Meyering  <meyering@redhat.com>
27848
27849         vasnprintf.c: Avoid warning about unused label
27850         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27851         "overflow" label definition and associated code with the
27852         same cpp condition that guards the sole use of that label.
27853
27854 2008-01-26  Bruno Haible  <bruno@clisp.org>
27855
27856         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27857         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27858         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27859         * lib/isnanl-nolibm.h (isnanl): Likewise.
27860         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27861
27862 2008-01-26  Bruno Haible  <bruno@clisp.org>
27863
27864         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27865         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27866
27867 2008-01-26  Bruno Haible  <bruno@clisp.org>
27868
27869         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27870         GCC >= 4.0 built-in.
27871         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27872
27873 2008-01-26  Bruno Haible  <bruno@clisp.org>
27874
27875         Rename isnan, applicable to 'double' only, to isnand.
27876         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27877         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27878         (configure.ac): Update.
27879         (Include): Replace "isnan.h" with "isnand.h".
27880         * m4/isnand.m4: Renamed from m4/isnan.m4.
27881         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27882         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27883         instead of isnan.c.
27884         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27885         instead of HAVE_ISNAN_IN_LIBC.
27886         (isnand): Renamed from isnan.
27887         * lib/isnand.c: New file.
27888         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27889         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27890         (Makefile.am): Update.
27891         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27892         Include isnand.h instead of isnan.h.
27893         (main): Test isnand instead of isnan.
27894         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27895         isnan-nolibm.
27896         * modules/frexp (Depends-on): Likewise.
27897         * modules/frexp-tests (Depends-on): Likewise.
27898         * modules/frexp-nolibm (Depends-on): Likewise.
27899         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27900         * modules/isfinite (Depends-on): Likewise.
27901         * modules/round-tests (Depends-on): Likewise.
27902         * modules/signbit (Depends-on): Likewise.
27903         * modules/signbit-tests (Depends-on): Likewise.
27904         * modules/snprintf-posix (Depends-on): Likewise.
27905         * modules/sprintf-posix (Depends-on): Likewise.
27906         * modules/trunc-tests (Depends-on): Likewise.
27907         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27908         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27910         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27911         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27912         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27913         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27914         * modules/vasnprintf-posix (Depends-on): Likewise.
27915         * modules/vasprintf-posix (Depends-on): Likewise.
27916         * modules/vfprintf-posix (Depends-on): Likewise.
27917         * modules/vsnprintf-posix (Depends-on): Likewise.
27918         * modules/vsprintf-posix (Depends-on): Likewise.
27919         * lib/frexp.c: Include isnand.h instead of isnan.h.
27920         (ISNAN): Set to isnand instead of isnan.
27921         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27922         (gl_isfinited): Use isnand instead of isnan.
27923         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27924         (gl_signbitd): Use isnand instead of isnan.
27925         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27926         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27927         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27928         (main): Use isnand instead of isnan.
27929         * tests/test-round1.c: Include isnand.h.
27930         (main): Use isnand instead of isnan.
27931         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27932         (ISNAN): Set to isnand instead of isnan.
27933         * tests/test-trunc1.c: Include isnand.h.
27934         (main): Use isnand instead of isnan.
27935         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27936         (equal): Use isnand instead of isnan.
27937         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27938         isnand-nolibm.
27939         * NEWS: Mention the change.
27940
27941 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27942             Bruno Haible  <bruno@clisp.org>
27943
27944         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27945         the GCC builtins for signbits are present and set
27946         REPLACE_SIGNBIT_USING_GCC if so.
27947         * lib/math.in.h (signbit): Define using GCC builtins if
27948         REPLACE_SIGNBIT_USING_GCC is set.
27949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27950         REPLACE_SIGNBIT_USING_GCC.
27951         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27952
27953 2008-01-25  Jim Meyering  <meyering@redhat.com>
27954
27955         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27956         * lib/poll.c: Include <config.h>, not "config.h".
27957         * tests/test-getaddrinfo.c: Likewise.
27958
27959 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27960
27961         * modules/sockets-tests: New file.
27962
27963 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27964
27965         * modules/sockets: New module, can be used to call WSA_Startup and
27966         WSA_Cleanup when needed.
27967
27968         * lib/sockets.h, lib/sockets.c: New files.
27969
27970         * m4/sockets.m4: New file.
27971
27972         * tests/test-sockets.c: New file.
27973
27974 2008-01-19  Bruno Haible  <bruno@clisp.org>
27975
27976         * doc/posix-headers: Renamed from doc/headers.
27977         * doc/posix-functions: Renamed from doc/functions.
27978         * doc/gnulib.texi: Update.
27979
27980 2008-01-19  Bruno Haible  <bruno@clisp.org>
27981
27982         * doc/glibc-functions/strcasestr.texi: Include contents of
27983         doc/functions/strcasestr.texi, fixing the list of platforms.
27984         * doc/functions/strcasestr.texi: Remove file.
27985
27986 2008-01-19  Bruno Haible  <bruno@clisp.org>
27987
27988         * doc/glibc-functions/memmem.texi: Include contents of
27989         doc/functions/memmem.texi.
27990         * doc/functions/memmem.texi: Remove file.
27991
27992 2008-01-18  Bruno Haible  <bruno@clisp.org>
27993
27994         * doc/glibc-functions/*.texi: New files.
27995         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27996         to use the new files.
27997
27998 2008-01-17  Bruno Haible  <bruno@clisp.org>
27999
28000         * tests/test-gethostname.c (main): Fix printf statement.
28001
28002 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28003
28004         * modules/gethostname-tests: New file.
28005
28006         * tests/test-gethostname.c: New file.
28007
28008 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28009
28010         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28011         used by the UNAME case.  Reported by Bruno Haible
28012         <bruno@clisp.org>.
28013
28014 2008-01-17  Eric Blake  <ebb9@byu.net>
28015
28016         Convert c-strcasestr to be more efficient.
28017         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28018         (Depends-on): Add c-strcase, remove malloca, strnlen.
28019         * tests/test-c-strcasestr.c (main): Enhance test.
28020         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28021
28022 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28023
28024         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28025         Use it in creating po/Makevars.
28026
28027 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28028
28029         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28030         Applications that requires it should initialize libgcrypt
28031         manually.
28032
28033 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28034
28035         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28036
28037 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28038
28039         Fix problem with getdate on mingw32 reported by Simon Josefsson
28040         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28041         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28042         tzname", when deciding whether to declare tzname.
28043         * lib/strftime.c (tzname): Likewise.
28044
28045 2008-01-15  Bruno Haible  <bruno@clisp.org>
28046
28047         Work around a MacOS X 10.5 bug in frexpl().
28048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28049         * doc/functions/frexpl.texi: Document the bug.
28050         Reported by Elias Pipping <pipping@gentoo.org>.
28051
28052 2008-01-14  Eric Blake  <ebb9@byu.net>
28053
28054         Touch up previous patch.
28055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28056         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28057
28058         Convert strcasestr module to use Two-Way algorithm.
28059         * modules/strcasestr-simple: New module, based on the old
28060         strcasestr, but with Two-Way rather than KMP.
28061         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28062         * lib/string.in.h (rpl_strcasestr): Declare.
28063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28064         performance.
28065         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28066         * modules/string (Makefile.am): Support strcasestr.
28067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28068         * modules/strcasestr-tests (Depends-on): Check for alarm.
28069         * tests/test-strcasestr.c: Augment test.
28070         * lib/str-two-way.h: Clean up stray macro.
28071         * NEWS: Document new module.
28072         * MODULES.html.sh (string handling): Likewise.
28073         * doc/functions/strcasestr.texi: New file.
28074         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28075         here, since it is not a POSIX function.
28076
28077 2008-01-14  Colin Watson  <cjwatson@debian.org>
28078             Bruno Haible  <bruno@clisp.org>
28079
28080         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28081         works fine; if not, set REPLACE_STRSIGNAL.
28082         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28084         REPLACE_STRSIGNAL.
28085         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28086         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28087         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28088
28089 2008-01-14  Bruno Haible  <bruno@clisp.org>
28090
28091         * modules/strsignal (Include): Change to <string.h>.
28092
28093 2008-01-14  Colin Watson  <cjwatson@debian.org>
28094
28095         * modules/argp (Notice): Add a notice recommending to change
28096         XGETTEXT_OPTIONS.
28097         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28098
28099 2008-01-13  Colin Watson  <cjwatson@debian.org>
28100
28101         * modules/strsignal-tests: New file.
28102         * tests/test-strsignal.c: New file.
28103
28104         * lib/strsignal.c: New file, from glibc with modifications.
28105         * lib/siglist.h: New file, from glibc with modifications.
28106         * lib/string.in.h (strsignal): New declaration.
28107         * m4/strsignal.m4: New file.
28108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28109         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28110         * modules/strsignal: New file.
28111         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28112         HAVE_DECL_STRSIGNAL.
28113
28114 2008-01-13  Bruno Haible  <bruno@clisp.org>
28115
28116         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28117         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28120
28121 2008-01-13  Bruno Haible  <bruno@clisp.org>
28122
28123         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28124         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28125         * lib/argp.h (__attribute__): Likewise.
28126         * lib/c-stack.c (__attribute__): Likewise.
28127         * lib/error.h (__attribute__): Likewise.
28128         * lib/fts.c (__attribute__): Likewise.
28129         * lib/openat.h (__attribute__): Likewise.
28130         * lib/stdio.in.h (__attribute__): Likewise.
28131         * lib/string.in.h (__attribute__): Likewise.
28132         * lib/utimens.c (__attribute__): Likewise.
28133         * lib/vasnprintf.h (__attribute__): Likewise.
28134         * lib/xalloc.h (__attribute__): Likewise.
28135         * lib/xprintf.h (__attribute__): Likewise.
28136         * lib/xstrtol.h (__attribute__): Likewise.
28137         * lib/xvasprintf.h (__attribute__): Likewise.
28138
28139 2008-01-12  Bruno Haible  <bruno@clisp.org>
28140
28141         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28142         * doc/glibc-headers/a.out.texi: New file.
28143         * doc/glibc-headers/aliases.texi: New file.
28144         * doc/glibc-headers/alloca.texi: New file.
28145         * doc/glibc-headers/ar.texi: New file.
28146         * doc/glibc-headers/argp.texi: New file.
28147         * doc/glibc-headers/argz.texi: New file.
28148         * doc/glibc-headers/byteswap.texi: New file.
28149         * doc/glibc-headers/crypt.texi: New file.
28150         * doc/glibc-headers/endian.texi: New file.
28151         * doc/glibc-headers/envz.texi: New file.
28152         * doc/glibc-headers/err.texi: New file.
28153         * doc/glibc-headers/error.texi: New file.
28154         * doc/glibc-headers/execinfo.texi: New file.
28155         * doc/glibc-headers/fpu_control.texi: New file.
28156         * doc/glibc-headers/fstab.texi: New file.
28157         * doc/glibc-headers/fts.texi: New file.
28158         * doc/glibc-headers/getopt.texi: New file.
28159         * doc/glibc-headers/ieee754.texi: New file.
28160         * doc/glibc-headers/ifaddrs.texi: New file.
28161         * doc/glibc-headers/libintl.texi: New file.
28162         * doc/glibc-headers/mcheck.texi: New file.
28163         * doc/glibc-headers/mntent.texi: New file.
28164         * doc/glibc-headers/obstack.texi: New file.
28165         * doc/glibc-headers/paths.texi: New file.
28166         * doc/glibc-headers/printf.texi: New file.
28167         * doc/glibc-headers/pty.texi: New file.
28168         * doc/glibc-headers/resolv.texi: New file.
28169         * doc/glibc-headers/shadow.texi: New file.
28170         * doc/glibc-headers/sysexits.texi: New file.
28171         * doc/glibc-headers/ttyent.texi: New file.
28172
28173 2008-01-12  Jim Meyering  <meyering@redhat.com>
28174
28175         announce-gen: emit Gnulib's git-based version string.
28176         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28177         New option --gnulib-version=V, where V is expected to be
28178         the output of running git describe in the gnulib directory.
28179         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28180         not useful, and plan to stop publishing an xdelta file with each
28181         coreutils release.
28182
28183         * build-aux/announce-gen: Also check for lzma-compressed files.
28184
28185 2008-01-11  Bruno Haible  <bruno@clisp.org>
28186
28187         * tests/test-memmem.c (main): Increase maximum allowed time.
28188         * tests/test-strstr.c (main): Likewise.
28189
28190 2008-01-11  Bruno Haible  <bruno@clisp.org>
28191
28192         * doc/functions/memmem.texi: Add more precisions about platforms.
28193         * doc/functions/strstr.texi: Likewise.
28194
28195 2008-01-10  Eric Blake  <ebb9@byu.net>
28196
28197         * m4/strstr.m4: Delete cruft from copy-n-paste.
28198         Reported by Bruno Haible.
28199
28200 2008-01-10  Bruno Haible  <bruno@clisp.org>
28201
28202         Make c-strstr rely on strstr.
28203         * lib/c-strstr.c: Don't include str-kmp.h.
28204         (c_strstr): Define in terms of strstr.
28205         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28206         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28207
28208 2008-01-10  Bruno Haible  <bruno@clisp.org>
28209
28210         * doc/gnulib.texi (String Functions in C Locale): New section.
28211         * doc/c-ctype.texi: New file.
28212         * doc/c-strcase.texi: New file.
28213         * doc/c-strcaseeq.texi: New file.
28214         * doc/c-strcasestr.texi: New file.
28215         * doc/c-strstr.texi: New file.
28216         * doc/c-strtod.texi: New file.
28217         * doc/c-strtold.texi: New file.
28218
28219 2008-01-10  Eric Blake  <ebb9@byu.net>
28220
28221         * lib/relocatable.h: Fix a comment.
28222
28223 2008-01-10  Eric Blake  <ebb9@byu.net>
28224
28225         Share two-way algorithm.
28226         * lib/str-two-way.h: New file, merged from...
28227         * lib/memmem.c: ...here...
28228         * lib/strstr.c: ...and here.
28229         * modules/memmem (Files): Use it.
28230         * modules/strstr (Files): Likewise.
28231
28232         Avoid quadratic strstr implementations.
28233         * lib/strstr.c: New file.
28234         * m4/strstr.m4: Likewise.
28235         * modules/strstr: Likewise.
28236         * modules/strstr-tests: Likewise.
28237         * tests/test-strstr.c: Likewise.
28238         * lib/string.in.h (rpl_strstr): Declare.
28239         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28241         * modules/string (Makefile.am): Likewise.
28242         * MODULES.html.sh (string handling): Mention new module.
28243         * doc/functions/strstr.texi (strstr): Document the bug.
28244
28245 2008-01-10  Bruno Haible  <bruno@clisp.org>
28246
28247         * lib/relocatable.h (relocate): State whether result is freshly
28248         allocated or not.
28249         * lib/relocatable.c (relocate): Return a freshly allocated string
28250         instead of a pointer to a privately held string.
28251         Reported by Sylvain Beucler <beuc@gnu.org>.
28252
28253 2008-01-10  Colin Watson  <cjwatson@debian.org>
28254
28255         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28256         s/S_ISNLK/S_ISLNK/.
28257
28258 2008-01-09  Bruno Haible  <bruno@clisp.org>
28259
28260         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28261         and other files.
28262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28263         if it's only a guess.
28264         * modules/memmem: Simplify by depending on memmem-simple.
28265
28266 2008-01-09  Bruno Haible  <bruno@clisp.org>
28267
28268         Work around OpenBSD 4.0 tdelete() bug.
28269         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28270         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28271         macros and don't redefine the enum values.
28272         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28273         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28274         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28275
28276 2008-01-09  Bruno Haible  <bruno@clisp.org>
28277
28278         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28279         (main): Don't perform the tests if setlocale did not install a UTF-8
28280         locale. Needed on OpenBSD 4.0.
28281         * modules/wcwidth-tests (Depends-on): Add localcharset.
28282
28283 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28284
28285         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28286         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28287         * NEWS: announce this.
28288         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28289
28290 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28291         and Eric Blake  <ebb9@byu.net>
28292
28293         Add memmem-simple module.
28294         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28295         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28296         * modules/memmem-simple: New file.
28297         * modules/memmem (Description): Tweak.
28298         * MODULES.html.sh (string handling): Mention new module.
28299         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28300         addressed by memmem-simple.
28301         * NEWS: Document the difference.
28302
28303 2008-01-09  Eric Blake  <ebb9@byu.net>
28304
28305         Give gcc some memmem optimization hints.
28306         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28307         (strcasestr): Declare as pure.
28308         * modules/memmem (Maintainer): Claim my implementation.
28309
28310 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28311
28312         Support AIX 6.1 and higher.
28313         * build-aux/config.libpath: Likewise.
28314         * build-aux/config.rpath: Likewise.
28315
28316 2008-01-08  Jim Meyering  <meyering@redhat.com>
28317             Bruno Haible  <bruno@clisp.org>
28318
28319         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28320         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28321         Reported by Peter Fales in
28322         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28323
28324 2008-01-08  Bruno Haible  <bruno@clisp.org>
28325
28326         * modules/unictype/category-of (Depends-on): Add
28327         unictype/category-none.
28328         * modules/unictype/category-and-tests (Depends-on): Add
28329         unictype/category-{L,N,Lu,Nd}.
28330         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28331         * modules/unictype/category-or-tests (Depends-on): Add
28332         unictype/category-{L,N}.
28333         * modules/unictype/category-name-tests (Depends-on): Add
28334         unictype/category-{Z,Nl}.
28335         Reported by Simon Josefsson.
28336
28337 2008-01-08  Bruno Haible  <bruno@clisp.org>
28338
28339         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28340         convention better.
28341         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28342         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28343         Reported by Peter Miller <millerp@canb.auug.org.au>.
28344
28345 2008-01-08  Eric Blake  <ebb9@byu.net>
28346
28347         Rewrite memmem to guarantee linear complexity without malloc.
28348         * lib/memmem.c (memmem): Use Two-Way rather than
28349         Knuth-Morris-Pratt, to allow O(1) space usage.
28350         (critical_factorization, two_way_short_needle)
28351         (two_way_long_needle): New functions.
28352         (knuth_morris_pratt): Delete.
28353         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28354         Add stdint.
28355         * tests/test-memmem.c (main): Add tests for periodic needle and
28356         sublinear performance.
28357         * doc/functions/memmem.texi (memmem): Document other deficiencies
28358         in cygwin and older glibc.
28359
28360 2008-01-08  Bruno Haible  <bruno@clisp.org>
28361
28362         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28363         augmentation.
28364
28365 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28366
28367         Add a configure time option: --disable-acl.
28368         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28369         AC_ARG_ENABLE(acl).
28370
28371 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28372
28373         * tests/test-localename.c: Don't include obsolete "setenv.h".
28374
28375         * modules/localename-tests (Depends-on): Need unsetenv.
28376
28377 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28378
28379         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28380
28381 2008-01-06  Colin Watson  <cjwatson@debian.org>
28382
28383         * users.txt: Add man-db.
28384
28385 2008-01-07  Bruno Haible  <bruno@clisp.org>
28386
28387         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28388         previous section name.
28389
28390 2008-01-07  Bruno Haible  <bruno@clisp.org>
28391
28392         * lib/progname.c (set_program_name): Don't strip off a leading
28393         "lt-" prefix outside a .libs directory.
28394         Suggested by Paul Eggert.
28395
28396 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28397             Bruno Haible  <bruno@clisp.org>
28398
28399         Improve memory cleanup in 'relocatable' module.
28400         * lib/relocatable.h (compute_curr_prefix): Change return type to
28401         'char *'.
28402         * lib/relocatable.c (compute_curr_prefix): Change return type to
28403         'char *'. Free curr_installdir after use.
28404         (relocate): Free curr_prefix_better after use.
28405         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28406
28407 2008-01-01  Bruno Haible  <bruno@clisp.org>
28408
28409         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28410         failure on older glibc systems.
28411         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28412
28413 2008-01-05  Eric Blake  <ebb9@byu.net>
28414
28415         Avoid quadratic system memmem.
28416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28417         Reported by Ralf Wildenhues.
28418
28419         Fix memmem test for mingw.
28420         * modules/memmem-tests (configure.ac): Check for alarm.
28421         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28422         it.
28423         * doc/functions/memmem.texi: New file.
28424         * doc/gnulib.texi (Function Substitutes): Add memmem.
28425         Reported by Bruno Haible.
28426
28427 2008-01-04  Bruno Haible  <bruno@clisp.org>
28428
28429         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28430         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28431         gl_HEADER_STRING_H_DEFAULTS.
28432
28433 2008-01-04  Eric Blake  <ebb9@byu.net>
28434
28435         Shorten duration of memmem test.
28436         * tests/test-memmem.c (main): Use alarm to declare failure if test
28437         is taking too long.
28438         Reported by Ralf Wildenhues.
28439
28440 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28441
28442         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28443         string, needed by strerror.
28444
28445 2008-01-03  Colin Watson  <cjwatson@debian.org>
28446             Bruno Haible  <bruno@clisp.org>
28447
28448         * doc/gnulib-tool.texi (Localization): New section.
28449
28450 2008-01-02  Bruno Haible  <bruno@clisp.org>
28451
28452         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28453         variables to 'unsigned char *' type.
28454         Reported by Paul Eggert.
28455
28456 2008-01-02  Jim Meyering  <jim@meyering.net>
28457
28458         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28459
28460 2007-12-31  Jim Meyering  <jim@meyering.net>
28461
28462         Avoid use of private FTS type name.
28463         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28464
28465 2007-12-30  Karl Berry  <karl@gnu.org>
28466
28467         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28468         work around defect in Texinfo and/or the standalone Info browser.
28469
28470 2007-12-30  Bruno Haible  <bruno@clisp.org>
28471
28472         Unify 5 copies of the KMP code.
28473         * lib/str-kmp.h: New file.
28474         * lib/c-strcasestr.c: Include str-kmp.h.
28475         (knuth_morris_pratt): Remove function.
28476         (c_strcasestr): Update.
28477         * lib/c-strstr.c: Include str-kmp.h.
28478         (knuth_morris_pratt): Remove function.
28479         (c_strcasestr): Update.
28480         * lib/mbscasestr.c: Include str-kmp.h.
28481         (knuth_morris_pratt_unibyte): Remove function.
28482         * lib/mbsstr.c: Include str-kmp.h.
28483         (knuth_morris_pratt_unibyte): Remove function.
28484         * lib/strcasestr.c: Include str-kmp.h.
28485         (knuth_morris_pratt): Remove function.
28486         (strcasestr): Update.
28487         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28488         * modules/c-strstr (Files): Likewise.
28489         * modules/mbscasestr (Files): Likewise.
28490         * modules/mbsstr (Files): Likewise.
28491         * modules/strcasestr (Files): Likewise.
28492         Suggested by Paul Eggert.
28493
28494 2007-12-30  Bruno Haible  <bruno@clisp.org>
28495
28496         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28497         defined.
28498
28499 2007-12-30  Bruno Haible  <bruno@clisp.org>
28500
28501         * lib/xmalloca.h: Include xalloc.h.
28502         (xnmalloca): New macro.
28503
28504 2007-12-30  Bruno Haible  <bruno@clisp.org>
28505
28506         * lib/malloca.h (nmalloca): New macro.
28507         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28508         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28509         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28510         knuth_morris_pratt_multibyte): Likewise.
28511         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28512         knuth_morris_pratt_multibyte): Likewise.
28513         * lib/memmem.c (knuth_morris_pratt): Likewise.
28514         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28515
28516 2007-12-25  Bruno Haible  <bruno@clisp.org>
28517
28518         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28519         * lib/glob.c: Don't include openat.h.
28520         (link_exists2_p): Add back the code that deals with the
28521         !GLOB_ALTDIRFUNC case.
28522         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28523         let it do the filename concatenation.
28524         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28525         * modules/glob (Depends-on): Remove openat.
28526
28527 2007-12-31  Bruno Haible  <bruno@clisp.org>
28528
28529         * modules/dirfd (License): Change to LGPLv2+.
28530         Approved by Jim Meyering.
28531
28532 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28533
28534         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28535         when multiplying M by sizeof (size_t).
28536
28537 2007-12-10  Martin Lambers  <marlam@marlam.de>
28538
28539         Override getpagesize on mingw.
28540         * lib/getpagesize.c: New file.
28541         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28542         * modules/getpagesize (Files): Add lib/getpagesize.c.
28543         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28545         REPLACE_GETPAGESIZE.
28546         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28547
28548 2007-12-25  Bruno Haible  <bruno@clisp.org>
28549
28550         * modules/localcharset (Notice): New field.
28551         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28552         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28553
28554 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28555             Bruno Haible  <bruno@clisp.org>
28556
28557         Avoid using the syntax symbol() in formatted documentation.
28558         * MODULES.html.sh (func_module): When replacing symbol() with a
28559         hyperlink, remove the parentheses. Show an error if some remain.
28560         Recognize and render the '...' syntax.
28561         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28562         Rework. Add paragraph about GCC's inlining.
28563         * doc/alloca.texi: Likewise.
28564         * doc/error.texi: Remove parentheses from symbol reference.
28565         * doc/gnulib-intro.texi: Likewise.
28566         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28567         * modules/fnmatch (Description): Reword to say "the ... function".
28568         * modules/full-read (Description): Likewise.
28569         * modules/full-write (Description): Likewise.
28570         * modules/safe-read (Description): Likewise.
28571         * modules/safe-write (Description): Likewise.
28572         * modules/strchrnul (Description): Likewise.
28573         * modules/trim (Description): Likewise.
28574         * modules/error (Description): Remove parentheses from symbol
28575         references.
28576         * modules/verror (Description): Likewise.
28577         Reported by Karl Berry.
28578
28579 2007-12-25  Bruno Haible  <bruno@clisp.org>
28580
28581         Fixup after 2007-10-16 commit.
28582         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28583
28584 2007-12-24  Bruno Haible  <bruno@clisp.org>
28585
28586         Make --enable-relocatable work with DESTDIR.
28587         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28588         to compute installdir from destprog.
28589         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28590         also set the RELOC_DESTDIR variable.
28591         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28592
28593 2007-12-24  Bruno Haible  <bruno@clisp.org>
28594
28595         Fix link error due to xalloc_die().
28596         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28597         of xreadlink.
28598         * lib/relocwrapper.c: Update comments.
28599         * build-aux/install-reloc: Remove xreadlink.c from file list.
28600         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28601         xreadlink.c.
28602         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28603
28604 2007-12-24  Bruno Haible  <bruno@clisp.org>
28605
28606         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28607         * lib/setenv.h: Remove file.
28608         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28609         lib/setenv.h.
28610         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28611         (Depends-on): Add stdlib.
28612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28613         gl_FUNC_UNSETENV.
28614         (Include): Replace setenv.h with <stdlib.h>.
28615         * modules/unsetenv: New file.
28616         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28617         * lib/unsetenv.c: Include <stdlib.h> first.
28618         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28619         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28620         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28621         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28622         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28623         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28625         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28626         * doc/functions/unsetenv.texi: Update.
28627         * modules/xsetenv (Depends-on): Add unsetenv.
28628         * modules/getdate (Depends-on): Likewise.
28629         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28630         * lib/xsetenv.c: Don't include setenv.h.
28631         * lib/getdate.y: Likewise.
28632         * lib/relocwrapper.c: Likewise.
28633         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28634         (Depends-on): Add stdlib.
28635         * NEWS: Mention the changes.
28636         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28637
28638 2007-12-23  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28641         indentation.
28642
28643 2007-12-23  Bruno Haible  <bruno@clisp.org>
28644
28645         * lib/c-strcasestr.c: Add more comments.
28646         * lib/c-strstr.c: Likewise.
28647         * lib/mbscasestr.c: Likewise.
28648         * lib/mbsstr.c: Likewise.
28649         * lib/strcasestr.c: Likewise.
28650         * lib/memmem.c: Likewise.
28651
28652 2007-12-23  Bruno Haible  <bruno@clisp.org>
28653
28654         * tests/test-memmem.c: Include <string.h> first.
28655
28656 2007-12-22  Bruno Haible  <bruno@clisp.org>
28657
28658         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28659         the contents of $testsbase.
28660         Reported by Ralf Wildenhues.
28661
28662 2007-12-22  Bruno Haible  <bruno@clisp.org>
28663
28664         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28665         two variables local_ldadd_before, local_ldadd_last.
28666
28667 2007-12-20  Eric Blake  <ebb9@byu.net>
28668
28669         Work around circular library issue when cross-compiling.
28670         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28671         that progname.o does not need to pull in rpl_memcmp.
28672
28673 2007-12-19  Eric Blake  <ebb9@byu.net>
28674
28675         Fix memmem to avoid O(n^2) worst-case complexity.
28676         * lib/memmem.c (knuth_morris_pratt): New function.
28677         (memmem): Use it if first few naive iterations fail.
28678         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28679         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28680         * modules/memchr (License): Likewise.
28681         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28682         malloca.
28683         * tests/test-memmem.c: Rewrite, borrowing ideas from
28684         test-mbsstr1.c; the old version wouldn't even compile!
28685         * modules/memmem-tests: New file.
28686         * lib/string.in.h (rpl_memmem): Add declaration.
28687         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28689         REPLACE_MEMMEM.
28690
28691 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28692
28693         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28694         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28695         before any system include files, and undef after them all.  This
28696         should fix a problem on VMS reported by John E. Malmberg in
28697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28698
28699 2007-12-17  Eric Blake  <ebb9@byu.net>
28700
28701         Revert addition of verify, for BSD/OS.
28702         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28703         can't handle large files, for the sake of obsolete platforms.
28704         * modules/fseeko (Depends-on): Remove verify.
28705         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28706         * doc/functions/ftello.texi (ftello): Likewise.
28707         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28708         Reported by Larry Jones.
28709
28710 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28711
28712         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28713         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28714
28715 2007-12-17  Jim Meyering  <meyering@redhat.com>
28716
28717         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28718         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28719         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28720         * modules/getcwd (Depends-on): Add openat.
28721         Reported by Petr Salinger.
28722
28723 2007-12-17  Bruno Haible  <bruno@clisp.org>
28724
28725         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28726         avoid a segmentation fault of the configure test on x86_64 systems.
28727
28728 2007-12-15  Jim Meyering  <meyering@redhat.com>
28729
28730         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28731
28732 2007-12-13  Eric Blake  <ebb9@byu.net>
28733
28734         Another fseek test.
28735         * tests/test-fseek.c (main): Also test ungetc handling.
28736         * tests/test-fseeko.c (main): Likewise.
28737         * modules/fseeko (Depends-on): Add verify.
28738         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28739         large.
28740         Reported by Larry Jones.
28741
28742         Fix fseeko on mingw.
28743         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28744         seek.
28745
28746         Beef up fseek tests.
28747         * tests/test-fseek.c (main): Also test eof handling.
28748         * tests/test-fseeko.c (main): Likewise.
28749         Reported by Larry Jones.
28750
28751 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28752
28753         Fix fseeko on BSD-based platforms.
28754         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28755         successful seek.
28756
28757 2007-12-12  Eric Blake  <ebb9@byu.net>
28758
28759         Allow circular dependency of separate libtests.a
28760         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28761         when use_libtests.
28762
28763 2007-12-11  Eric Blake  <ebb9@byu.net>
28764
28765         Fix bug with -0.0L in previous patch.
28766         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28767         * tests/test-isnan.c (main): Also test on zeroes.
28768         * tests/test-isnanf.c (main): Likewise.
28769         * tests/test-isnanl.h (main): Likewise.
28770
28771         Detect pseudo-denormals on x86 even when cross-compiling.
28772         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28773         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28774         invalid bit patterns that happen to satisfy ==.
28775
28776         Avoid link failures with separate libtests.a.
28777         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28778         last, to satisfy circular dependencies.
28779
28780 2007-12-11  Eric Blake  <ebb9@byu.net>
28781         and Bruno Haible  <bruno@clisp.org>
28782
28783         Fix OpenBSD 4.0 <float.h> handling of long double.
28784         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28785         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28786         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28787
28788 2007-12-11  Jim Meyering  <meyering@redhat.com>
28789
28790         * users.txt: Add libvirt.
28791
28792         Support versions of autoconf prior to 2.59c.
28793         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28794         if it is not already defined.
28795
28796 2007-12-09  Bruno Haible  <bruno@clisp.org>
28797
28798         Let 'gnulib-tool --import' collect sources needed for the tests in
28799         tests/ rather than in lib/.
28800         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28801         argument. If true, add rules to generate libtests.a, and put libtests.a
28802         into $(LDADD). Consider source files in subdirectories and set
28803         uses_subdirs.
28804         (func_emit_initmacro_start, func_emit_initmacro_end,
28805         func_emit_initmacro_done): Pass all arguments explicitly.
28806         (func_import): Determine two module lists main_modules,
28807         testsrelated_modules. Determine use_libtests. Determine two variables
28808         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28809         instead of just sed_transform_lib_file. Determine two variables
28810         main_files and testsrelated_files. Compute 'files' as the union of
28811         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28812         func_add_or_update. In the generated gnulib-comp.m4, collect the
28813         object files for tests/ in different variables than those for lib/.
28814         Substitute LIBTESTS_LIBDEPS.
28815         (func_create_testdir): Combine the uses_subdirs results from
28816         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28817
28818 2007-12-09  Bruno Haible  <bruno@clisp.org>
28819
28820         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28821         the build-aux directory.
28822
28823 2007-12-09  Bruno Haible  <bruno@clisp.org>
28824
28825         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28826         introduced on 2006-09-09.
28827
28828 2007-12-07  Jim Meyering  <meyering@redhat.com>
28829
28830         Let these macros work also with autoconf-2.59.
28831         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28832         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28833         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28834
28835 2007-12-06  Jim Meyering  <meyering@redhat.com>
28836
28837         Avoid a configure-time syntax error in gl_FUNC_ACL.
28838         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28839         function in each branch, before testing the cache variable.
28840
28841 2007-12-04  Eric Blake  <ebb9@byu.net>
28842
28843         Make scripts executable.
28844         * build-aux/config.guess: Add execute permissions.
28845         * build-aux/config.sub: Likewise.
28846         * build-aux/gendocs.sh: Likewise.
28847
28848         Fix frexp on mingw.
28849         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28850         cross-compiling.
28851         * doc/functions/frexp.texi (frexp): Document the bug.
28852
28853         Make cygwin fseeko check more reliable.
28854         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28855         version numbers, rather than unrelated feature check.
28856         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28857         * doc/functions/ftello.texi (ftello): Likewise.
28858         Reported by Bruno Haible.
28859
28860         * m4/strerror.m4: Bump version number.
28861
28862 2007-12-03  Bruno Haible  <bruno@clisp.org>
28863
28864         * doc/functions/mprotect.texi: Mention the mingw problem.
28865
28866 2007-12-03  Eric Blake  <ebb9@byu.net>
28867
28868         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28869         REPLACE_STRERROR is initialized before this macro.
28870
28871 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28874         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28875         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28876         put -lsec in even for programs other than 'ls'.  This fixes a problem
28877         for gettext reported by Bruno Haible in
28878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28879         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28880         Add support for Solaris 10.  This isn't efficient, but should get the
28881         job done for now.
28882
28883 2007-12-03  James Youngman  <jay@gnu.org>
28884
28885         * doc/regexprops-generic.texi: change "an close-group" to "a
28886         close-group" and "illegal" to "not allowed".
28887
28888 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28889
28890         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28891         pr_byname.h. Needed for the rare case when the maintainer has done
28892         "make maintainer-clean" in the source directory and then attempts a
28893         build outside the source directory.
28894         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28895         scripts_byname.h.
28896
28897 2007-12-02  Martin Lambers <marlam@marlam.de>
28898             Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/getpagesize.h: Remove file.
28901         * lib/unistd.in.h: Include declaration of getpagesize here.
28902         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28903         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28904         HAVE_SYS_PARAM_H.
28905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28906         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28907         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28908         (Depends-on): Add unistd.
28909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28910         (Include): Use <unistd.h> instead of getpagesize.h.
28911         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28912         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28913         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28914         gl_GETPAGESIZE invocation, already handled by module dependency.
28915         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28916
28917 2007-12-02  Bruno Haible  <bruno@clisp.org>
28918
28919         * modules/strings-tests: New file.
28920         * tests/test-strings.c: New file.
28921
28922         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28923         * lib/strings.in.h: New file.
28924         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28925         * m4/strings_h.m4: New file.
28926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28927         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28928         * modules/strings: New file.
28929         * modules/string (Makefile.am): Update.
28930         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28931         Reported by Karl Berry.
28932
28933 2007-12-01  Eric Blake  <ebb9@byu.net>
28934
28935         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28936         accomodate fix in cygwin 1.5.25.
28937
28938 2007-12-01  Jim Meyering  <meyering@redhat.com>
28939
28940         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28941         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28942         that would inhibit utf8-optimization of a regexp containing line-
28943         or buffer-anchors, e.g., `^', `$'.
28944
28945 2007-11-30  Bruno Haible  <bruno@clisp.org>
28946
28947         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28948         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28949         glthread_recursive_lock_init.
28950         * lib/lock.c (glthread_recursive_lock_init)
28951         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28952         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28953
28954 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28955
28956         New function qset_acl, like set_acl but with syscall semantics.
28957         * lib/acl.h (qset_acl): New decl.
28958         * lib/acl.c (qset_acl): New function.
28959         (set_acl): Use new function.  Use more-consistent diagnostics.
28960
28961 2007-11-28  Jim Meyering  <meyering@redhat.com>
28962
28963         * modules/physmem (License): Change from GPL to LGPLv2+.
28964
28965 2007-11-26  Bruno Haible  <bruno@clisp.org>
28966
28967         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28968         'long double' type has excess precision.
28969         Reported by Jim Meyering in
28970         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28971
28972 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28973
28974         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28975         Sync from <http://gnu.org/licenses>.
28976         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28977         with license text from same location.
28978         * doc/maintain.texi, doc/standards.texi:  Sync from
28979         <http://savannah.gnu.org/projects/gnustandards>.
28980
28981 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28982         and Jim Meyering  <meyering@redhat.com>
28983
28984         Adjust getdate' grammar to accept a slightly more regular language.
28985         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28986         Before, the former was rejected.
28987         * lib/getdate.y (digits_to_date_time): New function, factored
28988         out of ...
28989         (number): ...here.  Just call digits_to_date_time.
28990         (hybrid): New non-terminal to handle an <unsigned number,
28991         signed relative offset> sequence consistently.
28992
28993 2007-11-18  Jim Meyering  <meyering@redhat.com>
28994
28995         Pull my changes from coreutils:
28996         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28997         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28998         use of $gnulib_tool_option_extras, so that it's separated from the
28999         preceding argument.
29000
29001         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29002         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29003         parent destination directories before copying a file into place.
29004
29005 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29006
29007         bootstrap: work also with 4-argument variant of AC_INIT
29008         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29009
29010 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29011
29012         Port test-getaddrinfo to Solaris.
29013         Problem reported by Bruno Haible in
29014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29015         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29016         explanation of setting 'hints'.
29017         Don't reject an implementation merely because it returns EAI_SERVICE.
29018         (EAI_SERVICE): Define to 0 if not defined.
29019
29020 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         The license of gnu-make and posix-shell is now "GPLed build tool".
29023         * modules/gnu-make (License): Likewise.
29024         * modules/posix-shell (License): Likewise.
29025
29026         New module posix-shell, for determining a POSIX shell
29027         or perhaps something that is close enough to a POSIX shell.
29028         * m4/posix-shell.m4: New file.
29029         * modules/posix-shell: New file.
29030
29031         * MODULES.html.sh: Mention new module.
29032
29033         New module gnu-make, for determining whether we're using GNU Make.
29034         * m4/gnu-make.m4: New file.
29035         * modules/gnu-make: New file.
29036         * MODULES.html.sh: Mention new module.
29037
29038 2007-11-14  Jim Meyering  <meyering@redhat.com>
29039
29040         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29041         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29042         use this macro to create a function _definition_.
29043         Remove useless "#undef ARGMATCH_DIE".
29044
29045 2007-11-14  Bruno Haible  <bruno@clisp.org>
29046
29047         * lib/config.charset: Update for OpenBSD 4.1.
29048         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29049
29050 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29051
29052         Document 64-bit #if problems in stdint.texi.
29053         * doc/headers/stdint.texi (stdint.h): Mention problems with
29054         64-bit-#if, and how to work around them.
29055
29056         Don't insist on 'long long int' support in the preprocessor.  It
29057         breaks too many things.  For example, PRIdMAX still uses a 'long
29058         long int' format with the latest Sun compiler, even though
29059         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29060         preprocessor problem.  This causes the latest coreutils to dump
29061         core on Solaris 10 sparc with the Sun C compiler.
29062         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29063         the troublesome expressions at configure-time, not at #if-time.
29064         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29065         preprocessor.
29066         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29067         compile-time C checks, done at 'configure'-time.
29068         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29069         * modules/inttypes (Makefile): Substitute the new symbols that
29070         gl_INTTYPES_H now generates.
29071         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29072
29073 2007-11-12  Bruno Haible  <bruno@clisp.org>
29074
29075         Tests for Unicode character classification functions.
29076
29077         * modules/unictype/bidicategory-byname-tests: New file.
29078         * modules/unictype/bidicategory-name-tests: New file.
29079         * modules/unictype/bidicategory-of-tests: New file.
29080         * modules/unictype/bidicategory-test-tests: New file.
29081         * modules/unictype/block-list-tests: New file.
29082         * modules/unictype/block-of-tests: New file.
29083         * modules/unictype/block-test-tests: New file.
29084         * modules/unictype/category-C-tests: New file.
29085         * modules/unictype/category-Cc-tests: New file.
29086         * modules/unictype/category-Cf-tests: New file.
29087         * modules/unictype/category-Cn-tests: New file.
29088         * modules/unictype/category-Co-tests: New file.
29089         * modules/unictype/category-Cs-tests: New file.
29090         * modules/unictype/category-L-tests: New file.
29091         * modules/unictype/category-Ll-tests: New file.
29092         * modules/unictype/category-Lm-tests: New file.
29093         * modules/unictype/category-Lo-tests: New file.
29094         * modules/unictype/category-Lt-tests: New file.
29095         * modules/unictype/category-Lu-tests: New file.
29096         * modules/unictype/category-M-tests: New file.
29097         * modules/unictype/category-Mc-tests: New file.
29098         * modules/unictype/category-Me-tests: New file.
29099         * modules/unictype/category-Mn-tests: New file.
29100         * modules/unictype/category-N-tests: New file.
29101         * modules/unictype/category-Nd-tests: New file.
29102         * modules/unictype/category-Nl-tests: New file.
29103         * modules/unictype/category-No-tests: New file.
29104         * modules/unictype/category-P-tests: New file.
29105         * modules/unictype/category-Pc-tests: New file.
29106         * modules/unictype/category-Pd-tests: New file.
29107         * modules/unictype/category-Pe-tests: New file.
29108         * modules/unictype/category-Pf-tests: New file.
29109         * modules/unictype/category-Pi-tests: New file.
29110         * modules/unictype/category-Po-tests: New file.
29111         * modules/unictype/category-Ps-tests: New file.
29112         * modules/unictype/category-S-tests: New file.
29113         * modules/unictype/category-Sc-tests: New file.
29114         * modules/unictype/category-Sk-tests: New file.
29115         * modules/unictype/category-Sm-tests: New file.
29116         * modules/unictype/category-So-tests: New file.
29117         * modules/unictype/category-Z-tests: New file.
29118         * modules/unictype/category-Zl-tests: New file.
29119         * modules/unictype/category-Zp-tests: New file.
29120         * modules/unictype/category-Zs-tests: New file.
29121         * modules/unictype/category-and-not-tests: New file.
29122         * modules/unictype/category-and-tests: New file.
29123         * modules/unictype/category-byname-tests: New file.
29124         * modules/unictype/category-name-tests: New file.
29125         * modules/unictype/category-none-tests: New file.
29126         * modules/unictype/category-of-tests: New file.
29127         * modules/unictype/category-or-tests: New file.
29128         * modules/unictype/category-test-withtable-tests: New file.
29129         * modules/unictype/combining-class-tests: New file.
29130         * modules/unictype/ctype-alnum-tests: New file.
29131         * modules/unictype/ctype-alpha-tests: New file.
29132         * modules/unictype/ctype-blank-tests: New file.
29133         * modules/unictype/ctype-cntrl-tests: New file.
29134         * modules/unictype/ctype-digit-tests: New file.
29135         * modules/unictype/ctype-graph-tests: New file.
29136         * modules/unictype/ctype-lower-tests: New file.
29137         * modules/unictype/ctype-print-tests: New file.
29138         * modules/unictype/ctype-punct-tests: New file.
29139         * modules/unictype/ctype-space-tests: New file.
29140         * modules/unictype/ctype-upper-tests: New file.
29141         * modules/unictype/ctype-xdigit-tests: New file.
29142         * modules/unictype/decimal-digit-tests: New file.
29143         * modules/unictype/digit-tests: New file.
29144         * modules/unictype/mirror-tests: New file.
29145         * modules/unictype/numeric-tests: New file.
29146         * modules/unictype/property-alphabetic-tests: New file.
29147         * modules/unictype/property-ascii-hex-digit-tests: New file.
29148         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29149         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29150         * modules/unictype/property-bidi-block-separator-tests: New file.
29151         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29152         * modules/unictype/property-bidi-common-separator-tests: New file.
29153         * modules/unictype/property-bidi-control-tests: New file.
29154         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29155         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29156         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29157         * modules/unictype/property-bidi-european-digit-tests: New file.
29158         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29159         * modules/unictype/property-bidi-left-to-right-tests: New file.
29160         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29161         * modules/unictype/property-bidi-other-neutral-tests: New file.
29162         * modules/unictype/property-bidi-pdf-tests: New file.
29163         * modules/unictype/property-bidi-segment-separator-tests: New file.
29164         * modules/unictype/property-bidi-whitespace-tests: New file.
29165         * modules/unictype/property-byname-tests: New file.
29166         * modules/unictype/property-combining-tests: New file.
29167         * modules/unictype/property-composite-tests: New file.
29168         * modules/unictype/property-currency-symbol-tests: New file.
29169         * modules/unictype/property-dash-tests: New file.
29170         * modules/unictype/property-decimal-digit-tests: New file.
29171         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29172         * modules/unictype/property-deprecated-tests: New file.
29173         * modules/unictype/property-diacritic-tests: New file.
29174         * modules/unictype/property-extender-tests: New file.
29175         * modules/unictype/property-format-control-tests: New file.
29176         * modules/unictype/property-grapheme-base-tests: New file.
29177         * modules/unictype/property-grapheme-extend-tests: New file.
29178         * modules/unictype/property-grapheme-link-tests: New file.
29179         * modules/unictype/property-hex-digit-tests: New file.
29180         * modules/unictype/property-hyphen-tests: New file.
29181         * modules/unictype/property-id-continue-tests: New file.
29182         * modules/unictype/property-id-start-tests: New file.
29183         * modules/unictype/property-ideographic-tests: New file.
29184         * modules/unictype/property-ids-binary-operator-tests: New file.
29185         * modules/unictype/property-ids-trinary-operator-tests: New file.
29186         * modules/unictype/property-ignorable-control-tests: New file.
29187         * modules/unictype/property-iso-control-tests: New file.
29188         * modules/unictype/property-join-control-tests: New file.
29189         * modules/unictype/property-left-of-pair-tests: New file.
29190         * modules/unictype/property-line-separator-tests: New file.
29191         * modules/unictype/property-logical-order-exception-tests: New file.
29192         * modules/unictype/property-lowercase-tests: New file.
29193         * modules/unictype/property-math-tests: New file.
29194         * modules/unictype/property-non-break-tests: New file.
29195         * modules/unictype/property-not-a-character-tests: New file.
29196         * modules/unictype/property-numeric-tests: New file.
29197         * modules/unictype/property-other-alphabetic-tests: New file.
29198         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29199         * modules/unictype/property-other-grapheme-extend-tests: New file.
29200         * modules/unictype/property-other-id-continue-tests: New file.
29201         * modules/unictype/property-other-id-start-tests: New file.
29202         * modules/unictype/property-other-lowercase-tests: New file.
29203         * modules/unictype/property-other-math-tests: New file.
29204         * modules/unictype/property-other-uppercase-tests: New file.
29205         * modules/unictype/property-paired-punctuation-tests: New file.
29206         * modules/unictype/property-paragraph-separator-tests: New file.
29207         * modules/unictype/property-pattern-syntax-tests: New file.
29208         * modules/unictype/property-pattern-white-space-tests: New file.
29209         * modules/unictype/property-private-use-tests: New file.
29210         * modules/unictype/property-punctuation-tests: New file.
29211         * modules/unictype/property-quotation-mark-tests: New file.
29212         * modules/unictype/property-radical-tests: New file.
29213         * modules/unictype/property-sentence-terminal-tests: New file.
29214         * modules/unictype/property-soft-dotted-tests: New file.
29215         * modules/unictype/property-space-tests: New file.
29216         * modules/unictype/property-terminal-punctuation-tests: New file.
29217         * modules/unictype/property-test-tests: New file.
29218         * modules/unictype/property-titlecase-tests: New file.
29219         * modules/unictype/property-unassigned-code-value-tests: New file.
29220         * modules/unictype/property-unified-ideograph-tests: New file.
29221         * modules/unictype/property-uppercase-tests: New file.
29222         * modules/unictype/property-variation-selector-tests: New file.
29223         * modules/unictype/property-white-space-tests: New file.
29224         * modules/unictype/property-xid-continue-tests: New file.
29225         * modules/unictype/property-xid-start-tests: New file.
29226         * modules/unictype/property-zero-width-tests: New file.
29227         * modules/unictype/scripts-tests: New file.
29228         * modules/unictype/syntax-c-ident-tests: New file.
29229         * modules/unictype/syntax-c-whitespace-tests: New file.
29230         * modules/unictype/syntax-java-ident-tests: New file.
29231         * modules/unictype/syntax-java-whitespace-tests: New file.
29232         * tests/unictype/test-bidi_byname.c: New file.
29233         * tests/unictype/test-bidi_name.c: New file.
29234         * tests/unictype/test-bidi_of.c: New file.
29235         * tests/unictype/test-bidi_test.c: New file.
29236         * tests/unictype/test-block_list.c: New file.
29237         * tests/unictype/test-block_of.c: New file.
29238         * tests/unictype/test-block_test.c: New file.
29239         * tests/unictype/test-categ_and.c: New file.
29240         * tests/unictype/test-categ_and_not.c: New file.
29241         * tests/unictype/test-categ_byname.c: New file.
29242         * tests/unictype/test-categ_name.c: New file.
29243         * tests/unictype/test-categ_none.c: New file.
29244         * tests/unictype/test-categ_of.c: New file.
29245         * tests/unictype/test-categ_or.c: New file.
29246         * tests/unictype/test-categ_test_withtable.c: New file.
29247         * tests/unictype/test-combining.c: New file.
29248         * tests/unictype/test-decdigit.c: New file.
29249         * tests/unictype/test-digit.c: New file.
29250         * tests/unictype/test-mirror.c: New file.
29251         * tests/unictype/test-numeric.c: New file.
29252         * tests/unictype/test-pr_byname.c: New file.
29253         * tests/unictype/test-pr_test.c: New file.
29254         * tests/unictype/test-predicate-part1.h: New file.
29255         * tests/unictype/test-predicate-part2.h: New file.
29256         * tests/unictype/test-scripts.c: New file.
29257         * tests/unictype/test-sy_c_ident.c: New file.
29258         * tests/unictype/test-sy_java_ident.c: New file.
29259
29260         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29261         for Unicode 5.0.0.
29262         * tests/unictype/test-categ_Cc.c: Likewise.
29263         * tests/unictype/test-categ_Cf.c: Likewise.
29264         * tests/unictype/test-categ_Cn.c: Likewise.
29265         * tests/unictype/test-categ_Co.c: Likewise.
29266         * tests/unictype/test-categ_Cs.c: Likewise.
29267         * tests/unictype/test-categ_L.c: Likewise.
29268         * tests/unictype/test-categ_Ll.c: Likewise.
29269         * tests/unictype/test-categ_Lm.c: Likewise.
29270         * tests/unictype/test-categ_Lo.c: Likewise.
29271         * tests/unictype/test-categ_Lt.c: Likewise.
29272         * tests/unictype/test-categ_Lu.c: Likewise.
29273         * tests/unictype/test-categ_M.c: Likewise.
29274         * tests/unictype/test-categ_Mc.c: Likewise.
29275         * tests/unictype/test-categ_Me.c: Likewise.
29276         * tests/unictype/test-categ_Mn.c: Likewise.
29277         * tests/unictype/test-categ_N.c: Likewise.
29278         * tests/unictype/test-categ_Nd.c: Likewise.
29279         * tests/unictype/test-categ_Nl.c: Likewise.
29280         * tests/unictype/test-categ_No.c: Likewise.
29281         * tests/unictype/test-categ_P.c: Likewise.
29282         * tests/unictype/test-categ_Pc.c: Likewise.
29283         * tests/unictype/test-categ_Pd.c: Likewise.
29284         * tests/unictype/test-categ_Pe.c: Likewise.
29285         * tests/unictype/test-categ_Pf.c: Likewise.
29286         * tests/unictype/test-categ_Pi.c: Likewise.
29287         * tests/unictype/test-categ_Po.c: Likewise.
29288         * tests/unictype/test-categ_Ps.c: Likewise.
29289         * tests/unictype/test-categ_S.c: Likewise.
29290         * tests/unictype/test-categ_Sc.c: Likewise.
29291         * tests/unictype/test-categ_Sk.c: Likewise.
29292         * tests/unictype/test-categ_Sm.c: Likewise.
29293         * tests/unictype/test-categ_So.c: Likewise.
29294         * tests/unictype/test-categ_Z.c: Likewise.
29295         * tests/unictype/test-categ_Zl.c: Likewise.
29296         * tests/unictype/test-categ_Zp.c: Likewise.
29297         * tests/unictype/test-categ_Zs.c: Likewise.
29298         * tests/unictype/test-ctype_alnum.c: Likewise.
29299         * tests/unictype/test-ctype_alpha.c: Likewise.
29300         * tests/unictype/test-ctype_blank.c: Likewise.
29301         * tests/unictype/test-ctype_cntrl.c: Likewise.
29302         * tests/unictype/test-ctype_digit.c: Likewise.
29303         * tests/unictype/test-ctype_graph.c: Likewise.
29304         * tests/unictype/test-ctype_lower.c: Likewise.
29305         * tests/unictype/test-ctype_print.c: Likewise.
29306         * tests/unictype/test-ctype_punct.c: Likewise.
29307         * tests/unictype/test-ctype_space.c: Likewise.
29308         * tests/unictype/test-ctype_upper.c: Likewise.
29309         * tests/unictype/test-ctype_xdigit.c: Likewise.
29310         * tests/unictype/test-decdigit.h: Likewise.
29311         * tests/unictype/test-digit.h: Likewise.
29312         * tests/unictype/test-numeric.h: Likewise.
29313         * tests/unictype/test-pr_alphabetic.c: Likewise.
29314         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29315         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29316         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29317         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29318         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29319         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29320         * tests/unictype/test-pr_bidi_control.c: Likewise.
29321         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29322         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29323         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29324         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29325         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29326         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29327         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29328         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29329         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29330         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29331         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29332         * tests/unictype/test-pr_combining.c: Likewise.
29333         * tests/unictype/test-pr_composite.c: Likewise.
29334         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29335         * tests/unictype/test-pr_dash.c: Likewise.
29336         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29337         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29338         * tests/unictype/test-pr_deprecated.c: Likewise.
29339         * tests/unictype/test-pr_diacritic.c: Likewise.
29340         * tests/unictype/test-pr_extender.c: Likewise.
29341         * tests/unictype/test-pr_format_control.c: Likewise.
29342         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29343         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29344         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29345         * tests/unictype/test-pr_hex_digit.c: Likewise.
29346         * tests/unictype/test-pr_hyphen.c: Likewise.
29347         * tests/unictype/test-pr_id_continue.c: Likewise.
29348         * tests/unictype/test-pr_id_start.c: Likewise.
29349         * tests/unictype/test-pr_ideographic.c: Likewise.
29350         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29351         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29352         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29353         * tests/unictype/test-pr_iso_control.c: Likewise.
29354         * tests/unictype/test-pr_join_control.c: Likewise.
29355         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29356         * tests/unictype/test-pr_line_separator.c: Likewise.
29357         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29358         * tests/unictype/test-pr_lowercase.c: Likewise.
29359         * tests/unictype/test-pr_math.c: Likewise.
29360         * tests/unictype/test-pr_non_break.c: Likewise.
29361         * tests/unictype/test-pr_not_a_character.c: Likewise.
29362         * tests/unictype/test-pr_numeric.c: Likewise.
29363         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29364         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29365         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29366         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29367         * tests/unictype/test-pr_other_id_start.c: Likewise.
29368         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29369         * tests/unictype/test-pr_other_math.c: Likewise.
29370         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29371         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29372         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29373         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29374         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29375         * tests/unictype/test-pr_private_use.c: Likewise.
29376         * tests/unictype/test-pr_punctuation.c: Likewise.
29377         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29378         * tests/unictype/test-pr_radical.c: Likewise.
29379         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29380         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29381         * tests/unictype/test-pr_space.c: Likewise.
29382         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29383         * tests/unictype/test-pr_titlecase.c: Likewise.
29384         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29385         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29386         * tests/unictype/test-pr_uppercase.c: Likewise.
29387         * tests/unictype/test-pr_variation_selector.c: Likewise.
29388         * tests/unictype/test-pr_white_space.c: Likewise.
29389         * tests/unictype/test-pr_xid_continue.c: Likewise.
29390         * tests/unictype/test-pr_xid_start.c: Likewise.
29391         * tests/unictype/test-pr_zero_width.c: Likewise.
29392         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29393         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29394
29395 2007-11-12  Bruno Haible  <bruno@clisp.org>
29396
29397         Unicode character classification functions.
29398         * lib/unictype.h: New file.
29399         * modules/unictype/base: New file.
29400         * modules/unictype/category-L: New file.
29401         * modules/unictype/category-Lu: New file.
29402         * modules/unictype/category-Ll: New file.
29403         * modules/unictype/category-Lt: New file.
29404         * modules/unictype/category-Lm: New file.
29405         * modules/unictype/category-Lo: New file.
29406         * modules/unictype/category-M: New file.
29407         * modules/unictype/category-Mn: New file.
29408         * modules/unictype/category-Mc: New file.
29409         * modules/unictype/category-Me: New file.
29410         * modules/unictype/category-N: New file.
29411         * modules/unictype/category-Nd: New file.
29412         * modules/unictype/category-Nl: New file.
29413         * modules/unictype/category-No: New file.
29414         * modules/unictype/category-P: New file.
29415         * modules/unictype/category-Pc: New file.
29416         * modules/unictype/category-Pd: New file.
29417         * modules/unictype/category-Ps: New file.
29418         * modules/unictype/category-Pe: New file.
29419         * modules/unictype/category-Pi: New file.
29420         * modules/unictype/category-Pf: New file.
29421         * modules/unictype/category-Po: New file.
29422         * modules/unictype/category-S: New file.
29423         * modules/unictype/category-Sm: New file.
29424         * modules/unictype/category-Sc: New file.
29425         * modules/unictype/category-Sk: New file.
29426         * modules/unictype/category-So: New file.
29427         * modules/unictype/category-Z: New file.
29428         * modules/unictype/category-Zs: New file.
29429         * modules/unictype/category-Zl: New file.
29430         * modules/unictype/category-Zp: New file.
29431         * modules/unictype/category-C: New file.
29432         * modules/unictype/category-Cc: New file.
29433         * modules/unictype/category-Cf: New file.
29434         * modules/unictype/category-Cs: New file.
29435         * modules/unictype/category-Co: New file.
29436         * modules/unictype/category-Cn: New file.
29437         * modules/unictype/category-or: New file.
29438         * modules/unictype/category-of: New file.
29439         * modules/unictype/category-test: New file.
29440         * modules/unictype/category-test-withtable: New file.
29441         * modules/unictype/category-byname: New file.
29442         * modules/unictype/category-none: New file.
29443         * modules/unictype/category-and: New file.
29444         * modules/unictype/category-and-not: New file.
29445         * modules/unictype/category-name: New file.
29446         * modules/unictype/combining-class: New file.
29447         * modules/unictype/category-all: New file.
29448         * modules/unictype/bidicategory-all: New file.
29449         * modules/unictype/bidicategory-byname: New file.
29450         * modules/unictype/bidicategory-name: New file.
29451         * modules/unictype/bidicategory-of: New file.
29452         * modules/unictype/bidicategory-test: New file.
29453         * modules/unictype/decimal-digit: New file.
29454         * modules/unictype/digit: New file.
29455         * modules/unictype/numeric: New file.
29456         * modules/unictype/mirror: New file.
29457         * modules/unictype/property-white-space: New file.
29458         * modules/unictype/property-alphabetic: New file.
29459         * modules/unictype/property-other-alphabetic: New file.
29460         * modules/unictype/property-not-a-character: New file.
29461         * modules/unictype/property-default-ignorable-code-point: New file.
29462         * modules/unictype/property-other-default-ignorable-code-point: New
29463         file.
29464         * modules/unictype/property-deprecated: New file.
29465         * modules/unictype/property-logical-order-exception: New file.
29466         * modules/unictype/property-variation-selector: New file.
29467         * modules/unictype/property-private-use: New file.
29468         * modules/unictype/property-unassigned-code-value: New file.
29469         * modules/unictype/property-uppercase: New file.
29470         * modules/unictype/property-other-uppercase: New file.
29471         * modules/unictype/property-lowercase: New file.
29472         * modules/unictype/property-other-lowercase: New file.
29473         * modules/unictype/property-titlecase: New file.
29474         * modules/unictype/property-soft-dotted: New file.
29475         * modules/unictype/property-id-start: New file.
29476         * modules/unictype/property-other-id-start: New file.
29477         * modules/unictype/property-id-continue: New file.
29478         * modules/unictype/property-other-id-continue: New file.
29479         * modules/unictype/property-xid-start: New file.
29480         * modules/unictype/property-xid-continue: New file.
29481         * modules/unictype/property-pattern-white-space: New file.
29482         * modules/unictype/property-pattern-syntax: New file.
29483         * modules/unictype/property-join-control: New file.
29484         * modules/unictype/property-grapheme-base: New file.
29485         * modules/unictype/property-grapheme-extend: New file.
29486         * modules/unictype/property-other-grapheme-extend: New file.
29487         * modules/unictype/property-grapheme-link: New file.
29488         * modules/unictype/property-bidi-control: New file.
29489         * modules/unictype/property-bidi-left-to-right: New file.
29490         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29491         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29492         * modules/unictype/property-bidi-european-digit: New file.
29493         * modules/unictype/property-bidi-eur-num-separator: New file.
29494         * modules/unictype/property-bidi-eur-num-terminator: New file.
29495         * modules/unictype/property-bidi-arabic-digit: New file.
29496         * modules/unictype/property-bidi-common-separator: New file.
29497         * modules/unictype/property-bidi-block-separator: New file.
29498         * modules/unictype/property-bidi-segment-separator: New file.
29499         * modules/unictype/property-bidi-whitespace: New file.
29500         * modules/unictype/property-bidi-non-spacing-mark: New file.
29501         * modules/unictype/property-bidi-boundary-neutral: New file.
29502         * modules/unictype/property-bidi-pdf: New file.
29503         * modules/unictype/property-bidi-embedding-or-override: New file.
29504         * modules/unictype/property-bidi-other-neutral: New file.
29505         * modules/unictype/property-hex-digit: New file.
29506         * modules/unictype/property-ascii-hex-digit: New file.
29507         * modules/unictype/property-ideographic: New file.
29508         * modules/unictype/property-unified-ideograph: New file.
29509         * modules/unictype/property-radical: New file.
29510         * modules/unictype/property-ids-binary-operator: New file.
29511         * modules/unictype/property-ids-trinary-operator: New file.
29512         * modules/unictype/property-zero-width: New file.
29513         * modules/unictype/property-space: New file.
29514         * modules/unictype/property-non-break: New file.
29515         * modules/unictype/property-iso-control: New file.
29516         * modules/unictype/property-format-control: New file.
29517         * modules/unictype/property-dash: New file.
29518         * modules/unictype/property-hyphen: New file.
29519         * modules/unictype/property-punctuation: New file.
29520         * modules/unictype/property-line-separator: New file.
29521         * modules/unictype/property-paragraph-separator: New file.
29522         * modules/unictype/property-quotation-mark: New file.
29523         * modules/unictype/property-sentence-terminal: New file.
29524         * modules/unictype/property-terminal-punctuation: New file.
29525         * modules/unictype/property-currency-symbol: New file.
29526         * modules/unictype/property-math: New file.
29527         * modules/unictype/property-other-math: New file.
29528         * modules/unictype/property-paired-punctuation: New file.
29529         * modules/unictype/property-left-of-pair: New file.
29530         * modules/unictype/property-combining: New file.
29531         * modules/unictype/property-composite: New file.
29532         * modules/unictype/property-decimal-digit: New file.
29533         * modules/unictype/property-numeric: New file.
29534         * modules/unictype/property-diacritic: New file.
29535         * modules/unictype/property-extender: New file.
29536         * modules/unictype/property-ignorable-control: New file.
29537         * modules/unictype/property-test: New file.
29538         * modules/unictype/property-byname: New file.
29539         * modules/unictype/property-all: New file.
29540         * modules/unictype/scripts: New file.
29541         * modules/unictype/scripts-all: New file.
29542         * modules/unictype/block-of: New file.
29543         * modules/unictype/block-test: New file.
29544         * modules/unictype/block-list: New file.
29545         * modules/unictype/block-all: New file.
29546         * modules/unictype/syntax-c-whitespace: New file.
29547         * modules/unictype/syntax-java-whitespace: New file.
29548         * modules/unictype/syntax-c-ident: New file.
29549         * modules/unictype/syntax-java-ident: New file.
29550         * modules/unictype/ctype-alnum: New file.
29551         * modules/unictype/ctype-alpha: New file.
29552         * modules/unictype/ctype-cntrl: New file.
29553         * modules/unictype/ctype-digit: New file.
29554         * modules/unictype/ctype-graph: New file.
29555         * modules/unictype/ctype-lower: New file.
29556         * modules/unictype/ctype-print: New file.
29557         * modules/unictype/ctype-punct: New file.
29558         * modules/unictype/ctype-space: New file.
29559         * modules/unictype/ctype-upper: New file.
29560         * modules/unictype/ctype-xdigit: New file.
29561         * modules/unictype/ctype-blank: New file.
29562         * lib/unictype/bidi_byname.c: New file.
29563         * lib/unictype/bidi_name.c: New file.
29564         * lib/unictype/bidi_of.c: New file.
29565         * lib/unictype/bidi_test.c: New file.
29566         * lib/unictype/bitmap.h: New file.
29567         * lib/unictype/block_test.c: New file.
29568         * lib/unictype/blocks.c: New file.
29569         * lib/unictype/categ_C.c: New file.
29570         * lib/unictype/categ_Cc.c: New file.
29571         * lib/unictype/categ_Cf.c: New file.
29572         * lib/unictype/categ_Cn.c: New file.
29573         * lib/unictype/categ_Co.c: New file.
29574         * lib/unictype/categ_Cs.c: New file.
29575         * lib/unictype/categ_L.c: New file.
29576         * lib/unictype/categ_Ll.c: New file.
29577         * lib/unictype/categ_Lm.c: New file.
29578         * lib/unictype/categ_Lo.c: New file.
29579         * lib/unictype/categ_Lt.c: New file.
29580         * lib/unictype/categ_Lu.c: New file.
29581         * lib/unictype/categ_M.c: New file.
29582         * lib/unictype/categ_Mc.c: New file.
29583         * lib/unictype/categ_Me.c: New file.
29584         * lib/unictype/categ_Mn.c: New file.
29585         * lib/unictype/categ_N.c: New file.
29586         * lib/unictype/categ_Nd.c: New file.
29587         * lib/unictype/categ_Nl.c: New file.
29588         * lib/unictype/categ_No.c: New file.
29589         * lib/unictype/categ_P.c: New file.
29590         * lib/unictype/categ_Pc.c: New file.
29591         * lib/unictype/categ_Pd.c: New file.
29592         * lib/unictype/categ_Pe.c: New file.
29593         * lib/unictype/categ_Pf.c: New file.
29594         * lib/unictype/categ_Pi.c: New file.
29595         * lib/unictype/categ_Po.c: New file.
29596         * lib/unictype/categ_Ps.c: New file.
29597         * lib/unictype/categ_S.c: New file.
29598         * lib/unictype/categ_Sc.c: New file.
29599         * lib/unictype/categ_Sk.c: New file.
29600         * lib/unictype/categ_Sm.c: New file.
29601         * lib/unictype/categ_So.c: New file.
29602         * lib/unictype/categ_Z.c: New file.
29603         * lib/unictype/categ_Zl.c: New file.
29604         * lib/unictype/categ_Zp.c: New file.
29605         * lib/unictype/categ_Zs.c: New file.
29606         * lib/unictype/categ_and.c: New file.
29607         * lib/unictype/categ_and_not.c: New file.
29608         * lib/unictype/categ_byname.c: New file.
29609         * lib/unictype/categ_name.c: New file.
29610         * lib/unictype/categ_none.c: New file.
29611         * lib/unictype/categ_of.c: New file.
29612         * lib/unictype/categ_or.c: New file.
29613         * lib/unictype/categ_test.c: New file.
29614         * lib/unictype/combining.c: New file.
29615         * lib/unictype/ctype_alnum.c: New file.
29616         * lib/unictype/ctype_alpha.c: New file.
29617         * lib/unictype/ctype_blank.c: New file.
29618         * lib/unictype/ctype_cntrl.c: New file.
29619         * lib/unictype/ctype_digit.c: New file.
29620         * lib/unictype/ctype_graph.c: New file.
29621         * lib/unictype/ctype_lower.c: New file.
29622         * lib/unictype/ctype_print.c: New file.
29623         * lib/unictype/ctype_punct.c: New file.
29624         * lib/unictype/ctype_space.c: New file.
29625         * lib/unictype/ctype_upper.c: New file.
29626         * lib/unictype/ctype_xdigit.c: New file.
29627         * lib/unictype/decdigit.c: New file.
29628         * lib/unictype/digit.c: New file.
29629         * lib/unictype/identsyntaxmap.h: New file.
29630         * lib/unictype/mirror.c: New file.
29631         * lib/unictype/numeric.c: New file.
29632         * lib/unictype/pr_alphabetic.c: New file.
29633         * lib/unictype/pr_ascii_hex_digit.c: New file.
29634         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29635         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29636         * lib/unictype/pr_bidi_block_separator.c: New file.
29637         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29638         * lib/unictype/pr_bidi_common_separator.c: New file.
29639         * lib/unictype/pr_bidi_control.c: New file.
29640         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29641         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29642         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29643         * lib/unictype/pr_bidi_european_digit.c: New file.
29644         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29645         * lib/unictype/pr_bidi_left_to_right.c: New file.
29646         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29647         * lib/unictype/pr_bidi_other_neutral.c: New file.
29648         * lib/unictype/pr_bidi_pdf.c: New file.
29649         * lib/unictype/pr_bidi_segment_separator.c: New file.
29650         * lib/unictype/pr_bidi_whitespace.c: New file.
29651         * lib/unictype/pr_byname.c: New file.
29652         * lib/unictype/pr_byname.gperf: New file.
29653         * lib/unictype/pr_combining.c: New file.
29654         * lib/unictype/pr_composite.c: New file.
29655         * lib/unictype/pr_currency_symbol.c: New file.
29656         * lib/unictype/pr_dash.c: New file.
29657         * lib/unictype/pr_decimal_digit.c: New file.
29658         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29659         * lib/unictype/pr_deprecated.c: New file.
29660         * lib/unictype/pr_diacritic.c: New file.
29661         * lib/unictype/pr_extender.c: New file.
29662         * lib/unictype/pr_format_control.c: New file.
29663         * lib/unictype/pr_grapheme_base.c: New file.
29664         * lib/unictype/pr_grapheme_extend.c: New file.
29665         * lib/unictype/pr_grapheme_link.c: New file.
29666         * lib/unictype/pr_hex_digit.c: New file.
29667         * lib/unictype/pr_hyphen.c: New file.
29668         * lib/unictype/pr_id_continue.c: New file.
29669         * lib/unictype/pr_id_start.c: New file.
29670         * lib/unictype/pr_ideographic.c: New file.
29671         * lib/unictype/pr_ids_binary_operator.c: New file.
29672         * lib/unictype/pr_ids_trinary_operator.c: New file.
29673         * lib/unictype/pr_ignorable_control.c: New file.
29674         * lib/unictype/pr_iso_control.c: New file.
29675         * lib/unictype/pr_join_control.c: New file.
29676         * lib/unictype/pr_left_of_pair.c: New file.
29677         * lib/unictype/pr_line_separator.c: New file.
29678         * lib/unictype/pr_logical_order_exception.c: New file.
29679         * lib/unictype/pr_lowercase.c: New file.
29680         * lib/unictype/pr_math.c: New file.
29681         * lib/unictype/pr_non_break.c: New file.
29682         * lib/unictype/pr_not_a_character.c: New file.
29683         * lib/unictype/pr_numeric.c: New file.
29684         * lib/unictype/pr_other_alphabetic.c: New file.
29685         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29686         * lib/unictype/pr_other_grapheme_extend.c: New file.
29687         * lib/unictype/pr_other_id_continue.c: New file.
29688         * lib/unictype/pr_other_id_start.c: New file.
29689         * lib/unictype/pr_other_lowercase.c: New file.
29690         * lib/unictype/pr_other_math.c: New file.
29691         * lib/unictype/pr_other_uppercase.c: New file.
29692         * lib/unictype/pr_paired_punctuation.c: New file.
29693         * lib/unictype/pr_paragraph_separator.c: New file.
29694         * lib/unictype/pr_pattern_syntax.c: New file.
29695         * lib/unictype/pr_pattern_white_space.c: New file.
29696         * lib/unictype/pr_private_use.c: New file.
29697         * lib/unictype/pr_punctuation.c: New file.
29698         * lib/unictype/pr_quotation_mark.c: New file.
29699         * lib/unictype/pr_radical.c: New file.
29700         * lib/unictype/pr_sentence_terminal.c: New file.
29701         * lib/unictype/pr_soft_dotted.c: New file.
29702         * lib/unictype/pr_space.c: New file.
29703         * lib/unictype/pr_terminal_punctuation.c: New file.
29704         * lib/unictype/pr_test.c: New file.
29705         * lib/unictype/pr_titlecase.c: New file.
29706         * lib/unictype/pr_unassigned_code_value.c: New file.
29707         * lib/unictype/pr_unified_ideograph.c: New file.
29708         * lib/unictype/pr_uppercase.c: New file.
29709         * lib/unictype/pr_variation_selector.c: New file.
29710         * lib/unictype/pr_white_space.c: New file.
29711         * lib/unictype/pr_xid_continue.c: New file.
29712         * lib/unictype/pr_xid_start.c: New file.
29713         * lib/unictype/pr_zero_width.c: New file.
29714         * lib/unictype/scripts.c: New file.
29715         * lib/unictype/sy_c_ident.c: New file.
29716         * lib/unictype/sy_c_whitespace.c: New file.
29717         * lib/unictype/sy_java_ident.c: New file.
29718         * lib/unictype/sy_java_whitespace.c: New file.
29719
29720         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29721         Unicode 5.0.0.
29722         * lib/unictype/blocks.h: Likewise.
29723         * lib/unictype/categ_C.h: Likewise.
29724         * lib/unictype/categ_Cc.h: Likewise.
29725         * lib/unictype/categ_Cf.h: Likewise.
29726         * lib/unictype/categ_Cn.h: Likewise.
29727         * lib/unictype/categ_Co.h: Likewise.
29728         * lib/unictype/categ_Cs.h: Likewise.
29729         * lib/unictype/categ_L.h: Likewise.
29730         * lib/unictype/categ_Ll.h: Likewise.
29731         * lib/unictype/categ_Lm.h: Likewise.
29732         * lib/unictype/categ_Lo.h: Likewise.
29733         * lib/unictype/categ_Lt.h: Likewise.
29734         * lib/unictype/categ_Lu.h: Likewise.
29735         * lib/unictype/categ_M.h: Likewise.
29736         * lib/unictype/categ_Mc.h: Likewise.
29737         * lib/unictype/categ_Me.h: Likewise.
29738         * lib/unictype/categ_Mn.h: Likewise.
29739         * lib/unictype/categ_N.h: Likewise.
29740         * lib/unictype/categ_Nd.h: Likewise.
29741         * lib/unictype/categ_Nl.h: Likewise.
29742         * lib/unictype/categ_No.h: Likewise.
29743         * lib/unictype/categ_P.h: Likewise.
29744         * lib/unictype/categ_Pc.h: Likewise.
29745         * lib/unictype/categ_Pd.h: Likewise.
29746         * lib/unictype/categ_Pe.h: Likewise.
29747         * lib/unictype/categ_Pf.h: Likewise.
29748         * lib/unictype/categ_Pi.h: Likewise.
29749         * lib/unictype/categ_Po.h: Likewise.
29750         * lib/unictype/categ_Ps.h: Likewise.
29751         * lib/unictype/categ_S.h: Likewise.
29752         * lib/unictype/categ_Sc.h: Likewise.
29753         * lib/unictype/categ_Sk.h: Likewise.
29754         * lib/unictype/categ_Sm.h: Likewise.
29755         * lib/unictype/categ_So.h: Likewise.
29756         * lib/unictype/categ_Z.h: Likewise.
29757         * lib/unictype/categ_Zl.h: Likewise.
29758         * lib/unictype/categ_Zp.h: Likewise.
29759         * lib/unictype/categ_Zs.h: Likewise.
29760         * lib/unictype/categ_of.h: Likewise.
29761         * lib/unictype/combining.h: Likewise.
29762         * lib/unictype/ctype_alnum.h: Likewise.
29763         * lib/unictype/ctype_alpha.h: Likewise.
29764         * lib/unictype/ctype_blank.h: Likewise.
29765         * lib/unictype/ctype_cntrl.h: Likewise.
29766         * lib/unictype/ctype_digit.h: Likewise.
29767         * lib/unictype/ctype_graph.h: Likewise.
29768         * lib/unictype/ctype_lower.h: Likewise.
29769         * lib/unictype/ctype_print.h: Likewise.
29770         * lib/unictype/ctype_punct.h: Likewise.
29771         * lib/unictype/ctype_space.h: Likewise.
29772         * lib/unictype/ctype_upper.h: Likewise.
29773         * lib/unictype/ctype_xdigit.h: Likewise.
29774         * lib/unictype/decdigit.h: Likewise.
29775         * lib/unictype/digit.h: Likewise.
29776         * lib/unictype/mirror.h: Likewise.
29777         * lib/unictype/numeric.h: Likewise.
29778         * lib/unictype/pr_alphabetic.h: Likewise.
29779         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29780         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29781         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29782         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29783         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29784         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29785         * lib/unictype/pr_bidi_control.h: Likewise.
29786         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29787         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29788         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29789         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29790         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29791         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29792         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29793         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29794         * lib/unictype/pr_bidi_pdf.h: Likewise.
29795         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29796         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29797         * lib/unictype/pr_combining.h: Likewise.
29798         * lib/unictype/pr_composite.h: Likewise.
29799         * lib/unictype/pr_currency_symbol.h: Likewise.
29800         * lib/unictype/pr_dash.h: Likewise.
29801         * lib/unictype/pr_decimal_digit.h: Likewise.
29802         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29803         * lib/unictype/pr_deprecated.h: Likewise.
29804         * lib/unictype/pr_diacritic.h: Likewise.
29805         * lib/unictype/pr_extender.h: Likewise.
29806         * lib/unictype/pr_format_control.h: Likewise.
29807         * lib/unictype/pr_grapheme_base.h: Likewise.
29808         * lib/unictype/pr_grapheme_extend.h: Likewise.
29809         * lib/unictype/pr_grapheme_link.h: Likewise.
29810         * lib/unictype/pr_hex_digit.h: Likewise.
29811         * lib/unictype/pr_hyphen.h: Likewise.
29812         * lib/unictype/pr_id_continue.h: Likewise.
29813         * lib/unictype/pr_id_start.h: Likewise.
29814         * lib/unictype/pr_ideographic.h: Likewise.
29815         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29816         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29817         * lib/unictype/pr_ignorable_control.h: Likewise.
29818         * lib/unictype/pr_iso_control.h: Likewise.
29819         * lib/unictype/pr_join_control.h: Likewise.
29820         * lib/unictype/pr_left_of_pair.h: Likewise.
29821         * lib/unictype/pr_line_separator.h: Likewise.
29822         * lib/unictype/pr_logical_order_exception.h: Likewise.
29823         * lib/unictype/pr_lowercase.h: Likewise.
29824         * lib/unictype/pr_math.h: Likewise.
29825         * lib/unictype/pr_non_break.h: Likewise.
29826         * lib/unictype/pr_not_a_character.h: Likewise.
29827         * lib/unictype/pr_numeric.h: Likewise.
29828         * lib/unictype/pr_other_alphabetic.h: Likewise.
29829         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29830         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29831         * lib/unictype/pr_other_id_continue.h: Likewise.
29832         * lib/unictype/pr_other_id_start.h: Likewise.
29833         * lib/unictype/pr_other_lowercase.h: Likewise.
29834         * lib/unictype/pr_other_math.h: Likewise.
29835         * lib/unictype/pr_other_uppercase.h: Likewise.
29836         * lib/unictype/pr_paired_punctuation.h: Likewise.
29837         * lib/unictype/pr_paragraph_separator.h: Likewise.
29838         * lib/unictype/pr_pattern_syntax.h: Likewise.
29839         * lib/unictype/pr_pattern_white_space.h: Likewise.
29840         * lib/unictype/pr_private_use.h: Likewise.
29841         * lib/unictype/pr_punctuation.h: Likewise.
29842         * lib/unictype/pr_quotation_mark.h: Likewise.
29843         * lib/unictype/pr_radical.h: Likewise.
29844         * lib/unictype/pr_sentence_terminal.h: Likewise.
29845         * lib/unictype/pr_soft_dotted.h: Likewise.
29846         * lib/unictype/pr_space.h: Likewise.
29847         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29848         * lib/unictype/pr_titlecase.h: Likewise.
29849         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29850         * lib/unictype/pr_unified_ideograph.h: Likewise.
29851         * lib/unictype/pr_uppercase.h: Likewise.
29852         * lib/unictype/pr_variation_selector.h: Likewise.
29853         * lib/unictype/pr_white_space.h: Likewise.
29854         * lib/unictype/pr_xid_continue.h: Likewise.
29855         * lib/unictype/pr_xid_start.h: Likewise.
29856         * lib/unictype/pr_zero_width.h: Likewise.
29857         * lib/unictype/scripts.h: Likewise.
29858         * lib/unictype/scripts_byname.gperf: Likewise.
29859         * lib/unictype/sy_c_ident.h: Likewise.
29860         * lib/unictype/sy_c_whitespace.h: Likewise.
29861         * lib/unictype/sy_java_ident.h: Likewise.
29862         * lib/unictype/sy_java_whitespace.h: Likewise.
29863
29864         * lib/unictype/Makefile: New file.
29865         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29866         glibc.
29867         * lib/unictype/3level.h: New file, copied from glibc.
29868         * lib/unictype/3levelbit.h: New file.
29869
29870 2007-11-11  Bruno Haible  <bruno@clisp.org>
29871
29872         * modules/gperf: New file.
29873         * modules/iconv_open (Depends-on): Add it.
29874         (Makefile.am): Remove the GPERF definition.
29875
29876 2007-11-11  Bruno Haible  <bruno@clisp.org>
29877
29878         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29879         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29880
29881 2007-11-11  Bruno Haible  <bruno@clisp.org>
29882
29883         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29884         (usage): Remove function.
29885
29886 2007-11-11  Bruno Haible  <bruno@clisp.org>
29887
29888         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29889         gl_FUNC_CEILF_LIBS.
29890         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29891         gl_FUNC_CEIL_LIBS.
29892         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29893         gl_FUNC_CEILL_LIBS.
29894         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29895         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29896         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29897
29898 2007-11-11  Bruno Haible  <bruno@clisp.org>
29899
29900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29901         roundf were declared but do not exist on functions.
29902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29903         roundl were declared but do not exist on functions.
29904         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29905         HAVE_FLOORL_AND_CEILL, respectively.
29906         Needed for Sun C on Solaris 10.
29907
29908 2007-11-11  Bruno Haible  <bruno@clisp.org>
29909
29910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29911         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29912         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29913         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29914         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29915         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29916         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29917         HAVE_DECL_ROUNDF.
29918         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29919         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29921         of HAVE_DECL_ROUND*.
29922         * modules/math (Makefile.am): Update.
29923
29924 2007-11-10  Bruno Haible  <bruno@clisp.org>
29925
29926         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29927         ptrdiff_t as m4/intl.m4.
29928
29929 2007-11-10  Jim Meyering  <meyering@redhat.com>
29930
29931         Avoid link failure for the argmatch test.
29932         * tests/test-argmatch.c (usage): Define function to avoid a link
29933         failure: argmatch_die requires a usage function.
29934
29935 2007-11-09  Bruno Haible  <bruno@clisp.org>
29936
29937         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29938         * doc/functions/vsnprintf.texi: Likewise.
29939         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29940         with a size argument < 2.
29941
29942 2007-11-09  Bruno Haible  <bruno@clisp.org>
29943
29944         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29945         buffer. Fixes an inefficiency introduced on 2007-11-03.
29946
29947 2007-11-09  Bruno Haible  <bruno@clisp.org>
29948
29949         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29950         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29951
29952 2007-11-08  Jim Meyering  <meyering@redhat.com>
29953
29954         Change cache variable name prefix "jm_" to "gl_" everywhere.
29955         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29956         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29957         * m4/uptime.m4: s/gl_/jm_/
29958
29959 2007-11-07  Bruno Haible  <bruno@clisp.org>
29960
29961         Update to GNU gettext 0.17.
29962         * m4/intl.m4: Update to GNU gettext 0.17.
29963         * m4/po.m4: Likewise.
29964         * modules/gettext (Files): Remove m4/ulonglong.m4.
29965         (configure.ac): Require gettext infrastructure from version 0.17.
29966
29967 2007-11-06  Bruno Haible  <bruno@clisp.org>
29968
29969         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29970         symbolic values are not defined in a public header.
29971         * lib/freadable.c (freadable) [QNX]: Likewise.
29972         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29973         * lib/freading.c (freading) [QNX]: Likewise.
29974         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29975         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29976         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29977         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29978         Reported by Alain Magloire.
29979
29980         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29981
29982 2007-11-05  Bruno Haible  <bruno@clisp.org>
29983
29984         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29985         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29986         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29987         Reported by Eric Blake.
29988
29989 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29990             Bruno Haible  <bruno@clisp.org>
29991
29992         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29993         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29994         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29995         (malloc): Undefine also before including <stdlib.h>.
29996         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29997         Needed on OSF/1 4.0.
29998
29999 2007-11-05  Jim Meyering  <meyering@redhat.com>
30000
30001         git-version-gen: sync from coreutils.
30002         * build-aux/git-version-gen: Add comments.
30003         Change the first '-' to '.' in the snapshot version string,
30004         e.g., 6.9-377-08144 -> 6.9.377-08144
30005         Remove first parameter.
30006         Don't declare a version "-dirty" merely because a time
30007         stamp has changed.
30008
30009 2007-11-04  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/lock.h: Protect all macro definitions containing an 'if'
30012         statement through a "do { ... } while (0)".
30013         * lib/tls.h: Likewise.
30014
30015 2007-11-04  Bruno Haible  <bruno@clisp.org>
30016
30017         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30018
30019 2007-11-04  Bruno Haible  <bruno@clisp.org>
30020
30021         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30022         * modules/fprintf-posix (Depends-on): Add nocrash.
30023         * modules/snprintf-posix (Depends-on): Likewise.
30024         * modules/sprintf-posix (Depends-on): Likewise.
30025         * modules/vasnprintf-posix (Depends-on): Likewise.
30026         * modules/vasprintf-posix (Depends-on): Likewise.
30027         * modules/vfprintf-posix (Depends-on): Likewise.
30028         * modules/vsnprintf-posix (Depends-on): Likewise.
30029         * modules/vsprintf-posix (Depends-on): Likewise.
30030         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30031         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30032         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30033         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30034         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30035         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30036         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30037
30038 2007-11-04  Bruno Haible  <bruno@clisp.org>
30039
30040         * modules/nocrash: New file.
30041         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30042         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30043
30044 2007-11-04  Bruno Haible  <bruno@clisp.org>
30045
30046         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30047         precision handling.
30048         * tests/test-vasprintf-posix.c (test_function): Likewise.
30049         * tests/test-snprintf-posix.h (test_function): Likewise.
30050         * tests/test-sprintf-posix.h (test_function): Likewise.
30051
30052         Fix *printf behaviour for large precisions on mingw and BeOS.
30053         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30054         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30056         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30058         gl_PRINTF_PRECISION and test its result. Invoke
30059         gl_PREREQ_VASNPRINTF_PRECISION.
30060         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30061         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30064         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30067         * doc/functions/fprintf.texi: Update.
30068         * doc/functions/printf.texi: Update.
30069         * doc/functions/snprintf.texi: Update.
30070         * doc/functions/sprintf.texi: Update.
30071         * doc/functions/vfprintf.texi: Update.
30072         * doc/functions/vprintf.texi: Update.
30073         * doc/functions/vsnprintf.texi: Update.
30074         * doc/functions/vsprintf.texi: Update.
30075
30076 2007-11-04  Bruno Haible  <bruno@clisp.org>
30077
30078         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30079
30080 2007-11-04  Bruno Haible  <bruno@clisp.org>
30081
30082         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30083         Reported by Sylvain Beucler <beuc@gnu.org>.
30084
30085 2007-11-03  Bruno Haible  <bruno@clisp.org>
30086
30087         * tests/test-fprintf-posix2.sh: New file.
30088         * tests/test-fprintf-posix2.c: New file.
30089         * modules/fprintf-posix-tests (Files): Add them.
30090         (TESTS): Add test-fprintf-posix2.sh.
30091         (configure.ac): Check for getrlimit and setrlimit.
30092         (check_PROGRAMS): Add test-fprintf-posix2.
30093
30094         * tests/test-printf-posix2.sh: New file.
30095         * tests/test-printf-posix2.c: New file.
30096         * modules/printf-posix-tests (Files): Add them.
30097         (TESTS): Add test-printf-posix2.sh.
30098         (configure.ac): Check for getrlimit and setrlimit.
30099         (check_PROGRAMS): Add test-printf-posix2.
30100
30101         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30102         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30103         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30104         (decode_double): New function, copied from decode_long_double.
30105         (scale10_round_decimal_decoded): New function, extracted from
30106         scale10_round_decimal_long_double.
30107         (scale10_round_decimal_long_double): Use it.
30108         (scale10_round_decimal_double): New function.
30109         (floorlog10): New function.
30110         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30112         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30113         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30114         gl_PRINTF_ENOMEM and test its result. Invoke
30115         gl_PREREQ_VASNPRINTF_ENOMEM.
30116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30120         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30123         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30124         * modules/snprintf-posix (Depends-on): Likewise.
30125         * modules/sprintf-posix (Depends-on): Likewise.
30126         * modules/vasnprintf-posix (Depends-on): Likewise.
30127         * modules/vasprintf-posix (Depends-on): Likewise.
30128         * modules/vfprintf-posix (Depends-on): Likewise.
30129         * modules/vsnprintf-posix (Depends-on): Likewise.
30130         * modules/vsprintf-posix (Depends-on): Likewise.
30131         * doc/functions/fprintf.texi: Update.
30132         * doc/functions/printf.texi: Update.
30133         * doc/functions/snprintf.texi: Update.
30134         * doc/functions/sprintf.texi: Update.
30135         * doc/functions/vfprintf.texi: Update.
30136         * doc/functions/vprintf.texi: Update.
30137         * doc/functions/vsnprintf.texi: Update.
30138         * doc/functions/vsprintf.texi: Update.
30139
30140 2007-11-03  Bruno Haible  <bruno@clisp.org>
30141
30142         * modules/frexp-nolibm-tests: New file.
30143
30144         * modules/frexp-nolibm: New file.
30145         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30146
30147 2007-11-03  Bruno Haible  <bruno@clisp.org>
30148
30149         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30150         value is C99 compliant.
30151         Needed for OSF/1 5.1.
30152
30153 2007-11-03  Bruno Haible  <bruno@clisp.org>
30154
30155         Fix out-of-memory handling of vasnprintf.
30156         * lib/printf-parse.c: Include <errno.h>.
30157         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30158         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30159         is already set.
30160
30161 2007-11-02  Eric Blake  <ebb9@byu.net>
30162
30163         Fix tests on cygwin.
30164         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30165
30166 2007-11-01  Bruno Haible  <bruno@clisp.org>
30167
30168         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30169         warning.
30170         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30171         needed for POSIX compatibility.
30172
30173 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30174
30175         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30176         for compatibility with GNU.
30177
30178 2007-11-01  Bruno Haible  <bruno@clisp.org>
30179
30180         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30181         (putenv): Renamed from rpl_putenv. Change argument type from
30182         'const char *' to 'char *'.
30183         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30184         of defining putenv in config.h, just set REPLACE_PUTENV.
30185         * modules/putenv (Depends-on): Add stdlib.
30186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30187         (Include): Use <stdlib.h>.
30188         * lib/stdlib.in.h (putenv): New declaration.
30189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30190         REPLACE_PUTENV.
30191         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30192         REPLACE_PUTENV.
30193         Needed for MacOS X 10.5.0.
30194         Reported by Peter O'Gorman <peter@pogma.com>.
30195
30196 2007-11-01  Jim Meyering  <meyering@redhat.com>
30197
30198         Treat an empty date string exactly like "0".
30199         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30200         if the remaining date string (to be parsed) is empty, use "0".
30201         Reported by Mischa Molhoek and discussed in this thread:
30202         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30203
30204 2007-10-31  Bruno Haible  <bruno@clisp.org>
30205
30206         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30207         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30208         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30209         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30210         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30211         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30212
30213 2007-10-31  Bruno Haible  <bruno@clisp.org>
30214
30215         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30216         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30217         (AC_TYPE_LONG_LONG_INT): Use it.
30218         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30219         it as well.
30220         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30221         to m4/longlong.m4.
30222         * modules/stdint (Files): Remove m4/ulonglong.m4.
30223         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30224         m4/ulonglong.m4.
30225         * modules/strtoumax (Files): Likewise.
30226
30227 2007-10-30  Bruno Haible  <bruno@clisp.org>
30228
30229         * modules/xvasprintf-posix: New file.
30230         Suggested by Eric Blake.
30231
30232 2007-10-30  Bruno Haible  <bruno@clisp.org>
30233
30234         * modules/xprintf-posix-tests: New file.
30235         * tests/test-xprintf-posix.sh: New file.
30236         * tests/test-xprintf-posix.c: New file.
30237         * tests/test-xfprintf-posix.c: New file.
30238
30239         * modules/xprintf-posix: New file.
30240
30241 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30242
30243         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30244         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30245         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30246
30247 2007-10-29  Bruno Haible  <bruno@clisp.org>
30248
30249         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30250         contain the special marker '_cv_'.
30251         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30252         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30253         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30254         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30255         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30256         Reported by Ralf Wildenhues.
30257
30258 2007-10-29  Bruno Haible  <bruno@clisp.org>
30259
30260         * gnulib-tool (func_import): When --lgpl is not specified, set
30261         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30262         GPLv3.
30263         Reported by Simon Josefsson.
30264
30265 2007-10-28  Bruno Haible  <bruno@clisp.org>
30266
30267         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30268         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30269         HAVE_DECL_ISFINITE.
30270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30271         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30272         HAVE_DECL_ISFINITE.
30273
30274 2007-10-28  Bruno Haible  <bruno@clisp.org>
30275
30276         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30277         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30278
30279 2007-10-28  Bruno Haible  <bruno@clisp.org>
30280
30281         Fix link errors with Sun C 5.0 on Solaris 10.
30282         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30283         function is declared but not present in the compiler's libm.
30284         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30285         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30286         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30287         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30288         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30289         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30290         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30292         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30293         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30294         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30295         HAVE_DECL_FLOORL.
30296
30297 2007-10-28  Bruno Haible  <bruno@clisp.org>
30298
30299         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30300         gl_FUNC_FLOORL. Cache the result.
30301         (gl_FUNC_FLOORL): Use it.
30302         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30303         gl_FUNC_CEILL. Cache the result.
30304         (gl_FUNC_CEILL): Use it.
30305
30306         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30307         gl_FUNC_FLOOR. Cache the result.
30308         (gl_FUNC_FLOOR): Use it.
30309         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30310         gl_FUNC_CEIL. Cache the result.
30311         (gl_FUNC_CEIL): Use it.
30312
30313         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30314         gl_FUNC_FLOORF. Cache the result.
30315         (gl_FUNC_FLOORF): Use it.
30316         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30317         gl_FUNC_CEILF. Cache the result.
30318         (gl_FUNC_CEILF): Use it.
30319
30320 2007-10-28  Bruno Haible  <bruno@clisp.org>
30321
30322         * gnulib-tool: Allow specifying the LGPL version number through
30323         --lgpl=2 or --lgpl=3.
30324         (func_usage): Document --lgpl with argument.
30325         Handle --lgpl=... arguments.
30326         (func_import): Recognize also gl_LGPL calls with an argument. When
30327         --lgpl=2 is used and the module's license is just LGPL, report an
30328         error. Set sed_transform_lib_file according to the lgpl variable. In
30329         the generated files, use --lgpl or gl_LGPL invocations with argument,
30330         if necessary.
30331         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30332         an LGPv2+ license.
30333         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30334         gl_LGPL macro.
30335
30336 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30337             Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30340         (u16_uctomb_aux): Likewise.
30341         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30342         !HAVE_INLINE.
30343         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30344
30345 2007-10-28  Bruno Haible  <bruno@clisp.org>
30346
30347         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30348         Invoke AM_GETTEXT_OPTION if it exists.
30349         * modules/vasprintf: Likewise.
30350         * modules/verror: Likewise.
30351         * modules/xprintf: Likewise.
30352         * modules/xvasprintf: Likewise.
30353
30354 2007-10-27  Ben Pfaff  <blp@gnu.org>
30355
30356         * lib/math.in.h: Define isfinite macro and prototypes for
30357         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30358         implementations.
30359         * m4/math_h.m4: New substitutions for isfinite module.
30360         * lib/isfinite.c: New file.
30361         * m4/isfinite.m4: New file.
30362         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30363         * modules/isfinite: New file.
30364         * modules/isfinite-tests: New file.
30365         * tests/tests-isfinite.c: New file.
30366         * doc/functions/isfinite.texi: Mention isfinite module.
30367         * MODULES.html.sh: Mention new module.
30368
30369 2007-10-27  Ben Pfaff  <blp@gnu.org>
30370
30371         Ralf Wildenhues reported that Tru64 4.0D declares the round
30372         functions but does not have definitions.
30373         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30374         cannot be found in any library, set the output variable to
30375         "missing" instead of "".
30376         * m4/round.m4: Also use our substitute if we cannot find round in
30377         any library, even if it is declared.
30378         * m4/roundf.m4: Likewise for roundf.
30379         * m4/roundl.m4: Likewise for roundl.
30380         * lib/math.in.h: Undefine roundf, round, roundl before defining
30381         their replacements, to allow for hypothetical systems where these
30382         may be defined as macros but not available in libraries.
30383
30384 2007-10-27  Bruno Haible  <bruno@clisp.org>
30385
30386         * doc/gnulib.texi: Invoke @firstparagraphindent.
30387         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30388         changes in gnulib.
30389         (Source changes): New section.
30390
30391 2007-10-26  Bruno Haible  <bruno@clisp.org>
30392
30393         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30394         borrowed from autoconf.
30395
30396 2007-10-26  Bruno Haible  <bruno@clisp.org>
30397
30398         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30399         strerror returned the empty string. Needed on HP-UX 11.00.
30400
30401 2007-10-24  Micah Cowan  <micah@cowan.name>
30402
30403         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30404         * build-aux/bootstrap: Remove support for now-unnecessary option,
30405         --cvs-user, and envvars CVS_USER, CVS_RSH.
30406
30407 2007-10-24  Jim Meyering  <meyering@redhat.com>
30408
30409         Avoid diagnostics from sha1sum when there is no cached checksum.
30410         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30411         if the po.s1 file hasn't been created yet.
30412
30413         * build-aux/bootstrap: Sync from coreutils:
30414         2007-10-24  Jim Meyering  <meyering@redhat.com>
30415         Get gnulib from the git repository, not from an obsolete cvs one.
30416         * build-aux/bootstrap: Suggestion from Micah Cowan.
30417         2007-10-04  Jim Meyering  <jim@meyering.net>
30418         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30419         (update_po_files): Work also when there are no .po files in po/.
30420
30421 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30422
30423         * README: Append ".git" to git and cg examples.
30424         Problem reported by Benoit Sigoure.
30425
30426 2007-10-23  Micah Cowan  <micah@cowan.name>
30427
30428         * users.txt: Add wget.
30429
30430 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30431
30432         Fix linking of some unistdio tests on FreeBSD.
30433         * modules/unistdio/u16-vsnprintf-tests
30434         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30435         * modules/unistdio/u16-vsprintf-tests
30436         (test_u16_vsnprintf1_LDADD): Likewise.
30437         * modules/unistdio/u32-vsnprintf-tests
30438         (test_u32_vsnprintf1_LDADD): Likewise.
30439         * modules/unistdio/u32-vsprintf-tests
30440         (test_u32_vsprintf1_LDADD): Likewise.
30441         * modules/unistdio/u8-vsnprintf-tests
30442         (test_u8_vsnprintf1_LDADD): Likewise.
30443         * modules/unistdio/u8-vsprintf-tests
30444         (test_u8_vsprintf1_LDADD): Likewise.
30445         * modules/unistdio/ulc-vsnprintf-tests
30446         (test_ulc_vsnprintf1_LDADD): Likewise.
30447         * modules/unistdio/ulc-vsprintf-tests
30448         (test_ulc_vsprintf1_LDADD): Likewise.
30449
30450         Fix linking of some uniconv tests on FreeBSD.
30451         * modules/uniconv/u16-conv-from-enc-tests
30452         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30453         * modules/uniconv/u16-conv-to-enc-tests
30454         (test_u16_conv_to_enc_LDADD): Likewise.
30455         * modules/uniconv/u16-strconv-from-enc-tests
30456         (test_u16_strconv_from_enc_LDADD): Likewise.
30457         * modules/uniconv/u16-strconv-to-enc-tests
30458         (test_u16_strconv_to_enc_LDADD): Likewise.
30459         * modules/uniconv/u32-conv-from-enc-tests
30460         (test_u32_conv_from_enc_LDADD): Likewise.
30461         * modules/uniconv/u32-conv-to-enc-tests
30462         (test_u32_conv_to_enc_LDADD): Likewise.
30463         * modules/uniconv/u32-strconv-from-enc-tests
30464         (test_u32_strconv_from_enc_LDADD): Likewise.
30465         * modules/uniconv/u32-strconv-to-enc-tests
30466         (test_u32_strconv_to_enc_LDADD): Likewise.
30467         * modules/uniconv/u8-conv-from-enc-tests
30468         (test_u8_conv_from_enc_LDADD): Likewise.
30469         * modules/uniconv/u8-conv-to-enc-tests
30470         (test_u8_conv_to_enc_LDADD): Likewise.
30471         * modules/uniconv/u8-strconv-from-enc-tests
30472         (test_u8_strconv_from_enc_LDADD): Likewise.
30473         * modules/uniconv/u8-strconv-to-enc-tests
30474         (test_u8_strconv_to_enc_LDADD): Likewise.
30475
30476 2007-10-22  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30479         size.
30480
30481 2007-10-22  Eric Blake  <ebb9@byu.net>
30482
30483         Tweak x*printf documentation.
30484         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30485         variable name and comments.
30486         Suggested by Bruno Haible.
30487
30488 2007-10-22  Bruno Haible  <bruno@clisp.org>
30489
30490         * lib/acl.c (copy_acl): Fix file name in comment.
30491
30492 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30493
30494         Fix Tru64 problem with stdbool.h.
30495         * lib/stdbool.in.h (false, true):
30496         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30497         Don't declare as an enum in this situation; it runs afoul of Tru64.
30498         Problem reported by Steven M. Schweda in
30499         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30500
30501 2007-10-22  Eric Blake  <ebb9@byu.net>
30502
30503         Also wrap vf?printf.
30504         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30505         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30506         (xvprintf, xvfprintf): New functions.
30507
30508 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30509
30510         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30511         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30512
30513         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30514         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30515
30516 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30517
30518         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30519         by Bruno Haible.
30520
30521 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30522
30523         * lib/getloadavg.c
30524         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30525         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30526
30527         * tests/test-i-ring.c: Work for C89.
30528
30529 2007-10-22  Bruno Haible  <bruno@clisp.org>
30530
30531         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30532         -1u, in preprocessor expression, so that we don't test for the bug
30533         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30535
30536 2007-10-22  Eric Blake  <ebb9@byu.net>
30537
30538         * tests/test-yesno.sh: Silence stderr during test.
30539
30540 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30541
30542         * modules/crypto/gc-camellia: New file.
30543
30544         * m4/gc-camellia.m4: New file.
30545
30546         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30547
30548         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30549
30550 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30551
30552         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30553         --help to stdout.  Reported by sms@antinode.org (Steven
30554         M. Schweda).
30555
30556 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30557
30558         * users.txt: Fix link to libksba.
30559
30560 2007-10-21  Ben Pfaff  <blp@gnu.org>
30561
30562         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30563         round.c roundf implementation that depends on floorf and ceilf to
30564         be tested unconditionally.
30565
30566 2007-10-21  Ben Pfaff  <blp@gnu.org>
30567
30568         * m4/check-libm-func.m4: Removed.
30569         * m4/check-math-lib.m4: New file.
30570         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30571         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30572         definition and lack of AC_LIBOBJ([roundf]).
30573         * m4/roundl.m4: Ditto, and similarly for roundl.
30574         * modules/round: Reference new m4 file.
30575         * modules/roundf: Ditto.
30576         * modules/roundl: Ditto.
30577         * tests/test-round2.c (main): Use ROUND instead of round.
30578         Bug report from Bruno Haible.
30579
30580 2007-10-21  Bruno Haible  <bruno@clisp.org>
30581
30582         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30583         context.
30584
30585 2007-10-21  Bruno Haible  <bruno@clisp.org>
30586
30587         * tests/test-wcwidth.c (main): Allow negative result for some control
30588         characters.
30589
30590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30591         Needed on OSF/1 5.1.
30592
30593 2007-10-21  Bruno Haible  <bruno@clisp.org>
30594
30595         * tests/test-floorf1.c: Include isnanf.h.
30596         (main): Use isnanf() instead of isnan().
30597         * tests/test-ceilf1.c: Include isnanf.h.
30598         (main): Use isnanf() instead of isnan().
30599         * tests/test-truncf1.c: Include isnanf.h.
30600         (main): Use isnanf() instead of isnan().
30601         * tests/test-roundf1.c: Include isnanf.h.
30602         (main): Use isnanf() instead of isnan().
30603
30604 2007-10-21  Eric Blake  <ebb9@byu.net>
30605
30606         * users.txt: Update URL for m4.
30607
30608 2007-10-21  Bruno Haible  <bruno@clisp.org>
30609
30610         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30611
30612 2007-10-21  Bruno Haible  <bruno@clisp.org>
30613
30614         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30615         Git's management files if the CVS files are not present.
30616
30617 2007-10-20  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30620         gcc-3.4.x.
30621
30622 2007-10-20  Ben Pfaff  <blp@gnu.org>
30623
30624         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30625         implementations.
30626         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30627         * lib/round.c: New file.
30628         * lib/roundf.c: New file.
30629         * lib/roundl.c: New file.
30630         * m4/round.m4: New file.
30631         * m4/roundf.m4: New file.
30632         * m4/roundl.m4: New file.
30633         * m4/check-libm-func-m4: New file.
30634         * modules/math: Replace round, roundf, roundl related @VARS@ in
30635         math.in.h.
30636         * modules/round: New file.
30637         * modules/round-tests: New file.
30638         * modules/roundf: New file.
30639         * modules/roundf-tests: New file.
30640         * modules/roundl: New file.
30641         * modules/roundl-tests: New file.
30642         * tests/test-round1.c: New file.
30643         * tests/test-round2.c: New file.
30644         * tests/test-roundf1.c: New file.
30645         * tests/test-roundf2.c: New file.
30646         * tests/test-roundl.c: New file.
30647         * doc/functions/round.texi: Mention round module.
30648         * doc/functions/roundf.texi: Mention roundf module.
30649         * doc/functions/roundl.texi: Mention roundl module.
30650         * MODULES.html.sh: Mention new modules.
30651         Thanks to Bruno Haible for suggestions.
30652
30653 2007-10-20  Jim Meyering  <meyering@redhat.com>
30654
30655         * lib/xprintf.c: Include <config.h> unconditionally.
30656
30657         Change xprintf's license to GPL.
30658         * modules/xprintf (License): s/LGPL/GPL/, since this module
30659         depends on modules (exit and exitfail) which are GPL.
30660         Suggestion from Bruno Haible.
30661
30662         xprintf fixes.
30663         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30664         Use a clearer diagnostic.
30665         Patch from Bruno Haible.
30666
30667 2007-10-20  Bruno Haible  <bruno@clisp.org>
30668
30669         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30670         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30672
30673 2007-10-20  Bruno Haible  <bruno@clisp.org>
30674
30675         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30676         precision in the comparison result > x - 1 or similar.
30677         * tests/test-ceilf2.c (correct_result_p): Likewise.
30678         * tests/test-truncf2.c (correct_result_p): Likewise.
30679         * tests/test-trunc2.c (correct_result_p): Likewise.
30680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30681
30682 2007-10-20  Bruno Haible  <bruno@clisp.org>
30683
30684         * modules/ceil: New file.
30685         * m4/ceil.m4: New file.
30686         * doc/functions/ceil.texi: Mention the 'ceil' module.
30687
30688 2007-10-20  Bruno Haible  <bruno@clisp.org>
30689
30690         * modules/floor: New file.
30691         * m4/floor.m4: New file.
30692         * doc/functions/floor.texi: Mention the 'floor' module.
30693
30694 2007-10-20  Bruno Haible  <bruno@clisp.org>
30695
30696         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30697         of %a.
30698         * modules/floorf-tests (Depends-on): Likewise.
30699         * modules/truncf-tests (Depends-on): Likewise.
30700         * modules/trunc-tests (Depends-on): Likewise.
30701         Reported by Ben Pfaff.
30702
30703 2007-10-19  Jim Meyering  <meyering@redhat.com>
30704
30705         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30706         Don't bother testing specific errno values.  Just test ferror.
30707
30708         New module: xprintf
30709         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30710
30711 2007-10-19  Bruno Haible  <bruno@clisp.org>
30712
30713         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30714         syntax.
30715         * modules/javaexec (Makefile.am): Likewise.
30716         * modules/relocatable-prog (Makefile.am): Likewise.
30717         Suggested by Jim Meyering.
30718
30719 2007-10-18  Bruno Haible  <bruno@clisp.org>
30720
30721         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30722         Reported by Jim Meyering.
30723
30724 2007-10-18  Eric Blake  <ebb9@byu.net>
30725
30726         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30727
30728 2007-10-18  Bruno Haible  <bruno@clisp.org>
30729
30730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30731         the format string into writable memory. Needed in Fortify conditions.
30732
30733 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30734             Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30737         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30738         * modules/trim (Depends-on): Add mbchar.
30739         (configure.ac): Add gl_FUNC_MBRTOWC.
30740         (Makefile.am): Augment lib_SOURCES.
30741
30742 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         Modify glob.c to use fstatat and dirfd, to simplify it.
30745         Suggested by Eric Blake.
30746         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30747         Don't include <stdbool.h>; not used.
30748         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30749         (link_exists_p): Simplify implementation, since we can now assume
30750         dirfd and fstatat.
30751         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30752
30753 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30754
30755         * gnulib-tool (func_get_dependencies): Fix sed script to
30756         match only tests.
30757
30758 2007-10-17  Bruno Haible  <bruno@clisp.org>
30759
30760         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30761         allow locale names without encoding suffix.
30762         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30764
30765 2007-10-16  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30768         * lib/getgroups.c (getgroups): Likewise.
30769         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30770
30771 2007-10-16  Bruno Haible  <bruno@clisp.org>
30772
30773         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30774         * modules/malloc-posix (License): Likewise.
30775         * modules/realloc-posix (License): Likewise.
30776         * modules/calloc-posix (License): Likewise.
30777         * modules/intprops (License): Change from GPL to LGPL, with
30778         Paul Eggert's approval.
30779
30780 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30781
30782         Merge glibc changes into lib/glob.c.
30783
30784         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30785         2007-10-15 04:59:03 UTC.  Here are the changes:
30786
30787         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30788
30789         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30790
30791         * lib/glob.c: Add some branch prediction throughout.
30792
30793         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30794
30795         [BZ #5103]
30796         * lib/glob.c (glob): Recognize patterns starting \/.
30797
30798         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30799
30800         [BZ #3996]
30801         * lib/glob.c (attribute_hidden): Define if not defined.
30802         (glob): Unescape dirname, filename or username when needed and not
30803         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30804         is NULL.  Handle unescaped [ in pattern without closing ].
30805         Don't pass GLOB_CHECK down to recursive glob for directories.
30806         (__glob_pattern_type): New function.
30807         (__glob_pattern_p): Implement using __glob_pattern_type.
30808         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30809         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30810         Remove unreachable code.
30811
30812         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30813
30814         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30815         explain why there are no leaks.
30816
30817         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30818
30819         [BZ #3253]
30820         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30821         time, rather allocate increasingly bigger arrays of pointers, if
30822         possible with alloca, if too large with malloc.
30823
30824 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30825
30826         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30827         Problem reported by H.Merijn Brand in
30828         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30829         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30830         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30831
30832 2007-10-15  Bruno Haible  <bruno@clisp.org>
30833
30834         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30835         with explicit rpl_ prefix.
30836         * lib/fopen.c (fopen): Likewise.
30837         * lib/freopen.c (freopen): Likewise.
30838         * lib/iconv.c (iconv): Likewise.
30839         * lib/iconv_close.c (iconv_close): Likewise.
30840
30841 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30842
30843         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30844
30845 2007-10-15  Bruno Haible  <bruno@clisp.org>
30846
30847         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30848         <stddef.h> instead of <stdlib.h> since we only need NULL.
30849         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30850
30851 2007-10-15  Bruno Haible  <bruno@clisp.org>
30852
30853         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30854         Replace paragraph talking about LIBOBJS.
30855         Reported by Colin Watson <cjwatson@debian.org>.
30856
30857 2007-10-15  Bruno Haible  <bruno@clisp.org>
30858
30859         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30860         <stdlib.h> before using NULL.
30861
30862 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30863
30864         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30865         Reported by Albert Chin <china@thewrittenword.com>.
30866
30867 2007-10-14  Bruno Haible  <bruno@clisp.org>
30868
30869         * modules/iconv_open-utf-tests: New file.
30870         * tests/test-iconv-utf.c: New file.
30871
30872         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30873         * modules/iconv_open-utf: New file.
30874         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30875         (iconv, iconv_close): New declarations.
30876         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30877         be defined.
30878         (iconv_open): Add special handling of conversion between UTF-8 and
30879         UTF-{16,32}{BE,LE}.
30880         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30881         * lib/iconv_close.c: New file.
30882         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30883         gl_FUNC_ICONV_OPEN.
30884         (gl_FUNC_ICONV_OPEN): Use it.
30885         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30886         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30887         and REPLACE_ICONV_UTF.
30888         * modules/iconv_open (Depends-on): Add c-strcase.
30889         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30890         ICONV_CONST.
30891         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30892
30893 2007-10-13  Albert Chin  <china@thewrittenword.com>
30894             Bruno Haible  <bruno@clisp.org>
30895
30896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30897         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30898
30899 2007-10-13  Bruno Haible  <bruno@clisp.org>
30900
30901         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30902         defined, use the ISO C99 inline semantics.
30903         * lib/argp.h (ARGP_EI): Likewise.
30904
30905 2007-10-13  Bruno Haible  <bruno@clisp.org>
30906
30907         Handle 'inline' change in gcc 4.3.0.
30908         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30909         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30910         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30911         argp_fmtstream_point): Disable 'extern' declaration if the function
30912         definition is going to be provided inline.
30913         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30914         semantics, not the ISO C99 inline semantics.
30915         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30916         'extern' declaration if the function definition is going to be provided
30917         inline.
30918         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30919         the GNU C inline semantics, not the ISO C99 inline semantics. With
30920         GCC 4.2, avoid a warning.
30921
30922 2007-10-13  Bruno Haible  <bruno@clisp.org>
30923
30924         * lib/freading.h (freading): Enable the use of __freading for
30925         glibc >= 2.7.
30926         * lib/freading.c (freading): Likewise.
30927
30928 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30929
30930         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30931         "warning: C99 inline functions are not supported; using GNU89".
30932
30933 2007-10-12  Bruno Haible  <bruno@clisp.org>
30934
30935         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30936         of 2.
30937         * tests/test-ceilf2.c: New file.
30938         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30939
30940         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30941         * modules/ceilf-tests: Update.
30942
30943 2007-10-12  Bruno Haible  <bruno@clisp.org>
30944
30945         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30946         of 2.
30947         * tests/test-floorf2.c: New file.
30948         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30949
30950         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30951         * modules/floorf-tests: Update.
30952
30953 2007-10-12  Bruno Haible  <bruno@clisp.org>
30954
30955         * tests/test-trunc2.c: New file.
30956         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30957
30958         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30959         * modules/trunc-tests: Update.
30960
30961 2007-10-12  Bruno Haible  <bruno@clisp.org>
30962
30963         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30964         of 2.
30965         * tests/test-truncf2.c: New file.
30966         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30967
30968         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30969         * modules/truncf-tests: Update.
30970
30971 2007-10-11  Eric Blake  <ebb9@byu.net>
30972
30973         Don't claim strerror is broken on Interix.
30974         * doc/functions/strerror.texi (strerror): Known broken systems are
30975         now Solaris 8, and not Interix.
30976         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30977         Interix on cross-compile.
30978         Reported by Martin Koeppe in
30979         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30980
30981 2007-10-11  Bruno Haible  <bruno@clisp.org>
30982
30983         * modules/i-ring-tests: New file.
30984         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30985         instead of assert.
30986
30987 2007-10-11  Bruno Haible  <bruno@clisp.org>
30988
30989         * modules/filenamecat-tests: New file.
30990         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30991         * lib/filenamecat.c: Remove test code.
30992
30993 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30994
30995         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30996
30997         * lib/strerror.c: Include <string.h> always, to test interface,
30998         and to remove the need for the dummy.
30999         Include intprops.h to compute width instead of doing it ourselves
31000         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31001         (strerror): Define it to return NULL if there's no system strerror.
31002         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31003         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31004         ancient pre-strerror Unix systems well any more.  Saying "unknown
31005         system error" is enough.
31006         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31007         simpler strerror.c implementation.
31008         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31009         Simplify the tests to reflect the simpler strerror implementation.
31010         * modules/strerror (Depends-on): Add intprops.
31011
31012 2007-10-09  Eric Blake  <ebb9@byu.net>
31013
31014         Silence test-fpending.
31015         * modules/fpending-tests (Files): Add wrapper script.
31016         * tests/test-fpending.sh: New file.
31017
31018 2007-10-09  Bruno Haible  <bruno@clisp.org>
31019
31020         * MODULES.html.sh (func_module): Don't create a hyperlink for
31021         function names like 'printf_frexp'.
31022         (Misc): Add crc, memxor.
31023         (Characteristics of floating types): New section.
31024         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31025         isnanf-nolibm, signbit, trunc, truncf, truncl.
31026         (Enhancements for ISO C 99 functions): New subsection Input/output.
31027         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31028         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31029         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31030         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31031         (Enhancements for POSIX:2001 functions): Add chdir-long.
31032         (File system functions): Add areadlink, chdir-safer, read-file.
31033         Remove cycle-check.
31034         (File system as inode set): New section.
31035         (Date and time): Add gethrxtime.
31036         (Multithreading): Add openmp.
31037         (Internationalization functions): Add localename.
31038         (Unicode string functions): Add unistr/u*-mbsnlen.
31039         (Support for maintaining and releasing projects): Add git-version-gen.
31040         (Lone files): Remove directories.
31041
31042 2007-10-08  Ben Pfaff  <blp@gnu.org>
31043
31044         * lib/xmalloca.h: Fix typo in comment.
31045
31046 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31047
31048         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31049         when avoiding problems with integer overflow.  Use a portable test
31050         instead.
31051
31052 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31053
31054         * modules/dummy (License): Change to LGPLv2+.
31055         * modules/float (License): Likewise
31056         * modules/realloc (License): Likewise
31057         * modules/stdlib (License): Likewise
31058
31059 2007-10-07  Bruno Haible  <bruno@clisp.org>
31060
31061         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31062         * floor.c (TWO_MANT_DIG): Likewise.
31063         * ceil.c (TWO_MANT_DIG): Likewise.
31064         Reported by Ben Pfaff.
31065
31066 2007-10-07  Bruno Haible  <bruno@clisp.org>
31067
31068         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31069         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31070         * lib/frexp.c (FUNC): Likewise.
31071         * lib/printf-frexp.h (printf_frexp): Likewise.
31072         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31073         * lib/printf-frexp.c (FUNC): Likewise.
31074         Suggested by Jim Meyering.
31075
31076 2007-10-07  Jim Meyering  <meyering@redhat.com>
31077
31078         Make xnanosleep's integer overflow test more robust.
31079         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31080         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31081
31082 2007-10-07  Bruno Haible  <bruno@clisp.org>
31083
31084         * NEWS: Mention the license change.
31085
31086         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31087         abbreviations in the modules files.
31088
31089         Change copyright notice from GPLv2+ to GPLv3+.
31090         * README: Change copyright notice.
31091         * MODULES.html.sh: Likewise.
31092         * build-aux/bootstrap.conf: Likewise.
31093         * build-aux/config.libpath: Likewise.
31094         * build-aux/csharpcomp.sh.in: Likewise.
31095         * build-aux/csharpexec.sh.in: Likewise.
31096         * build-aux/install-reloc: Likewise.
31097         * build-aux/javacomp.sh.in: Likewise.
31098         * build-aux/javaexec.sh.in: Likewise.
31099         * build-aux/ldd.sh.in: Likewise.
31100         * build-aux/reloc-ldflags: Likewise.
31101         * build-aux/relocatable.sh.in: Likewise.
31102         * build-aux/x-to-1.in: Likewise.
31103         * check-module: Likewise.
31104         * config/srclistvars.sh: Likewise.
31105         * gnulib-tool: Likewise.
31106         * lib/acl-internal.h: Likewise.
31107         * lib/acl.c: Likewise.
31108         * lib/acl.h: Likewise.
31109         * lib/acl_entries.c: Likewise.
31110         * lib/areadlink-with-size.c: Likewise.
31111         * lib/areadlink.c: Likewise.
31112         * lib/areadlink.h: Likewise.
31113         * lib/argmatch.c: Likewise.
31114         * lib/argmatch.h: Likewise.
31115         * lib/argp-ba.c: Likewise.
31116         * lib/argp-eexst.c: Likewise.
31117         * lib/argp-fmtstream.c: Likewise.
31118         * lib/argp-fmtstream.h: Likewise.
31119         * lib/argp-fs-xinl.c: Likewise.
31120         * lib/argp-help.c: Likewise.
31121         * lib/argp-namefrob.h: Likewise.
31122         * lib/argp-parse.c: Likewise.
31123         * lib/argp-pin.c: Likewise.
31124         * lib/argp-pv.c: Likewise.
31125         * lib/argp-pvh.c: Likewise.
31126         * lib/argp-xinl.c: Likewise.
31127         * lib/argp.h: Likewise.
31128         * lib/at-func.c: Likewise.
31129         * lib/atanl.c: Likewise.
31130         * lib/backupfile.c: Likewise.
31131         * lib/backupfile.h: Likewise.
31132         * lib/basename.c: Likewise.
31133         * lib/binary-io.h: Likewise.
31134         * lib/byteswap.in.h: Likewise.
31135         * lib/c-stack.c: Likewise.
31136         * lib/c-stack.h: Likewise.
31137         * lib/c-strcasestr.c: Likewise.
31138         * lib/c-strcasestr.h: Likewise.
31139         * lib/c-strstr.c: Likewise.
31140         * lib/c-strstr.h: Likewise.
31141         * lib/c-strtod.c: Likewise.
31142         * lib/calloc.c: Likewise.
31143         * lib/canon-host.c: Likewise.
31144         * lib/canon-host.h: Likewise.
31145         * lib/canonicalize-lgpl.c: Likewise.
31146         * lib/canonicalize.c: Likewise.
31147         * lib/canonicalize.h: Likewise.
31148         * lib/ceil.c: Likewise.
31149         * lib/ceilf.c: Likewise.
31150         * lib/ceill.c: Likewise.
31151         * lib/chdir-long.c: Likewise.
31152         * lib/chdir-long.h: Likewise.
31153         * lib/chdir-safer.c: Likewise.
31154         * lib/chdir-safer.h: Likewise.
31155         * lib/chown.c: Likewise.
31156         * lib/classpath.c: Likewise.
31157         * lib/classpath.h: Likewise.
31158         * lib/clean-temp.c: Likewise.
31159         * lib/clean-temp.h: Likewise.
31160         * lib/cloexec.c: Likewise.
31161         * lib/close-stream.c: Likewise.
31162         * lib/closein.c: Likewise.
31163         * lib/closein.h: Likewise.
31164         * lib/closeout.c: Likewise.
31165         * lib/closeout.h: Likewise.
31166         * lib/concat-filename.c: Likewise.
31167         * lib/copy-file.c: Likewise.
31168         * lib/copy-file.h: Likewise.
31169         * lib/count-one-bits.h: Likewise.
31170         * lib/crc.c: Likewise.
31171         * lib/crc.h: Likewise.
31172         * lib/creat-safer.c: Likewise.
31173         * lib/csharpcomp.c: Likewise.
31174         * lib/csharpcomp.h: Likewise.
31175         * lib/csharpexec.c: Likewise.
31176         * lib/csharpexec.h: Likewise.
31177         * lib/cycle-check.c: Likewise.
31178         * lib/cycle-check.h: Likewise.
31179         * lib/diacrit.c: Likewise.
31180         * lib/diacrit.h: Likewise.
31181         * lib/diffseq.h: Likewise.
31182         * lib/dirchownmod.c: Likewise.
31183         * lib/dirent.in.h: Likewise.
31184         * lib/dirfd.c: Likewise.
31185         * lib/dirfd.h: Likewise.
31186         * lib/dirname.c: Likewise.
31187         * lib/dirname.h: Likewise.
31188         * lib/dummy.c: Likewise.
31189         * lib/dup-safer.c: Likewise.
31190         * lib/dup2.c: Likewise.
31191         * lib/eealloc.h: Likewise.
31192         * lib/error.c: Likewise.
31193         * lib/error.h: Likewise.
31194         * lib/euidaccess.c: Likewise.
31195         * lib/exclude.c: Likewise.
31196         * lib/exclude.h: Likewise.
31197         * lib/execute.c: Likewise.
31198         * lib/execute.h: Likewise.
31199         * lib/exitfail.c: Likewise.
31200         * lib/exitfail.h: Likewise.
31201         * lib/expl.c: Likewise.
31202         * lib/fatal-signal.c: Likewise.
31203         * lib/fatal-signal.h: Likewise.
31204         * lib/fbufmode.c: Likewise.
31205         * lib/fbufmode.h: Likewise.
31206         * lib/fchdir.c: Likewise.
31207         * lib/fchmodat.c: Likewise.
31208         * lib/fchownat.c: Likewise.
31209         * lib/fcntl--.h: Likewise.
31210         * lib/fcntl-safer.h: Likewise.
31211         * lib/fcntl.in.h: Likewise.
31212         * lib/fd-safer.c: Likewise.
31213         * lib/fflush.c: Likewise.
31214         * lib/file-has-acl.c: Likewise.
31215         * lib/file-set.c: Likewise.
31216         * lib/file-type.c: Likewise.
31217         * lib/file-type.h: Likewise.
31218         * lib/fileblocks.c: Likewise.
31219         * lib/filemode.c: Likewise.
31220         * lib/filemode.h: Likewise.
31221         * lib/filename.h: Likewise.
31222         * lib/filenamecat.c: Likewise.
31223         * lib/filenamecat.h: Likewise.
31224         * lib/findprog.c: Likewise.
31225         * lib/findprog.h: Likewise.
31226         * lib/float.in.h: Likewise.
31227         * lib/floor.c: Likewise.
31228         * lib/floorf.c: Likewise.
31229         * lib/floorl.c: Likewise.
31230         * lib/fopen-safer.c: Likewise.
31231         * lib/fopen.c: Likewise.
31232         * lib/fpending.c: Likewise.
31233         * lib/fpending.h: Likewise.
31234         * lib/fprintf.c: Likewise.
31235         * lib/fprintftime.h: Likewise.
31236         * lib/fpucw.h: Likewise.
31237         * lib/fpurge.c: Likewise.
31238         * lib/fpurge.h: Likewise.
31239         * lib/freadable.c: Likewise.
31240         * lib/freadable.h: Likewise.
31241         * lib/freadahead.c: Likewise.
31242         * lib/freadahead.h: Likewise.
31243         * lib/freading.c: Likewise.
31244         * lib/freading.h: Likewise.
31245         * lib/free.c: Likewise.
31246         * lib/freopen.c: Likewise.
31247         * lib/frexp.c: Likewise.
31248         * lib/frexpl.c: Likewise.
31249         * lib/fseek.c: Likewise.
31250         * lib/fseterr.c: Likewise.
31251         * lib/fseterr.h: Likewise.
31252         * lib/fstatat.c: Likewise.
31253         * lib/fstrcmp.c: Likewise.
31254         * lib/fstrcmp.h: Likewise.
31255         * lib/fsusage.c: Likewise.
31256         * lib/fsusage.h: Likewise.
31257         * lib/ftell.c: Likewise.
31258         * lib/ftello.c: Likewise.
31259         * lib/fts-cycle.c: Likewise.
31260         * lib/fts.c: Likewise.
31261         * lib/fts_.h: Likewise.
31262         * lib/full-read.c: Likewise.
31263         * lib/full-read.h: Likewise.
31264         * lib/full-write.c: Likewise.
31265         * lib/full-write.h: Likewise.
31266         * lib/fwritable.c: Likewise.
31267         * lib/fwritable.h: Likewise.
31268         * lib/fwriteerror.c: Likewise.
31269         * lib/fwriteerror.h: Likewise.
31270         * lib/fwriting.c: Likewise.
31271         * lib/fwriting.h: Likewise.
31272         * lib/gcd.c: Likewise.
31273         * lib/gcd.h: Likewise.
31274         * lib/getcwd.c: Likewise.
31275         * lib/getdate.h: Likewise.
31276         * lib/getdate.y: Likewise.
31277         * lib/getdomainname.c: Likewise.
31278         * lib/getdomainname.h: Likewise.
31279         * lib/getgroups.c: Likewise.
31280         * lib/gethostname.c: Likewise.
31281         * lib/gethrxtime.c: Likewise.
31282         * lib/gethrxtime.h: Likewise.
31283         * lib/getloadavg.c: Likewise.
31284         * lib/getndelim2.c: Likewise.
31285         * lib/getndelim2.h: Likewise.
31286         * lib/getnline.c: Likewise.
31287         * lib/getnline.h: Likewise.
31288         * lib/getopt.c: Likewise.
31289         * lib/getopt.in.h: Likewise.
31290         * lib/getopt1.c: Likewise.
31291         * lib/getopt_int.h: Likewise.
31292         * lib/getpagesize.h: Likewise.
31293         * lib/getsubopt.c: Likewise.
31294         * lib/gettime.c: Likewise.
31295         * lib/getugroups.c: Likewise.
31296         * lib/getugroups.h: Likewise.
31297         * lib/getusershell.c: Likewise.
31298         * lib/gl_anyavltree_list1.h: Likewise.
31299         * lib/gl_anyavltree_list2.h: Likewise.
31300         * lib/gl_anyhash_list1.h: Likewise.
31301         * lib/gl_anyhash_list2.h: Likewise.
31302         * lib/gl_anylinked_list1.h: Likewise.
31303         * lib/gl_anylinked_list2.h: Likewise.
31304         * lib/gl_anyrbtree_list1.h: Likewise.
31305         * lib/gl_anyrbtree_list2.h: Likewise.
31306         * lib/gl_anytree_list1.h: Likewise.
31307         * lib/gl_anytree_list2.h: Likewise.
31308         * lib/gl_anytree_oset.h: Likewise.
31309         * lib/gl_anytreehash_list1.h: Likewise.
31310         * lib/gl_anytreehash_list2.h: Likewise.
31311         * lib/gl_array_list.c: Likewise.
31312         * lib/gl_array_list.h: Likewise.
31313         * lib/gl_array_oset.c: Likewise.
31314         * lib/gl_array_oset.h: Likewise.
31315         * lib/gl_avltree_list.c: Likewise.
31316         * lib/gl_avltree_list.h: Likewise.
31317         * lib/gl_avltree_oset.c: Likewise.
31318         * lib/gl_avltree_oset.h: Likewise.
31319         * lib/gl_avltreehash_list.c: Likewise.
31320         * lib/gl_avltreehash_list.h: Likewise.
31321         * lib/gl_carray_list.c: Likewise.
31322         * lib/gl_carray_list.h: Likewise.
31323         * lib/gl_linked_list.c: Likewise.
31324         * lib/gl_linked_list.h: Likewise.
31325         * lib/gl_linkedhash_list.c: Likewise.
31326         * lib/gl_linkedhash_list.h: Likewise.
31327         * lib/gl_list.c: Likewise.
31328         * lib/gl_list.h: Likewise.
31329         * lib/gl_oset.c: Likewise.
31330         * lib/gl_oset.h: Likewise.
31331         * lib/gl_rbtree_list.c: Likewise.
31332         * lib/gl_rbtree_list.h: Likewise.
31333         * lib/gl_rbtree_oset.c: Likewise.
31334         * lib/gl_rbtree_oset.h: Likewise.
31335         * lib/gl_rbtreehash_list.c: Likewise.
31336         * lib/gl_rbtreehash_list.h: Likewise.
31337         * lib/gl_sublist.c: Likewise.
31338         * lib/gl_sublist.h: Likewise.
31339         * lib/group-member.c: Likewise.
31340         * lib/group-member.h: Likewise.
31341         * lib/hard-locale.c: Likewise.
31342         * lib/hard-locale.h: Likewise.
31343         * lib/hash-pjw.c: Likewise.
31344         * lib/hash-pjw.h: Likewise.
31345         * lib/hash-triple.c: Likewise.
31346         * lib/hash.c: Likewise.
31347         * lib/hash.h: Likewise.
31348         * lib/human.c: Likewise.
31349         * lib/human.h: Likewise.
31350         * lib/i-ring.c: Likewise.
31351         * lib/i-ring.h: Likewise.
31352         * lib/idcache.c: Likewise.
31353         * lib/imaxabs.c: Likewise.
31354         * lib/imaxdiv.c: Likewise.
31355         * lib/inet_pton.c: Likewise.
31356         * lib/inet_pton.h: Likewise.
31357         * lib/intprops.h: Likewise.
31358         * lib/inttostr.c: Likewise.
31359         * lib/inttostr.h: Likewise.
31360         * lib/inttypes.in.h: Likewise.
31361         * lib/isapipe.c: Likewise.
31362         * lib/isdir.c: Likewise.
31363         * lib/isnan.c: Likewise.
31364         * lib/isnan.h: Likewise.
31365         * lib/isnanf.c: Likewise.
31366         * lib/isnanf.h: Likewise.
31367         * lib/isnanl-nolibm.h: Likewise.
31368         * lib/isnanl.c: Likewise.
31369         * lib/isnanl.h: Likewise.
31370         * lib/javacomp.c: Likewise.
31371         * lib/javacomp.h: Likewise.
31372         * lib/javaexec.c: Likewise.
31373         * lib/javaexec.h: Likewise.
31374         * lib/javaversion.c: Likewise.
31375         * lib/javaversion.h: Likewise.
31376         * lib/javaversion.java: Likewise.
31377         * lib/lbrkprop.h: Likewise.
31378         * lib/lchmod.h: Likewise.
31379         * lib/lchown.c: Likewise.
31380         * lib/ldexpl.c: Likewise.
31381         * lib/linebreak.c: Likewise.
31382         * lib/linebreak.h: Likewise.
31383         * lib/linebuffer.c: Likewise.
31384         * lib/linebuffer.h: Likewise.
31385         * lib/locale.in.h: Likewise.
31386         * lib/logl.c: Likewise.
31387         * lib/long-options.c: Likewise.
31388         * lib/long-options.h: Likewise.
31389         * lib/lstat.c: Likewise.
31390         * lib/lstat.h: Likewise.
31391         * lib/math.in.h: Likewise.
31392         * lib/mbchar.c: Likewise.
31393         * lib/mbchar.h: Likewise.
31394         * lib/mbfile.h: Likewise.
31395         * lib/mbiter.h: Likewise.
31396         * lib/mbscasecmp.c: Likewise.
31397         * lib/mbscasestr.c: Likewise.
31398         * lib/mbschr.c: Likewise.
31399         * lib/mbscspn.c: Likewise.
31400         * lib/mbslen.c: Likewise.
31401         * lib/mbsncasecmp.c: Likewise.
31402         * lib/mbsnlen.c: Likewise.
31403         * lib/mbspbrk.c: Likewise.
31404         * lib/mbspcasecmp.c: Likewise.
31405         * lib/mbsrchr.c: Likewise.
31406         * lib/mbssep.c: Likewise.
31407         * lib/mbsspn.c: Likewise.
31408         * lib/mbsstr.c: Likewise.
31409         * lib/mbstok_r.c: Likewise.
31410         * lib/mbswidth.c: Likewise.
31411         * lib/mbswidth.h: Likewise.
31412         * lib/mbuiter.h: Likewise.
31413         * lib/memcasecmp.c: Likewise.
31414         * lib/memcasecmp.h: Likewise.
31415         * lib/memchr.c: Likewise.
31416         * lib/memcmp.c: Likewise.
31417         * lib/memcoll.c: Likewise.
31418         * lib/memcoll.h: Likewise.
31419         * lib/memcpy.c: Likewise.
31420         * lib/memrchr.c: Likewise.
31421         * lib/mkancesdirs.c: Likewise.
31422         * lib/mkdir-p.c: Likewise.
31423         * lib/mkdir-p.h: Likewise.
31424         * lib/mkdir.c: Likewise.
31425         * lib/mkdirat.c: Likewise.
31426         * lib/mkdtemp.c: Likewise.
31427         * lib/mkstemp-safer.c: Likewise.
31428         * lib/mkstemp.c: Likewise.
31429         * lib/modechange.c: Likewise.
31430         * lib/modechange.h: Likewise.
31431         * lib/mountlist.c: Likewise.
31432         * lib/mountlist.h: Likewise.
31433         * lib/mpsort.c: Likewise.
31434         * lib/nanosleep.c: Likewise.
31435         * lib/obstack.c: Likewise.
31436         * lib/obstack.h: Likewise.
31437         * lib/open-safer.c: Likewise.
31438         * lib/open.c: Likewise.
31439         * lib/openat-die.c: Likewise.
31440         * lib/openat-priv.h: Likewise.
31441         * lib/openat-proc.c: Likewise.
31442         * lib/openat.c: Likewise.
31443         * lib/openat.h: Likewise.
31444         * lib/pagealign_alloc.c: Likewise.
31445         * lib/pagealign_alloc.h: Likewise.
31446         * lib/physmem.c: Likewise.
31447         * lib/physmem.h: Likewise.
31448         * lib/pipe-safer.c: Likewise.
31449         * lib/pipe.c: Likewise.
31450         * lib/pipe.h: Likewise.
31451         * lib/posixtm.c: Likewise.
31452         * lib/posixtm.h: Likewise.
31453         * lib/posixver.c: Likewise.
31454         * lib/printf-frexp.c: Likewise.
31455         * lib/printf-frexp.h: Likewise.
31456         * lib/printf-frexpl.c: Likewise.
31457         * lib/printf-frexpl.h: Likewise.
31458         * lib/printf.c: Likewise.
31459         * lib/progname.c: Likewise.
31460         * lib/progname.h: Likewise.
31461         * lib/progreloc.c: Likewise.
31462         * lib/putenv.c: Likewise.
31463         * lib/quote.c: Likewise.
31464         * lib/quote.h: Likewise.
31465         * lib/quotearg.c: Likewise.
31466         * lib/quotearg.h: Likewise.
31467         * lib/raise.c: Likewise.
31468         * lib/readline.c: Likewise.
31469         * lib/readline.h: Likewise.
31470         * lib/readlink.c: Likewise.
31471         * lib/readtokens.c: Likewise.
31472         * lib/readtokens.h: Likewise.
31473         * lib/readtokens0.c: Likewise.
31474         * lib/readtokens0.h: Likewise.
31475         * lib/readutmp.c: Likewise.
31476         * lib/readutmp.h: Likewise.
31477         * lib/realloc.c: Likewise.
31478         * lib/relocwrapper.c: Likewise.
31479         * lib/rename-dest-slash.c: Likewise.
31480         * lib/rename.c: Likewise.
31481         * lib/rmdir.c: Likewise.
31482         * lib/rpmatch.c: Likewise.
31483         * lib/safe-read.c: Likewise.
31484         * lib/safe-read.h: Likewise.
31485         * lib/safe-write.c: Likewise.
31486         * lib/safe-write.h: Likewise.
31487         * lib/same-inode.h: Likewise.
31488         * lib/same.c: Likewise.
31489         * lib/same.h: Likewise.
31490         * lib/save-cwd.c: Likewise.
31491         * lib/save-cwd.h: Likewise.
31492         * lib/savedir.c: Likewise.
31493         * lib/savedir.h: Likewise.
31494         * lib/savewd.c: Likewise.
31495         * lib/savewd.h: Likewise.
31496         * lib/search.in.h: Likewise.
31497         * lib/setenv.c: Likewise.
31498         * lib/setenv.h: Likewise.
31499         * lib/settime.c: Likewise.
31500         * lib/sh-quote.c: Likewise.
31501         * lib/sh-quote.h: Likewise.
31502         * lib/sig2str.c: Likewise.
31503         * lib/sig2str.h: Likewise.
31504         * lib/signal.in.h: Likewise.
31505         * lib/signbitd.c: Likewise.
31506         * lib/signbitf.c: Likewise.
31507         * lib/signbitl.c: Likewise.
31508         * lib/sigprocmask.c: Likewise.
31509         * lib/sincosl.c: Likewise.
31510         * lib/sleep.c: Likewise.
31511         * lib/sprintf.c: Likewise.
31512         * lib/sqrtl.c: Likewise.
31513         * lib/stat-time.h: Likewise.
31514         * lib/stdio--.h: Likewise.
31515         * lib/stdio-safer.h: Likewise.
31516         * lib/stdlib--.h: Likewise.
31517         * lib/stdlib-safer.h: Likewise.
31518         * lib/stdlib.in.h: Likewise.
31519         * lib/stpcpy.c: Likewise.
31520         * lib/stpncpy.c: Likewise.
31521         * lib/strchrnul.c: Likewise.
31522         * lib/strcspn.c: Likewise.
31523         * lib/strerror.c: Likewise.
31524         * lib/strftime.c: Likewise.
31525         * lib/strftime.h: Likewise.
31526         * lib/striconveh.c: Likewise.
31527         * lib/striconveh.h: Likewise.
31528         * lib/striconveha.c: Likewise.
31529         * lib/striconveha.h: Likewise.
31530         * lib/stripslash.c: Likewise.
31531         * lib/strnlen1.c: Likewise.
31532         * lib/strnlen1.h: Likewise.
31533         * lib/strtod.c: Likewise.
31534         * lib/strtoimax.c: Likewise.
31535         * lib/strtok_r.c: Likewise.
31536         * lib/strtol.c: Likewise.
31537         * lib/strtoll.c: Likewise.
31538         * lib/strtoul.c: Likewise.
31539         * lib/strtoull.c: Likewise.
31540         * lib/sysexits.in.h: Likewise.
31541         * lib/tempname.c: Likewise.
31542         * lib/tempname.h: Likewise.
31543         * lib/timespec.h: Likewise.
31544         * lib/tls.c: Likewise.
31545         * lib/tls.h: Likewise.
31546         * lib/tmpdir.c: Likewise.
31547         * lib/tmpdir.h: Likewise.
31548         * lib/tmpfile-safer.c: Likewise.
31549         * lib/tmpfile.c: Likewise.
31550         * lib/trigl.c: Likewise.
31551         * lib/trigl.h: Likewise.
31552         * lib/trim.c: Likewise.
31553         * lib/trim.h: Likewise.
31554         * lib/trunc.c: Likewise.
31555         * lib/truncf.c: Likewise.
31556         * lib/truncl.c: Likewise.
31557         * lib/tsearch.c: Likewise.
31558         * lib/unicodeio.c: Likewise.
31559         * lib/unicodeio.h: Likewise.
31560         * lib/unistd--.h: Likewise.
31561         * lib/unistd-safer.h: Likewise.
31562         * lib/unistdio/ulc-fprintf.c: Likewise.
31563         * lib/unistdio/ulc-vfprintf.c: Likewise.
31564         * lib/unlinkdir.c: Likewise.
31565         * lib/unlinkdir.h: Likewise.
31566         * lib/unlocked-io.h: Likewise.
31567         * lib/unsetenv.c: Likewise.
31568         * lib/userspec.c: Likewise.
31569         * lib/utime.c: Likewise.
31570         * lib/utimecmp.c: Likewise.
31571         * lib/utimecmp.h: Likewise.
31572         * lib/utimens.c: Likewise.
31573         * lib/verify.h: Likewise.
31574         * lib/verror.c: Likewise.
31575         * lib/verror.h: Likewise.
31576         * lib/version-etc-fsf.c: Likewise.
31577         * lib/version-etc.c: Likewise.
31578         * lib/version-etc.h: Likewise.
31579         * lib/vfprintf.c: Likewise.
31580         * lib/vprintf.c: Likewise.
31581         * lib/vsprintf.c: Likewise.
31582         * lib/w32spawn.h: Likewise.
31583         * lib/wait-process.c: Likewise.
31584         * lib/wait-process.h: Likewise.
31585         * lib/wcwidth.c: Likewise.
31586         * lib/write-any-file.c: Likewise.
31587         * lib/xalloc-die.c: Likewise.
31588         * lib/xalloc.h: Likewise.
31589         * lib/xasprintf.c: Likewise.
31590         * lib/xgetcwd.c: Likewise.
31591         * lib/xgetcwd.h: Likewise.
31592         * lib/xgetdomainname.c: Likewise.
31593         * lib/xgetdomainname.h: Likewise.
31594         * lib/xgethostname.c: Likewise.
31595         * lib/xmalloc.c: Likewise.
31596         * lib/xmalloca.c: Likewise.
31597         * lib/xmalloca.h: Likewise.
31598         * lib/xmemcoll.c: Likewise.
31599         * lib/xnanosleep.c: Likewise.
31600         * lib/xreadlink.c: Likewise.
31601         * lib/xreadlink.h: Likewise.
31602         * lib/xsetenv.c: Likewise.
31603         * lib/xsetenv.h: Likewise.
31604         * lib/xstriconv.c: Likewise.
31605         * lib/xstriconv.h: Likewise.
31606         * lib/xstrndup.c: Likewise.
31607         * lib/xstrndup.h: Likewise.
31608         * lib/xstrtod.c: Likewise.
31609         * lib/xstrtod.h: Likewise.
31610         * lib/xstrtol-error.c: Likewise.
31611         * lib/xstrtol.c: Likewise.
31612         * lib/xstrtol.h: Likewise.
31613         * lib/xtime.h: Likewise.
31614         * lib/xvasprintf.c: Likewise.
31615         * lib/xvasprintf.h: Likewise.
31616         * lib/yesno.c: Likewise.
31617         * lib/yesno.h: Likewise.
31618         * posix-modules: Likewise.
31619         * tests/test-alloca-opt.c: Likewise.
31620         * tests/test-arcfour.c: Likewise.
31621         * tests/test-arctwo.c: Likewise.
31622         * tests/test-argmatch.c: Likewise.
31623         * tests/test-argp-2.sh: Likewise.
31624         * tests/test-argp.c: Likewise.
31625         * tests/test-arpa_inet.c: Likewise.
31626         * tests/test-array_list.c: Likewise.
31627         * tests/test-array_oset.c: Likewise.
31628         * tests/test-atexit.c: Likewise.
31629         * tests/test-avltree_list.c: Likewise.
31630         * tests/test-avltree_oset.c: Likewise.
31631         * tests/test-avltreehash_list.c: Likewise.
31632         * tests/test-base64.c: Likewise.
31633         * tests/test-binary-io.c: Likewise.
31634         * tests/test-byteswap.c: Likewise.
31635         * tests/test-c-ctype.c: Likewise.
31636         * tests/test-c-strcasecmp.c: Likewise.
31637         * tests/test-c-strcasestr.c: Likewise.
31638         * tests/test-c-strncasecmp.c: Likewise.
31639         * tests/test-c-strstr.c: Likewise.
31640         * tests/test-canonicalize-lgpl.c: Likewise.
31641         * tests/test-canonicalize.c: Likewise.
31642         * tests/test-carray_list.c: Likewise.
31643         * tests/test-ceilf.c: Likewise.
31644         * tests/test-ceill.c: Likewise.
31645         * tests/test-count-one-bits.c: Likewise.
31646         * tests/test-crc.c: Likewise.
31647         * tests/test-dirname.c: Likewise.
31648         * tests/test-fbufmode.c: Likewise.
31649         * tests/test-fcntl.c: Likewise.
31650         * tests/test-fflush.c: Likewise.
31651         * tests/test-floorf.c: Likewise.
31652         * tests/test-floorl.c: Likewise.
31653         * tests/test-fopen.c: Likewise.
31654         * tests/test-fprintf-posix.c: Likewise.
31655         * tests/test-fprintf-posix.h: Likewise.
31656         * tests/test-fpurge.c: Likewise.
31657         * tests/test-freadable.c: Likewise.
31658         * tests/test-freadahead.c: Likewise.
31659         * tests/test-freading.c: Likewise.
31660         * tests/test-freopen.c: Likewise.
31661         * tests/test-frexp.c: Likewise.
31662         * tests/test-frexpl.c: Likewise.
31663         * tests/test-fseek.c: Likewise.
31664         * tests/test-fseeko.c: Likewise.
31665         * tests/test-fseterr.c: Likewise.
31666         * tests/test-fstrcmp.c: Likewise.
31667         * tests/test-ftell.c: Likewise.
31668         * tests/test-ftello.c: Likewise.
31669         * tests/test-fwritable.c: Likewise.
31670         * tests/test-fwriting.c: Likewise.
31671         * tests/test-getaddrinfo.c: Likewise.
31672         * tests/test-getpass.c: Likewise.
31673         * tests/test-gettimeofday.c: Likewise.
31674         * tests/test-hmac-md5.c: Likewise.
31675         * tests/test-hmac-sha1.c: Likewise.
31676         * tests/test-iconv.c: Likewise.
31677         * tests/test-iconvme.c: Likewise.
31678         * tests/test-inttypes.c: Likewise.
31679         * tests/test-isnan.c: Likewise.
31680         * tests/test-isnanf.c: Likewise.
31681         * tests/test-isnanl-nolibm.c: Likewise.
31682         * tests/test-isnanl.c: Likewise.
31683         * tests/test-isnanl.h: Likewise.
31684         * tests/test-ldexpl.c: Likewise.
31685         * tests/test-linked_list.c: Likewise.
31686         * tests/test-linkedhash_list.c: Likewise.
31687         * tests/test-locale.c: Likewise.
31688         * tests/test-localename.c: Likewise.
31689         * tests/test-lock.c: Likewise.
31690         * tests/test-lseek.c: Likewise.
31691         * tests/test-malloca.c: Likewise.
31692         * tests/test-math.c: Likewise.
31693         * tests/test-mbscasecmp.c: Likewise.
31694         * tests/test-mbscasestr1.c: Likewise.
31695         * tests/test-mbscasestr2.c: Likewise.
31696         * tests/test-mbscasestr3.c: Likewise.
31697         * tests/test-mbscasestr4.c: Likewise.
31698         * tests/test-mbschr.c: Likewise.
31699         * tests/test-mbscspn.c: Likewise.
31700         * tests/test-mbsncasecmp.c: Likewise.
31701         * tests/test-mbspbrk.c: Likewise.
31702         * tests/test-mbspcasecmp.c: Likewise.
31703         * tests/test-mbsrchr.c: Likewise.
31704         * tests/test-mbsspn.c: Likewise.
31705         * tests/test-mbsstr1.c: Likewise.
31706         * tests/test-mbsstr2.c: Likewise.
31707         * tests/test-mbsstr3.c: Likewise.
31708         * tests/test-md5.c: Likewise.
31709         * tests/test-memmem.c: Likewise.
31710         * tests/test-netinet_in.c: Likewise.
31711         * tests/test-open.c: Likewise.
31712         * tests/test-printf-frexp.c: Likewise.
31713         * tests/test-printf-frexpl.c: Likewise.
31714         * tests/test-printf-posix.c: Likewise.
31715         * tests/test-printf-posix.h: Likewise.
31716         * tests/test-rbtree_list.c: Likewise.
31717         * tests/test-rbtree_oset.c: Likewise.
31718         * tests/test-rbtreehash_list.c: Likewise.
31719         * tests/test-read-file.c: Likewise.
31720         * tests/test-rijndael.c: Likewise.
31721         * tests/test-search.c: Likewise.
31722         * tests/test-signbit.c: Likewise.
31723         * tests/test-sleep.c: Likewise.
31724         * tests/test-snprintf-posix.c: Likewise.
31725         * tests/test-snprintf-posix.h: Likewise.
31726         * tests/test-snprintf.c: Likewise.
31727         * tests/test-sprintf-posix.c: Likewise.
31728         * tests/test-sprintf-posix.h: Likewise.
31729         * tests/test-stat-time.c: Likewise.
31730         * tests/test-stdbool.c: Likewise.
31731         * tests/test-stdint.c: Likewise.
31732         * tests/test-stdio.c: Likewise.
31733         * tests/test-stdlib.c: Likewise.
31734         * tests/test-stpncpy.c: Likewise.
31735         * tests/test-strcasestr.c: Likewise.
31736         * tests/test-striconv.c: Likewise.
31737         * tests/test-striconveh.c: Likewise.
31738         * tests/test-striconveha.c: Likewise.
31739         * tests/test-string.c: Likewise.
31740         * tests/test-sys_select.c: Likewise.
31741         * tests/test-sys_socket.c: Likewise.
31742         * tests/test-sys_stat.c: Likewise.
31743         * tests/test-sys_time.c: Likewise.
31744         * tests/test-sysexits.c: Likewise.
31745         * tests/test-time.c: Likewise.
31746         * tests/test-tls.c: Likewise.
31747         * tests/test-trunc.c: Likewise.
31748         * tests/test-truncf.c: Likewise.
31749         * tests/test-truncl.c: Likewise.
31750         * tests/test-unistd.c: Likewise.
31751         * tests/test-vasnprintf-posix.c: Likewise.
31752         * tests/test-vasnprintf-posix2.c: Likewise.
31753         * tests/test-vasnprintf.c: Likewise.
31754         * tests/test-vasprintf-posix.c: Likewise.
31755         * tests/test-vasprintf.c: Likewise.
31756         * tests/test-verify.c: Likewise.
31757         * tests/test-vfprintf-posix.c: Likewise.
31758         * tests/test-vprintf-posix.c: Likewise.
31759         * tests/test-vsnprintf-posix.c: Likewise.
31760         * tests/test-vsnprintf.c: Likewise.
31761         * tests/test-vsprintf-posix.c: Likewise.
31762         * tests/test-wchar.c: Likewise.
31763         * tests/test-wctype.c: Likewise.
31764         * tests/test-wcwidth.c: Likewise.
31765         * tests/test-xstrtol.c: Likewise.
31766         * tests/test-xvasprintf.c: Likewise.
31767         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31768         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31769         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31770         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31771         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31772         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31773         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31774         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31775         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31776         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31777         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31778         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31779         * tests/uniname/test-uninames.c: Likewise.
31780         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31781         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31782         * tests/unistdio/test-u16-printf1.h: Likewise.
31783         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31784         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31785         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31786         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31787         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31788         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31789         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31790         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31791         * tests/unistdio/test-u32-printf1.h: Likewise.
31792         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31793         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31794         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31795         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31796         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31797         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31798         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31799         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31800         * tests/unistdio/test-u8-printf1.h: Likewise.
31801         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31802         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31803         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31804         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31805         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31806         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31807         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31808         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31809         * tests/unistdio/test-ulc-printf1.h: Likewise.
31810         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31811         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31812         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31813         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31814         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31815         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31816         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31817         * tests/uniwidth/test-u16-width.c: Likewise.
31818         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31819         * tests/uniwidth/test-u32-width.c: Likewise.
31820         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31821         * tests/uniwidth/test-u8-width.c: Likewise.
31822         * tests/uniwidth/test-uc_width.c: Likewise.
31823         * config/srclist-update: Likewise.
31824         (fixlicense): Update to GPLv3+.
31825
31826         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31827         * tests/test-tsearch.c: Change copyright notice.
31828
31829         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31830         * lib/c-strcaseeq.h: Change copyright notice.
31831         * lib/streq.h: Likewise.
31832         * lib/uniconv.h: Likewise.
31833         * lib/uniconv/u-conv-from-enc.h: Likewise.
31834         * lib/uniconv/u-conv-to-enc.h: Likewise.
31835         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31836         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31837         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31838         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31839         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31840         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31841         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31842         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31843         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31844         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31845         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31846         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31847         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31848         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31849         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31850         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31851         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31852         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31853         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31854         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31855         * lib/uniname.h: Likewise.
31856         * lib/uniname/uniname.c: Likewise.
31857         * lib/unistdio.h: Likewise.
31858         * lib/unistdio/u-asnprintf.h: Likewise.
31859         * lib/unistdio/u-asprintf.h: Likewise.
31860         * lib/unistdio/u-printf-args.c: Likewise.
31861         * lib/unistdio/u-printf-args.h: Likewise.
31862         * lib/unistdio/u-printf-parse.h: Likewise.
31863         * lib/unistdio/u-snprintf.h: Likewise.
31864         * lib/unistdio/u-sprintf.h: Likewise.
31865         * lib/unistdio/u-vasprintf.h: Likewise.
31866         * lib/unistdio/u-vsnprintf.h: Likewise.
31867         * lib/unistdio/u-vsprintf.h: Likewise.
31868         * lib/unistdio/u16-asnprintf.c: Likewise.
31869         * lib/unistdio/u16-asprintf.c: Likewise.
31870         * lib/unistdio/u16-printf-parse.c: Likewise.
31871         * lib/unistdio/u16-snprintf.c: Likewise.
31872         * lib/unistdio/u16-sprintf.c: Likewise.
31873         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31874         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31875         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31876         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31877         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31878         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31879         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31880         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31881         * lib/unistdio/u16-vasnprintf.c: Likewise.
31882         * lib/unistdio/u16-vasprintf.c: Likewise.
31883         * lib/unistdio/u16-vsnprintf.c: Likewise.
31884         * lib/unistdio/u16-vsprintf.c: Likewise.
31885         * lib/unistdio/u32-asnprintf.c: Likewise.
31886         * lib/unistdio/u32-asprintf.c: Likewise.
31887         * lib/unistdio/u32-printf-parse.c: Likewise.
31888         * lib/unistdio/u32-snprintf.c: Likewise.
31889         * lib/unistdio/u32-sprintf.c: Likewise.
31890         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31891         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31892         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31893         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31894         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31895         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31896         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31897         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31898         * lib/unistdio/u32-vasnprintf.c: Likewise.
31899         * lib/unistdio/u32-vasprintf.c: Likewise.
31900         * lib/unistdio/u32-vsnprintf.c: Likewise.
31901         * lib/unistdio/u32-vsprintf.c: Likewise.
31902         * lib/unistdio/u8-asnprintf.c: Likewise.
31903         * lib/unistdio/u8-asprintf.c: Likewise.
31904         * lib/unistdio/u8-printf-parse.c: Likewise.
31905         * lib/unistdio/u8-snprintf.c: Likewise.
31906         * lib/unistdio/u8-sprintf.c: Likewise.
31907         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31908         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31909         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31910         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31911         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31912         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31913         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31914         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31915         * lib/unistdio/u8-vasnprintf.c: Likewise.
31916         * lib/unistdio/u8-vasprintf.c: Likewise.
31917         * lib/unistdio/u8-vsnprintf.c: Likewise.
31918         * lib/unistdio/u8-vsprintf.c: Likewise.
31919         * lib/unistdio/ulc-asnprintf.c: Likewise.
31920         * lib/unistdio/ulc-asprintf.c: Likewise.
31921         * lib/unistdio/ulc-printf-parse.c: Likewise.
31922         * lib/unistdio/ulc-snprintf.c: Likewise.
31923         * lib/unistdio/ulc-sprintf.c: Likewise.
31924         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31925         * lib/unistdio/ulc-vasprintf.c: Likewise.
31926         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31927         * lib/unistdio/ulc-vsprintf.c: Likewise.
31928         * lib/unistr.h: Likewise.
31929         * lib/unistr/u-cpy-alloc.h: Likewise.
31930         * lib/unistr/u-cpy.h: Likewise.
31931         * lib/unistr/u-endswith.h: Likewise.
31932         * lib/unistr/u-move.h: Likewise.
31933         * lib/unistr/u-set.h: Likewise.
31934         * lib/unistr/u-startswith.h: Likewise.
31935         * lib/unistr/u-stpcpy.h: Likewise.
31936         * lib/unistr/u-stpncpy.h: Likewise.
31937         * lib/unistr/u-strcat.h: Likewise.
31938         * lib/unistr/u-strcpy.h: Likewise.
31939         * lib/unistr/u-strcspn.h: Likewise.
31940         * lib/unistr/u-strdup.h: Likewise.
31941         * lib/unistr/u-strlen.h: Likewise.
31942         * lib/unistr/u-strncat.h: Likewise.
31943         * lib/unistr/u-strncpy.h: Likewise.
31944         * lib/unistr/u-strnlen.h: Likewise.
31945         * lib/unistr/u-strpbrk.h: Likewise.
31946         * lib/unistr/u-strspn.h: Likewise.
31947         * lib/unistr/u-strstr.h: Likewise.
31948         * lib/unistr/u-strtok.h: Likewise.
31949         * lib/unistr/u16-check.c: Likewise.
31950         * lib/unistr/u16-chr.c: Likewise.
31951         * lib/unistr/u16-cmp.c: Likewise.
31952         * lib/unistr/u16-cpy-alloc.c: Likewise.
31953         * lib/unistr/u16-cpy.c: Likewise.
31954         * lib/unistr/u16-endswith.c: Likewise.
31955         * lib/unistr/u16-mblen.c: Likewise.
31956         * lib/unistr/u16-mbsnlen.c: Likewise.
31957         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31958         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31959         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31960         * lib/unistr/u16-mbtouc.c: Likewise.
31961         * lib/unistr/u16-mbtoucr.c: Likewise.
31962         * lib/unistr/u16-move.c: Likewise.
31963         * lib/unistr/u16-next.c: Likewise.
31964         * lib/unistr/u16-prev.c: Likewise.
31965         * lib/unistr/u16-set.c: Likewise.
31966         * lib/unistr/u16-startswith.c: Likewise.
31967         * lib/unistr/u16-stpcpy.c: Likewise.
31968         * lib/unistr/u16-stpncpy.c: Likewise.
31969         * lib/unistr/u16-strcat.c: Likewise.
31970         * lib/unistr/u16-strchr.c: Likewise.
31971         * lib/unistr/u16-strcmp.c: Likewise.
31972         * lib/unistr/u16-strcpy.c: Likewise.
31973         * lib/unistr/u16-strcspn.c: Likewise.
31974         * lib/unistr/u16-strdup.c: Likewise.
31975         * lib/unistr/u16-strlen.c: Likewise.
31976         * lib/unistr/u16-strmblen.c: Likewise.
31977         * lib/unistr/u16-strmbtouc.c: Likewise.
31978         * lib/unistr/u16-strncat.c: Likewise.
31979         * lib/unistr/u16-strncmp.c: Likewise.
31980         * lib/unistr/u16-strncpy.c: Likewise.
31981         * lib/unistr/u16-strnlen.c: Likewise.
31982         * lib/unistr/u16-strpbrk.c: Likewise.
31983         * lib/unistr/u16-strrchr.c: Likewise.
31984         * lib/unistr/u16-strspn.c: Likewise.
31985         * lib/unistr/u16-strstr.c: Likewise.
31986         * lib/unistr/u16-strtok.c: Likewise.
31987         * lib/unistr/u16-to-u32.c: Likewise.
31988         * lib/unistr/u16-to-u8.c: Likewise.
31989         * lib/unistr/u16-uctomb-aux.c: Likewise.
31990         * lib/unistr/u16-uctomb.c: Likewise.
31991         * lib/unistr/u32-check.c: Likewise.
31992         * lib/unistr/u32-chr.c: Likewise.
31993         * lib/unistr/u32-cmp.c: Likewise.
31994         * lib/unistr/u32-cpy-alloc.c: Likewise.
31995         * lib/unistr/u32-cpy.c: Likewise.
31996         * lib/unistr/u32-endswith.c: Likewise.
31997         * lib/unistr/u32-mblen.c: Likewise.
31998         * lib/unistr/u32-mbsnlen.c: Likewise.
31999         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32000         * lib/unistr/u32-mbtouc.c: Likewise.
32001         * lib/unistr/u32-mbtoucr.c: Likewise.
32002         * lib/unistr/u32-move.c: Likewise.
32003         * lib/unistr/u32-next.c: Likewise.
32004         * lib/unistr/u32-prev.c: Likewise.
32005         * lib/unistr/u32-set.c: Likewise.
32006         * lib/unistr/u32-startswith.c: Likewise.
32007         * lib/unistr/u32-stpcpy.c: Likewise.
32008         * lib/unistr/u32-stpncpy.c: Likewise.
32009         * lib/unistr/u32-strcat.c: Likewise.
32010         * lib/unistr/u32-strchr.c: Likewise.
32011         * lib/unistr/u32-strcmp.c: Likewise.
32012         * lib/unistr/u32-strcpy.c: Likewise.
32013         * lib/unistr/u32-strcspn.c: Likewise.
32014         * lib/unistr/u32-strdup.c: Likewise.
32015         * lib/unistr/u32-strlen.c: Likewise.
32016         * lib/unistr/u32-strmblen.c: Likewise.
32017         * lib/unistr/u32-strmbtouc.c: Likewise.
32018         * lib/unistr/u32-strncat.c: Likewise.
32019         * lib/unistr/u32-strncmp.c: Likewise.
32020         * lib/unistr/u32-strncpy.c: Likewise.
32021         * lib/unistr/u32-strnlen.c: Likewise.
32022         * lib/unistr/u32-strpbrk.c: Likewise.
32023         * lib/unistr/u32-strrchr.c: Likewise.
32024         * lib/unistr/u32-strspn.c: Likewise.
32025         * lib/unistr/u32-strstr.c: Likewise.
32026         * lib/unistr/u32-strtok.c: Likewise.
32027         * lib/unistr/u32-to-u16.c: Likewise.
32028         * lib/unistr/u32-to-u8.c: Likewise.
32029         * lib/unistr/u32-uctomb.c: Likewise.
32030         * lib/unistr/u8-check.c: Likewise.
32031         * lib/unistr/u8-chr.c: Likewise.
32032         * lib/unistr/u8-cmp.c: Likewise.
32033         * lib/unistr/u8-cpy-alloc.c: Likewise.
32034         * lib/unistr/u8-cpy.c: Likewise.
32035         * lib/unistr/u8-endswith.c: Likewise.
32036         * lib/unistr/u8-mblen.c: Likewise.
32037         * lib/unistr/u8-mbsnlen.c: Likewise.
32038         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32039         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32040         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32041         * lib/unistr/u8-mbtouc.c: Likewise.
32042         * lib/unistr/u8-mbtoucr.c: Likewise.
32043         * lib/unistr/u8-move.c: Likewise.
32044         * lib/unistr/u8-next.c: Likewise.
32045         * lib/unistr/u8-prev.c: Likewise.
32046         * lib/unistr/u8-set.c: Likewise.
32047         * lib/unistr/u8-startswith.c: Likewise.
32048         * lib/unistr/u8-stpcpy.c: Likewise.
32049         * lib/unistr/u8-stpncpy.c: Likewise.
32050         * lib/unistr/u8-strcat.c: Likewise.
32051         * lib/unistr/u8-strchr.c: Likewise.
32052         * lib/unistr/u8-strcmp.c: Likewise.
32053         * lib/unistr/u8-strcpy.c: Likewise.
32054         * lib/unistr/u8-strcspn.c: Likewise.
32055         * lib/unistr/u8-strdup.c: Likewise.
32056         * lib/unistr/u8-strlen.c: Likewise.
32057         * lib/unistr/u8-strmblen.c: Likewise.
32058         * lib/unistr/u8-strmbtouc.c: Likewise.
32059         * lib/unistr/u8-strncat.c: Likewise.
32060         * lib/unistr/u8-strncmp.c: Likewise.
32061         * lib/unistr/u8-strncpy.c: Likewise.
32062         * lib/unistr/u8-strnlen.c: Likewise.
32063         * lib/unistr/u8-strpbrk.c: Likewise.
32064         * lib/unistr/u8-strrchr.c: Likewise.
32065         * lib/unistr/u8-strspn.c: Likewise.
32066         * lib/unistr/u8-strstr.c: Likewise.
32067         * lib/unistr/u8-strtok.c: Likewise.
32068         * lib/unistr/u8-to-u16.c: Likewise.
32069         * lib/unistr/u8-to-u32.c: Likewise.
32070         * lib/unistr/u8-uctomb-aux.c: Likewise.
32071         * lib/unistr/u8-uctomb.c: Likewise.
32072         * lib/unitypes.h: Likewise.
32073         * lib/uniwidth.h: Likewise.
32074         * lib/uniwidth/cjk.h: Likewise.
32075         * lib/uniwidth/u16-strwidth.c: Likewise.
32076         * lib/uniwidth/u16-width.c: Likewise.
32077         * lib/uniwidth/u32-strwidth.c: Likewise.
32078         * lib/uniwidth/u32-width.c: Likewise.
32079         * lib/uniwidth/u8-strwidth.c: Likewise.
32080         * lib/uniwidth/u8-width.c: Likewise.
32081         * lib/uniwidth/width.c: Likewise.
32082
32083 2007-10-07  Bruno Haible  <bruno@clisp.org>
32084
32085         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32086         The file is still under LGPL (see modules/inttypes).
32087
32088 2007-10-06  Bruno Haible  <bruno@clisp.org>
32089
32090         * modules/trunc (Dependencies): Add 'extensions'.
32091         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32092         Reported by Ben Pfaff <blp@gnu.org>.
32093
32094 2007-10-06  Bruno Haible  <bruno@clisp.org>
32095
32096         * modules/freopen-tests: New file.
32097         * tests/test-freopen.c: New file.
32098
32099         * modules/fopen-tests: New file.
32100         * tests/test-fopen.c: New file.
32101
32102         * modules/fopen: New file.
32103         * lib/fopen.c: New file.
32104         * m4/fopen.m4: New file.
32105         * modules/freopen: New file.
32106         * lib/freopen.c: New file.
32107         * m4/freopen.m4: New file.
32108         * lib/stdio.in.h (fopen, freopen): New declarations.
32109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32110         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32111         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32112         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32113         * doc/functions/fopen.texi: Mention the 'fopen' module.
32114         * doc/functions/freopen.texi: Mention the 'freopen' module.
32115
32116 2007-10-06  Bruno Haible  <bruno@clisp.org>
32117
32118         * modules/open-tests: New file.
32119         * tests/test-open.c: New file.
32120
32121         * modules/open: New file.
32122         * lib/open.c: New file.
32123         * m4/open.m4: New file.
32124         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32125         lib/open.c does.
32126         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32127         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32128         macros.
32129         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32130         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32131         REPLACE_OPEN.
32132         * doc/functions/open.texi: Mention the 'open' module.
32133
32134 2007-10-04  Bruno Haible  <bruno@clisp.org>
32135
32136         * modules/ceill-tests: New file.
32137         * tests/test-ceill.c: New file.
32138
32139         * modules/ceill: New file.
32140         * lib/ceill.c: Replace entire file.
32141         * m4/ceill.m4: New file.
32142         * lib/math.in.h (ceill): Replace declaration.
32143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32144         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32145         * doc/functions/ceill.texi: Mention the 'ceill' module.
32146         * modules/mathl (Files): Remove lib/ceill.c.
32147         (Depends-on): Add ceill.
32148
32149 2007-10-04  Bruno Haible  <bruno@clisp.org>
32150
32151         * modules/ceilf-tests: New file.
32152         * tests/test-ceilf.c: New file.
32153
32154         * modules/ceilf: New file.
32155         * lib/ceil.c: New file.
32156         * lib/ceilf.c: New file.
32157         * m4/ceilf.m4: New file.
32158         * lib/math.in.h (ceilf): New declaration.
32159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32160         HAVE_DECL_CEILF.
32161         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32162         HAVE_DECL_CEILF.
32163         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32164
32165 2007-10-04  Bruno Haible  <bruno@clisp.org>
32166
32167         * modules/floorl-tests: New file.
32168         * tests/test-floorl.c: New file.
32169
32170         * modules/floorl: New file.
32171         * lib/floorl.c: Replace entire file.
32172         * m4/floorl.m4: New file.
32173         * lib/math.in.h (floorl): Replace declaration.
32174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32175         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32176         * doc/functions/floorl.texi: Mention the 'floorl' module.
32177         * modules/mathl (Files): Remove lib/floorl.c.
32178         (Depends-on): Add floorl.
32179
32180 2007-10-04  Bruno Haible  <bruno@clisp.org>
32181
32182         * modules/floorf-tests: New file.
32183         * tests/test-floorf.c: New file.
32184
32185         * modules/floorf: New file.
32186         * lib/floor.c: New file.
32187         * lib/floorf.c: New file.
32188         * m4/floorf.m4: New file.
32189         * lib/math.in.h (floorf): New declaration.
32190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32191         HAVE_DECL_FLOORF.
32192         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32193         HAVE_DECL_FLOORF.
32194         * doc/functions/floorf.texi: Mention the 'floorf' module.
32195
32196 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32197             Bruno Haible  <bruno@clisp.org>
32198
32199         Advertise for the Git server instead of the CVS server.
32200         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32201         repository instead of the CVS one.
32202         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32203         about all VCS systems generically.
32204         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32205
32206 2007-10-04  Bruno Haible  <bruno@clisp.org>
32207
32208         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32209         means.
32210         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32211
32212 2007-10-04  Bruno Haible  <bruno@clisp.org>
32213
32214         * modules/truncl-tests: New file.
32215         * tests/test-truncl.c: New file.
32216
32217         * modules/truncl: New file.
32218         * lib/truncl.c: New file.
32219         * m4/truncl.m4: New file.
32220         * lib/math.in.h (truncl): New declaration.
32221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32222         HAVE_DECL_TRUNCL.
32223         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32224         HAVE_DECL_TRUNCL.
32225         * doc/functions/truncl.texi: Mention the 'truncl' module.
32226
32227 2007-10-04  Bruno Haible  <bruno@clisp.org>
32228
32229         * modules/truncf-tests: New file.
32230         * tests/test-truncf.c: New file.
32231
32232         * modules/truncf: New file.
32233         * lib/trunc.c: Make paramerizable through USE_* macros.
32234         * lib/truncf.c: New file.
32235         * m4/truncf.m4: New file.
32236         * lib/math.in.h (truncf): New declaration.
32237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32238         HAVE_DECL_TRUNCF.
32239         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32240         HAVE_DECL_TRUNCF.
32241         * doc/functions/truncf.texi: Mention the 'truncf' module.
32242
32243 2007-10-03  Bruno Haible  <bruno@clisp.org>
32244
32245         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32246         augmentation also for tests modules.
32247         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32248         * modules/atexit-tests (Makefile.am): Likewise.
32249         * modules/binary-io-tests (Makefile.am): Likewise.
32250         * modules/c-strcase-tests (Makefile.am): Likewise.
32251         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32252         * modules/canonicalize-tests (Makefile.am): Likewise.
32253         * modules/closein-tests (Makefile.am): Likewise.
32254         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32255         * modules/freadahead-tests (Makefile.am): Likewise.
32256         * modules/fseek-tests (Makefile.am): Likewise.
32257         * modules/fseeko-tests (Makefile.am): Likewise.
32258         * modules/ftell-tests (Makefile.am): Likewise.
32259         * modules/ftello-tests (Makefile.am): Likewise.
32260         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32261         * modules/isnanl-tests (Makefile.am): Likewise.
32262         * modules/lseek-tests (Makefile.am): Likewise.
32263         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32264         * modules/mbscasestr-tests (Makefile.am): Likewise.
32265         * modules/mbschr-tests (Makefile.am): Likewise.
32266         * modules/mbscspn-tests (Makefile.am): Likewise.
32267         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32268         * modules/mbspbrk-tests (Makefile.am): Likewise.
32269         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32270         * modules/mbsrchr-tests (Makefile.am): Likewise.
32271         * modules/mbsspn-tests (Makefile.am): Likewise.
32272         * modules/mbsstr-tests (Makefile.am): Likewise.
32273         * modules/printf-posix-tests (Makefile.am): Likewise.
32274         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32275         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32276         * modules/tsearch-tests (Makefile.am): Likewise.
32277         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32278         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32279         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32280         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32281         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32282         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32283         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32284         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32285         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32286         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32287         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32288         * modules/xstrtol-tests (Makefile.am): Likewise.
32289         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32290         * modules/yesno-tests (Makefile.am): Likewise.
32291
32292 2007-10-03  Bruno Haible  <bruno@clisp.org>
32293
32294         * modules/trunc-tests: New file.
32295         * tests/test-trunc.c: New file.
32296
32297         * modules/trunc: New file.
32298         * lib/trunc.c: New file.
32299         * m4/trunc.m4: New file.
32300         * lib/math.in.h (trunc): New declaration.
32301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32302         HAVE_DECL_TRUNC.
32303         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32304         HAVE_DECL_TRUNC.
32305         * doc/functions/trunc.texi: Mention the 'trunc' module.
32306
32307 2007-10-03  Bruno Haible  <bruno@clisp.org>
32308
32309         * tests/test-fpending.c: New file, mostly copied
32310         from coreutils/lib/t-fpending.c.
32311         * modules/fpending-tests: New file.
32312
32313 2007-10-03  Bruno Haible  <bruno@clisp.org>
32314
32315         Port the stdio extensions to QNX (untested).
32316         * lib/fseterr.c (fseterr): Add support for QNX.
32317         * lib/fbufmode.c (fbufmode): Likewise.
32318         * lib/freadable.c (freadable): Likewise.
32319         * lib/fwritable.c (fwritable): Likewise.
32320         * lib/freading.c (freading): Likewise.
32321         * lib/fwriting.c (fwriting): Likewise.
32322         * lib/freadahead.c (freadahed): Likewise.
32323         * lib/fpurge.c (fpurge): Likewise.
32324         * lib/fseeko.c (rpl_fseeko): Likewise.
32325
32326 2007-10-03  Bruno Haible  <bruno@clisp.org>
32327             Jim Meyering  <jim@meyering.net>
32328             Eric Blake  <ebb9@byu.net>
32329
32330         * doc/relocatable.texi: Use @command instead of @program.
32331
32332 2007-10-02  Jim Meyering  <jim@meyering.net>
32333
32334         Perform one more "_.h" -> ".in.h" substitution.
32335         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32336         instead of unistd_.h here, too.
32337
32338 2007-10-01  Bruno Haible  <bruno@clisp.org>
32339
32340         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32341         Needed for the alloca-opt module.
32342
32343 2007-09-30  Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32346         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32347         alloca_.h.
32348         * lib/argz.in.h: Renamed from lib/argz_.h.
32349         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32350         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32351         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32352         byteswap_.h.
32353         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32354         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32355         dirent_.h.
32356         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32357         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32358         fcntl_.h.
32359         * lib/float.in.h: Renamed from lib/float_.h.
32360         * modules/float (Files, Makefile.am): Use float.in.h instead of
32361         float_.h.
32362         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32363         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32364         fnmatch_.h.
32365         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32366         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32367         getopt_.h.
32368         * lib/glob.in.h: Renamed from lib/glob_.h.
32369         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32370         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32371         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32372         iconv_.h.
32373         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32374         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32375         inttypes_.h.
32376         * lib/locale.in.h: Renamed from lib/locale_.h.
32377         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32378         locale_.h.
32379         * lib/math.in.h: Renamed from lib/math_.h.
32380         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32381         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32382         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32383         of netinet_in_.h. Add dependency.
32384         * lib/poll.in.h: Renamed from lib/poll_.h.
32385         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32386         * lib/search.in.h: Renamed from lib/search_.h.
32387         * modules/search (Files, Makefile.am): Use search.in.h instead of
32388         search_.h.
32389         * lib/signal.in.h: Renamed from lib/signal_.h.
32390         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32391         _signal.h.
32392         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32393         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32394         stdbool_.h.
32395         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32396         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32397         stdint_.h.
32398         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32399         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32400         stdio_.h.
32401         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32402         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32403         stdlib_.h.
32404         * lib/string.in.h: Renamed from lib/string_.h.
32405         * modules/string (Files, Makefile.am): Use string.in.h instead of
32406         string_.h.
32407         * doc/gnulib-tool.texi (Initial import): Update.
32408         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32409         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32410         of sys_select_.h. Add dependency.
32411         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32412         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32413         of sys_socket_.h.
32414         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32415         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32416         sys_stat_.h.
32417         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32418         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32419         sys_time_.h.
32420         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32421         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32422         sysexits_.h.
32423         * lib/time.in.h: Renamed from lib/time_.h.
32424         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32425         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32426         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32427         unistd_.h.
32428         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32429         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32430         wchar_.h.
32431         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32432         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32433         wctype_.h.
32434         * build-aux/bootstrap (slurp): Update.
32435         * lib/.cppi-disable: Update.
32436
32437 2007-09-30  Bruno Haible  <bruno@clisp.org>
32438
32439         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32440         Needed on BeOS.
32441
32442 2007-09-30  Bruno Haible  <bruno@clisp.org>
32443
32444         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32445
32446 2007-09-29  Bruno Haible  <bruno@clisp.org>
32447
32448         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32449
32450 2007-09-29  Bruno Haible  <bruno@clisp.org>
32451
32452         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32453         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32454         * build-aux/install-reloc: Compile also areadlink.c.
32455         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32456
32457 2007-09-29  Bruno Haible  <bruno@clisp.org>
32458
32459         * gnulib-tool (func_emit_initmacro_done): Indentation.
32460
32461 2007-09-29  Bruno Haible  <bruno@clisp.org>
32462
32463         * README: Add CVS checkout update instructions.
32464         Info from Bob Proulx <bob@proulx.com>.
32465
32466 2007-09-28  Eric Blake  <ebb9@byu.net>
32467
32468         Provide move-if-change.
32469         * build-aux/move-if-change: New file, based on best practice
32470         rather than any canonical upstream location.
32471
32472 2007-09-28  Jim Meyering  <jim@meyering.net>
32473
32474         Fix canonicalize loop-detection corner case.
32475         Do not attempt to stat the symlink values stored via seen_triple.
32476         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32477         on linux-2.6.18, (but not 2.6.22).
32478         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32479         triple_compare.  The former compares dev,ino,filename, while the latter
32480         would actually stat dirname(filename) when dev and ino were equal.
32481         * lib/hash-triple.c: Install <string.h>.
32482         (STREQ): Define.
32483         (triple_compare_ino_str): New function.
32484         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32485
32486 2007-09-28  Eric Blake  <ebb9@byu.net>
32487
32488         Enforce that AC_REPLACE_FUNCS files exist.
32489         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32490         override check for typos.
32491
32492         Fix test-closein on Solaris 10.
32493         * tests/test-closein.c (main): Don't assume stdin can be inherited
32494         closed on all systems.
32495         * tests/test-closein.sh: Likewise.
32496         Reported by Piotr Tarnowski.
32497
32498 2007-09-28  Jim Meyering  <jim@meyering.net>
32499
32500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32501
32502 2007-09-27  Jim Meyering  <jim@meyering.net>
32503
32504         canonicalize: Avoid a false-positive cycle failure.
32505         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32506         Sort.  Remove cycle-check.
32507         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32508         not cycle-check.h.
32509         (seen_triple): New function.
32510         (canonicalize_filename_mode): Use it instead of cycle-check.
32511         * tests/test-canonicalize.c: Add a test for this bug.
32512         * tests/test-canonicalize.sh: Set up and run the test.
32513
32514         New module, file-set, from coreutils.
32515         * modules/file-set: Define it.
32516         * lib/file-set.c, lib/file-set.h: Implement.
32517
32518         New module, hash-triple, from coreutils.
32519         * modules/hash-triple: Define it.
32520         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32521
32522 2007-09-25  Eric Blake  <ebb9@byu.net>
32523
32524         Fix strerror on Interix.
32525         * lib/string_.h (strerror): Declare replacement.
32526         * doc/functions/strerror.texi (strerror): Document the Interix
32527         shortcoming.
32528         * modules/string (Makefile.am): Support new hooks.
32529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32530         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32531         gl_FUNC_STRERROR_SEPARATE.
32532         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32533         * lib/strerror.c (rpl_strerror): Provide replacement.
32534         * modules/strerror (Depends-on): Add string.
32535         (configure.ac): Detect use of module.
32536         * tests/test-strerror.c: New file.
32537         * modules/strerror-tests: New test module.
32538         * modules/argp (Depends-on): Add strerror.
32539         * modules/error (Depends-on): Likewise.
32540         Reported by Martin Koeppe.
32541
32542 2007-09-24  Bruno Haible  <bruno@clisp.org>
32543
32544         * README: Update git instructions.
32545
32546 2007-09-24  Eric Blake  <ebb9@byu.net>
32547
32548         Revert fpending breakage from 2007-09-08.
32549         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32550         __fpending.c.
32551
32552 2007-09-24  Jim Meyering  <jim@meyering.net>
32553
32554         filenamecat.c: Add a test.
32555         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32556         showing how the function works when DIR is the empty string.
32557
32558 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32559
32560         * tests/test-canonicalize.sh: Turn on executable bit.
32561
32562 2007-09-19  Eric Blake  <ebb9@byu.net>
32563
32564         * README: Update CVS instructions.
32565
32566 2007-09-18  Bruno Haible  <bruno@clisp.org>
32567
32568         * modules/areadlink: New file.
32569         * lib/areadlink.h (areadlink): New declaration.
32570         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32571
32572 2007-09-17  Jim Meyering  <jim@meyering.net>
32573
32574         * lib/savewd.c (ESTALE) [!defined]: Define.
32575         Reported to be required on Interix by Martin Koeppe.
32576
32577 2007-09-17  Bruno Haible  <bruno@clisp.org>
32578
32579         * gnulib-tool (func_version): Use $version.
32580
32581 2007-09-16  Bruno Haible  <bruno@clisp.org>
32582
32583         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32584         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32585         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32586         Reported by Greg Schafer <gschafer@zip.com.au>.
32587
32588 2007-09-15  Bruno Haible  <bruno@clisp.org>
32589
32590         * gnulib-tool (sed): Try a little harder to make bash understand the
32591         alias.
32592         Reported by Bruce Korb <bruce.korb@gmail.com>.
32593
32594 2007-09-13  Eric Blake  <ebb9@byu.net>
32595
32596         * ChangeLog: Remove conflict markers.
32597
32598 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32599
32600         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32601         Reported by Bruno Haible <bruno@clisp.org>.
32602
32603 2007-09-12  Bruno Haible  <bruno@clisp.org>
32604
32605         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32606         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32607         is not defined.
32608
32609 2007-09-12  Eric Blake  <ebb9@byu.net>
32610
32611         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32612         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32613         Autoconf definition.
32614         * modules/euidaccess (Depends-on): Add extensions, for
32615         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32616         * modules/fnmatch (Depends-on): Likewise.
32617         * modules/getaddrinfo (Depends-on): Likewise.
32618         * modules/getdelim (Depends-on): Likewise.
32619         * modules/getline (Depends-on): Likewise.
32620         * modules/getsubopt (Depends-on): Likewise.
32621         * modules/gettext (Depends-on): Likewise.
32622         * modules/group-member (Depends-on): Likewise.
32623         * modules/mbchar (Depends-on): Likewise.
32624         * modules/memmem (Depends-on): Likewise.
32625         * modules/mempcpy (Depends-on): Likewise.
32626         * modules/memrchr (Depends-on): Likewise.
32627         * modules/pagealign_alloc (Depends-on): Likewise.
32628         * modules/readutmp (Depends-on): Likewise.
32629         * modules/stpcpy (Depends-on): Likewise.
32630         * modules/stpncpy (Depends-on): Likewise.
32631         * modules/strchrnul (Depends-on): Likewise.
32632         * modules/strndup (Depends-on): Likewise.
32633         * modules/strsep (Depends-on): Likewise.
32634         * modules/strverscmp (Depends-on): Likewise.
32635         * modules/vasprintf (Depends-on): Likewise.
32636         * modules/wcwidth (Depends-on): Likewise.
32637         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32638         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32639         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32642         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32643         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32644         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32645         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32646         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32648         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32649         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32650         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32651         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32652         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32653         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32654         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32655         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32656         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32657         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32658         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32659         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32660         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32661         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32663         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32664         so that lock.m4 can be used in gettext without extensions module.
32665
32666 2007-09-11  Bruno Haible  <bruno@clisp.org>
32667
32668         * m4/isc-posix.m4: Remove file.
32669         Suggested by Eric Blake.
32670
32671 2007-09-11  Eric Blake  <ebb9@byu.net>
32672
32673         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32674
32675 2007-09-10  Bruno Haible  <bruno@clisp.org>
32676
32677         * posix-modules: Fix typo in error message.
32678         Reported by Matt <mkraai@beckman.com>.
32679
32680 2007-09-09  Bruno Haible  <bruno@clisp.org>
32681
32682         * doc/functions/getdelim.texi: Update list of platforms lacking the
32683         function.
32684         * doc/functions/getline.texi: Likewise.
32685
32686 2007-09-09  Jim Meyering  <jim@meyering.net>
32687
32688         * lib/hash.c (hash_initialize): Detect calloc failure.
32689         Reported by Bruno Haible.
32690
32691 2007-09-09  Bruno Haible  <bruno@clisp.org>
32692
32693         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32694         malloc or realloc fails.
32695
32696 2007-09-09  Bruno Haible  <bruno@clisp.org>
32697
32698         * modules/getcwd (Depends-on): Add malloc-posix.
32699         * modules/glob (Depends-on): Likewise.
32700         * modules/putenv (Depends-on): Likewise.
32701         * modules/strdup (Depends-on): Likewise.
32702         * modules/getdelim (Depends-on): Add realloc-posix.
32703         * modules/read-file (Depends-on): Likewise.
32704
32705 2007-09-09  Bruno Haible  <bruno@clisp.org>
32706
32707         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32708         (gl_FUNC_MALLOC_POSIX): Require it.
32709         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32710         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32711         * modules/realloc (Files): Add m4/malloc.m4.
32712         * modules/calloc (Files): Likewise.
32713
32714 2007-09-09  Bruno Haible  <bruno@clisp.org>
32715
32716         * modules/malloc-posix: New file.
32717         * modules/malloc (Depends-on): Add malloc-posix.
32718         * lib/malloc.c: Include errno.h.
32719         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32720         and a POSIX-compatible malloc into a single function. Set ENOMEM
32721         when returning NULL.
32722         * m4/malloc.m4: New file.
32723         * doc/functions/malloc.texi: Mention the malloc-posix module.
32724         * lib/stdlib_.h (malloc): New declaration.
32725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32726         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32727         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32728         and HAVE_MALLOC_POSIX.
32729
32730 2007-09-09  Bruno Haible  <bruno@clisp.org>
32731
32732         * modules/realloc-posix: New file.
32733         * modules/realloc (Depends-on): Add realloc-posix.
32734         * lib/realloc.c: Include errno.h.
32735         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32736         and a POSIX-compatible realloc into a single function. Set ENOMEM
32737         when returning NULL.
32738         * m4/realloc.m4: New file.
32739         * doc/functions/realloc.texi: Mention the realloc-posix module.
32740         * lib/stdlib_.h (realloc): New declaration.
32741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32742         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32743         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32744         and HAVE_REALLOC_POSIX.
32745
32746 2007-09-09  Bruno Haible  <bruno@clisp.org>
32747
32748         * modules/calloc-posix: New file.
32749         * modules/calloc (Depends-on): Add calloc-posix.
32750         * lib/calloc.c: Include errno.h.
32751         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32752         and a POSIX-compatible calloc into a single function. Set ENOMEM
32753         when returning NULL.
32754         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32755         * doc/functions/calloc.texi: Mention the calloc-posix module.
32756         * lib/stdlib_.h (calloc): New declaration.
32757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32758         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32759         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32760         and HAVE_CALLOC_POSIX.
32761
32762 2007-09-09  Bruno Haible  <bruno@clisp.org>
32763
32764         Allow for modules to show an arbitrary notice.
32765         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32766         * gnulib-tool: New option --extract-notice.
32767         (func_usage): Document it.
32768         (sed_extract_prog): Update.
32769         (func_get_notice): New function.
32770         (func_modules_notice): New function.
32771         (func_import, func_create_testdir): Invoke it.
32772         Suggested by Jim Meyering.
32773
32774 2007-09-09  Bruno Haible  <bruno@clisp.org>
32775
32776         * gnulib-tool: New options --verbose, --quiet.
32777         (func_usage): Document them.
32778         (verbose): New variable.
32779         (func_execute_command): New function.
32780         (func_import): Don't show the module list and the file list if
32781         $verbose < 0.
32782         (func_create_testdir): Likewise. Use func_execute_command.
32783         (func_create_megatestdir): Use func_execute_command.
32784
32785 2007-09-08  Bruno Haible  <bruno@clisp.org>
32786
32787         * gnulib-tool (func_import): Prefer rsync over wget when available,
32788         for fetching the PO files.
32789
32790 2007-09-08  Bruno Haible  <bruno@clisp.org>
32791
32792         * posix-modules: New file. Portions copied from gnulib-tool.
32793         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32794
32795 2007-09-08  Jim Meyering  <jim@meyering.net>
32796
32797         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32798         * lib/fpending.h: Rename from __fpending.h.
32799         * lib/fpending.c: Rename from __fpending.c.
32800         Include "fpending.h", not "__fpending.h".
32801         * lib/__fpending.h, lib/__fpending.c: Remove files.
32802         * modules/fpending (Files): Reflect new file names.
32803         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32804
32805 2007-09-08  Bruno Haible  <bruno@clisp.org>
32806
32807         * m4/inttypes-h.m4: Remove stub file.
32808
32809 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32810
32811         * doc/headers/stdint.texi: Discuss #include_next issue.
32812
32813 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32814
32815         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32816
32817 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32818
32819         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32820         in variable name.
32821
32822 2007-09-03  Jim Meyering  <jim@meyering.net>
32823
32824         New module: git-version-gen.
32825         * modules/git-version-gen: New file.
32826
32827         Import changes from coreutils for bootstrap script.
32828
32829         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32830
32831         bootstrap: uses rsync to download the .po files
32832         * build-aux/bootstrap (po_download_command_format): New global.
32833         (download_po_files): Use rsync.
32834         (update_po_files): Don't remove .po files after download,
32835         so future rsync runs can take advantage of the copies.
32836
32837         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32838
32839         Solve the unnecessary-.po-file-regeneration problem once and for all.
32840         * build-aux/bootstrap (download_po_files): New function, renamed from
32841         get_translations.  Now, downloads, but doesn't update LINGUAS.
32842         (update_po_files): New function.
32843
32844         bootstrap: Ignore more.
32845         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32846         uniwidth to e.g., lib/.gitignore.
32847         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32848
32849         * build-aux/bootstrap: New setting: vc_ignore.
32850         (insert_sorted_if_absent): Create $file if absent.
32851         Adapt to new, possibly empty, list: $vc_ignore.
32852
32853         bootstrap: generate more ignorable names
32854         * build-aux/bootstrap (slurp): When generating ignorable names,
32855         also map .sin to .sed, .gperf to .c, and .y to .c.
32856
32857 2007-09-03  Jim Meyering  <jim@meyering.net>
32858
32859         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32860         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32861
32862 2007-09-02  Bruno Haible  <bruno@clisp.org>
32863
32864         Fix mis-recognition of 'mcs' on QNX 6.
32865         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32866         output contains the string "Mono".
32867         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32868         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32869
32870 2007-09-01  Bruno Haible  <bruno@clisp.org>
32871
32872         Fix collision between uniwidth/* and linebreak modules.
32873         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32874         u32_width): Remove declarations.
32875         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32876         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32877         streq3, streq2, streq1, streq0): Remove functions.
32878         (STREQ): Remove macro.
32879         (is_cjk_encoding): Remove function.
32880         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32881         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32882         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32883         * NEWS: Document the change.
32884
32885 2007-09-01  Bruno Haible  <bruno@clisp.org>
32886
32887         * lib/streq.h: Add double-inclusion guard.
32888
32889 2007-09-01  Karl Berry  <karl@gnu.org>
32890
32891         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32892
32893 2007-08-28  Jim Meyering  <jim@meyering.net>
32894
32895         Rename mreadlink_with_size to areadlink_with_size.
32896         * NEWS: Document the change.
32897         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32898         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32899         * lib/mreadlink.h: Rename this to...
32900         * lib/areadlink.h: ...this.
32901         * modules/mreadlink-with-size: Rename this to...
32902         * modules/areadlink-with-size: ...this.
32903         * lib/canonicalize.c: Reflect the renaming.
32904         * modules/canonicalize: Likewise.
32905
32906 2007-08-26  Bruno Haible  <bruno@clisp.org>
32907
32908         * gnulib-tool (func_import): When deciding which files to remove,
32909         consider also dangling symbolic links.
32910         Reported by Eric Blake.
32911
32912 2007-08-26  Bruno Haible  <bruno@clisp.org>
32913
32914         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32915
32916 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32917
32918         * lib/readline.c: Don't include getline.h, the prototype is now
32919         found in stdio.h.
32920
32921 2007-08-23  Jim Meyering  <jim@meyering.net>
32922
32923         Getdelim touchup.
32924         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32925         around the funlockfile call, since funlockfile never sets errno.
32926         Don't set errno upon failed realloc.
32927
32928 2007-08-22  Eric Blake  <ebb9@byu.net>
32929
32930         Getline touchups.
32931         * lib/getdelim.c (getdelim): Revert regression that required *n to
32932         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32934         getdelim, rather than whether implementation is missing.
32935         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32936         * lib/stdio_.h (getline): Also declare if replacement is
32937         required.
32938         * doc/functions/getdelim.texi: New file.
32939         * doc/functions/getline.texi: Likewise.
32940         * doc/gnulib.texi (Function Substitutes): Add new files.
32941         Reported by Bruno Haible.
32942
32943 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32944
32945         * users.txt: Add Guile.
32946
32947 2007-08-22  Eric Blake  <ebb9@byu.net>
32948
32949         * tests/test-getdelim.c (main): Use remove, not unlink.
32950         * tests/test-getline.c (main): Likewise.
32951
32952         Move getline and getdelim into stdio.h, per POSIX 200x.
32953         * modules/getline (Files): Remove getline.h.
32954         (Depends-on): Add stdio.
32955         (configure.ac): Add module indicator.
32956         * modules/getdelim (Files): Remove getdelim.h.
32957         (Depends-on): Add stdio.
32958         (configure.ac): Add module indicator.
32959         * modules/stdio (Makefile.am): Work with new indicators.
32960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32962         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32963         * lib/getdelim.h: Delete.
32964         * lib/getline.h: Delete.
32965         * lib/stdio_.h (getdelim, getline): Declare.
32966         * modules/getdelim-tests: New module.
32967         * modules/getline-tests: Likewise.
32968         * tests/test-getdelim.c: New file.
32969         * tests/test-getline.c: Likewise.
32970         * NEWS: Document the change.
32971         * lib/getline.c: Update choice of header.
32972         * lib/csharpcomp.c: Likewise.
32973         * lib/getpass.c: Likewise.
32974         * lib/javacomp.c: Likewise.
32975         * lib/javaversion.c: Likewise.
32976         * lib/yesno.c: Likewise.
32977         * lib/getdelim.c: Likewise.
32978         (getdelim): Set errno on failure, and avoid memory leak.
32979
32980 2007-08-19  Bruno Haible  <bruno@clisp.org>
32981
32982         * modules/closein (Depends-on): Add freadahead.
32983         * lib/closein.c: Include freadahead.h.
32984         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32985         is zero.
32986
32987 2007-08-19  Bruno Haible  <bruno@clisp.org>
32988
32989         * modules/freadahead-tests: New file.
32990         * tests/test-freadahead.sh: New file.
32991         * tests/test-freadahead.c: New file.
32992
32993         * modules/freadahead: New file.
32994         * lib/freadahead.h: New file.
32995         * lib/freadahead.c: New file.
32996         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32997         fbufmode, fpurge, freadable, fwritable.
32998
32999 2007-08-19  Eric Blake  <ebb9@byu.net>
33000
33001         Test yesno in combination with closein.
33002         * lib/yesno.c (yesno): Document use of stdin.
33003         * modules/yesno-tests (Files): New module.
33004         * tests/test-yesno.c (main): New file.
33005         * tests/test-yesno.sh: Likewise.
33006
33007 2007-08-19  Bruno Haible  <bruno@clisp.org>
33008
33009         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33010         * lib/fseeko.c (rpl_fseeko): Likewise.
33011         * lib/fseterr.c (fseterr): Likewise.
33012
33013 2007-08-19  Bruno Haible  <bruno@clisp.org>
33014
33015         * tests/test-lseek.c (main): Disable a test for BeOS.
33016         * doc/functions/lseek.texi: Document the BeOS bug.
33017
33018 2007-08-19  Bruno Haible  <bruno@clisp.org>
33019             Eric Blake  <ebb9@byu.net>
33020
33021         * lib/lseek.c: Include <sys/stat.h>.
33022         (rpl_lseek): Add workaround code also for Unix platforms.
33023         Needed for BeOS.
33024         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33025         * doc/functions/lseek.texi: Document BeOS definiency.
33026
33027 2007-08-18  Bruno Haible  <bruno@clisp.org>
33028
33029         * modules/fstrcmp-tests: New file.
33030         * tests/test-fstrcmp.c: New file.
33031
33032 2007-08-18  Bruno Haible  <bruno@clisp.org>
33033
33034         * modules/fstrcmp: New file, from GNU gettext with modifications.
33035         * lib/fstrcmp.h: New file, from GNU gettext.
33036         * lib/fstrcmp.c: New file, from GNU gettext.
33037         * MODULES.html.sh (String handling): Add fstrcmp.
33038
33039 2007-08-18  Bruno Haible  <bruno@clisp.org>
33040
33041         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33042         'bool'.
33043         (diag, compareseq): Remove const from the ctxt argument.
33044         (USE_HEURISTIC): Undefine at the end.
33045
33046 2007-08-18  Jim Meyering  <jim@meyering.net>
33047
33048         New file: lib/idcache.h
33049         * NEWS: Mention the addition.
33050         * modules/idcache (Files): Add lib/idcache.h
33051         * lib/idcache.c: Include "idcache.h".
33052         Don't include <sys/types.h>.
33053         Add a FIXME comment.
33054         Move file-scoped "static" declarations to the top.
33055         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33056
33057 2007-08-17  Bruno Haible  <bruno@clisp.org>
33058         and Paul Eggert  <eggert@cs.ucla.edu>
33059
33060         * MODULES.html.sh: Add diffseq.
33061         * modules/diffseq: New file.
33062         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33063         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33064
33065 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33066
33067         Import changes from coreutils for bootstrap script.
33068
33069         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33070
33071         * build-aux/bootstrap (slurp): Work even in environments where
33072         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33073         current code does not slurp files whose names start with ".", and
33074         this looks like it might be a troublesome area.
33075
33076         2007-07-11  Jim Meyering  <jim@meyering.net>
33077
33078         If there's a GPL vN copyright comment, require that N == 3.
33079
33080         2007-07-08  Jim Meyering  <jim@meyering.net>
33081
33082         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33083         * build-aux/bootstrap (mam_template): Move definition out of loop.
33084
33085         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33086
33087         * build-aux/bootstrap (symlink_to_dir): Rename function from
33088         symlink_to_gnulib.  Add a directory parameter.  Update all
33089         callers.
33090         (cp_mark_as_generated): Also check for -- and link to -- files in
33091         gl/.
33092
33093         2007-07-08  Jim Meyering  <jim@meyering.net>
33094
33095         Adapt to deeper hierarchy in gnulib.
33096         * build-aux/bootstrap (symlink_to_dir): If the destination
33097         directory doesn't exist, create it. This is required at least for
33098         "lib/uniwidth/cjk.h".
33099
33100         2007-05-15  Jim Meyering  <jim@meyering.net>
33101
33102         * build-aux/bootstrap: Now that generated Makefile.am files
33103         are no longer under version control, they must be created at
33104         bootstrap time.
33105
33106 2007-08-14  Ben Pfaff  <blp@gnu.org>
33107
33108         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33109
33110 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33111
33112         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33113         given the changes below.
33114         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33115         even on hosts that have padding bits beyond the supported 64.
33116
33117 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33118
33119         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33120         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33121         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33122         depends on it.
33123         (xstrtol_error): Remove.
33124         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33125         but with a different signature.
33126         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33127         * lib/xstrtol-error.c: Include exitfail.h.
33128         (xstrtol_fatal): New function, with a different signature from the
33129         old xstrtol_error, so that the caller need not worry about passing
33130         in an exit status, or about storage management of the option argument.
33131         (xstrtol_error): Now a static function.  Redo signature to
33132         implement xstrtol_fatal.  Output the correct number of hyphens in
33133         front of the option so that the caller need not worry about
33134         storage management.
33135         (N_): New macro.
33136         (_): Remove; not used now.
33137         * modules/xstrtol: Depend on getopt.
33138         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33139         of old STRTOL_FATAL_ERROR macro.
33140         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33141         of test program.
33142         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33143         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33144
33145 2007-08-08  Eric Blake  <ebb9@byu.net>
33146
33147         * lib/xstrtol-error.c: Add missing include.
33148
33149         Move xstrtol messages into gnulib domain, when --pobase is used.
33150         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33151         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33152         * modules/xstrtol (Files): Distribute new file.
33153         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33154         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33155         * tests/test-xstrtol.c: ...into new file.
33156         * tests/test-xstrtoul.c: Also test xstrtoul.
33157         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33158         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33159         * tests/test-xstrtol.sh: Drive the tests.
33160         * tests/test-xstrtoimax.sh: Likewise.
33161         * tests/test-xstrtoumax.sh: Likewise.
33162         * modules/xstrtol-tests: New module.
33163         * modules/xstrtoimax-tests: Likewise.
33164         * modules/xstrtoumax-tests: Likewise.
33165
33166 2007-08-08  Jim Meyering  <jim@meyering.net>
33167
33168         New function: mfile_name_concat.
33169         * lib/filenamecat.c (mfile_name_concat): New function, just like
33170         file_name_concat, but return NULL upon failure rather than exiting
33171         with a diagnostic.
33172         * lib/filenamecat.h: Declare it.
33173
33174 2007-08-07  Bruno Haible  <bruno@clisp.org>
33175
33176         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33177         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33178         warning from gcc.
33179         Reported by Eric Blake.
33180
33181 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33182
33183         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33184         * modules/crypto/arcfour (License): Likewise.
33185         * modules/crypto/des-tests (License): Likewise.
33186         * modules/crypto/gc-arctwo-tests (License): Likewise.
33187         * modules/crypto/gc-des-tests (License): Likewise.
33188         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33189         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33190         * modules/crypto/gc-md2-tests (License): Likewise.
33191         * modules/crypto/gc-md4-tests (License): Likewise.
33192         * modules/crypto/gc-md5-tests (License): Likewise.
33193         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33194         * modules/crypto/gc-rijndael-tests (License): Likewise.
33195         * modules/crypto/gc-sha1-tests (License): Likewise.
33196         * modules/crypto/gc-tests (License): Likewise.
33197         * modules/crypto/hmac-md5 (License): Likewise.
33198         * modules/crypto/hmac-sha1 (License): Likewise.
33199         * modules/crypto/md2-tests (License): Likewise.
33200         * modules/crypto/md4-tests (License): Likewise.
33201         * modules/crypto/md5 (License): Likewise.
33202         * modules/crypto/rijndael (License): Likewise.
33203         * modules/crypto/sha1 (License): Likewise.
33204         * modules/memxor (License): Likewise.
33205
33206 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33207         and Bruno Haible  <bruno@clisp.org>
33208
33209         * NEWS: Describe interface changes to human, xstrtol.
33210         * lib/human.h: Include <xstrtol.h>.
33211         (human_options): Return enum strtol_error, not int.  Remove
33212         bool arg; take int * instead.
33213         * lib/human.c: Don't include "gettext.h".
33214         (_): Remove; no longer used.
33215         Don't include <xstrtol.h>, since human.h does it.
33216         (human_options): Adjust to abovementioned interface changes.
33217         Do not report error to stderr; that's now the caller's
33218         responsibility.
33219         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33220         interface change.
33221         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33222         Str, Argument_type_string.  All uses changed.  Put " argument"
33223         in diagnostics to make them clearer.  Change wording of suffix
33224         message for clarity.
33225         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33226         Argument_type_string.
33227         (STRTOL_FATAL_WARN): Remove; no longer used.
33228         * modules/human (Depends-on): Remove gettext-h.
33229
33230 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33231
33232         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33233
33234 2007-07-31  Bruno Haible  <bruno@clisp.org>
33235
33236         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33237         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33238         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33239
33240 2007-07-31  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33243         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33244
33245 2007-07-30  Bruno Haible  <bruno@clisp.org>
33246
33247         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33248         * modules/c-ctype (License): Likewise.
33249         * modules/c-strcase (License): Likewise.
33250         * modules/check-version (License): Likewise.
33251         * modules/iconv (License): Likewise.
33252         * modules/iconv_open (License): Likewise.
33253         * modules/read-file (License): Likewise.
33254         * modules/striconv (License): Likewise.
33255         * modules/strverscmp (License): Likewise.
33256         * modules/vasprintf (License): Likewise.
33257         * modules/crypto/des (License): Likewise.
33258         * modules/crypto/gc (License): Likewise.
33259         * modules/crypto/gc-arcfour (License): Likewise.
33260         * modules/crypto/gc-arctwo (License): Likewise.
33261         * modules/crypto/gc-des (License): Likewise.
33262         * modules/crypto/gc-hmac-md5 (License): Likewise.
33263         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33264         * modules/crypto/gc-md2 (License): Likewise.
33265         * modules/crypto/gc-md4 (License): Likewise.
33266         * modules/crypto/gc-md5 (License): Likewise.
33267         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33268         * modules/crypto/gc-random (License): Likewise.
33269         * modules/crypto/gc-rijndael (License): Likewise.
33270         * modules/crypto/gc-sha1 (License): Likewise.
33271         * modules/crypto/md2 (License): Likewise.
33272         * modules/crypto/md4 (License): Likewise.
33273
33274 2007-07-30  Jim Meyering  <jim@meyering.net>
33275
33276         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33277         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33278         it has valid stat data.  This bug would cause du not to count the
33279         sizes of inaccessible directories.
33280         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33281         in <http://bugzilla.redhat.com/250077>.
33282
33283 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33284             Bruno Haible  <bruno@clisp.org>
33285
33286         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33287         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33288         #include_next, gives a diagnostic about it, but reports no error in
33289         the exit code.
33290         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33291
33292 2007-07-24  Ben Pfaff  <blp@gnu.org>
33293
33294         Improve name: "count-one-bits" is better than "popcount".
33295         * MODULES.html.sh: Update name.
33296         * lib/popcount.h: Renamed lib/count-one-bits.h.
33297         (popcount): Renamed count_one_bits.
33298         (popcountl): Renamed count_one_bits_l.
33299         (popcountll): Renamed count_one_bits_ll.
33300         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33301         * modules/popcount: Renamed module/count-one-bits.
33302         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33303         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33304
33305 2007-07-23  Ben Pfaff  <blp@gnu.org>
33306
33307         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33308         better code generation, and add U to large constants to avoid
33309         warnings, in non-GCC case.
33310         Suggested by Bruno Haible.
33311
33312 2007-07-23  Ben Pfaff  <blp@gnu.org>
33313
33314         * lib/popcount.h: Use verify_true instead of if...abort.
33315         * modules/popcount: Depend on verify module.
33316         Suggested by Jim Meyering.
33317
33318 2007-07-23  Bruno Haible  <bruno@clisp.org>
33319
33320         * gnulib-tool (func_import): Create a .cvsignore file also when the
33321         directory is not yet in CVS but the toplevel directory is. When
33322         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33323         Reported by Karl Berry.
33324
33325 2007-07-22  Ben Pfaff  <blp@gnu.org>
33326
33327         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33328         case.
33329         Suggested by Eric Blake.
33330
33331 2007-07-22  Ben Pfaff  <blp@gnu.org>
33332
33333         New module: popcount.
33334         * MODULES.html.sh: Add popcount.
33335         * modules/popcount: New file.
33336         * modules/popcount-tests: New file.
33337         * tests/test-popcount.c: New file.
33338         * lib/popcount.h: New file.
33339         * m4/popcount.m4: New file.
33340
33341 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33342
33343         * build-aux/announce-gen: Update to GPLv3.
33344
33345         * build-aux/config.guess: Update from config.
33346
33347 2007-07-21  Bruno Haible  <bruno@clisp.org>
33348
33349         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33350         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33351
33352 2007-07-20  Jim Meyering  <jim@meyering.net>
33353
33354         * check-module: Diagnose a self-dependency.
33355
33356 2007-07-19  Bruno Haible  <bruno@clisp.org>
33357
33358         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33359         empty.
33360         Reported by Eric Blake.
33361
33362 2007-07-18  Bruno Haible  <bruno@clisp.org>
33363
33364         * gnulib-tool: New options --po-base, --po-domain.
33365         (func_usage): Document them.
33366         (pobase, po_domain): New variables.
33367         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33368         DEFAULT_TEXT_DOMAIN.
33369         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33370         (func_import): Consider pobase and po_domain. Create a po/ directory.
33371         (func_create_testdir): Set pobase and po_domain to empty.
33372         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33373         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33374
33375 2007-07-18  Bruno Haible  <bruno@clisp.org>
33376
33377         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33378         EXTRA_DIST augmentation for files in build-aux/.
33379
33380 2007-07-16  Bruno Haible  <bruno@clisp.org>
33381
33382         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33383         * modules/getdelim (License): Likewise.
33384
33385 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33386
33387         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33388         * modules/d-type (License): Likewise.
33389         * modules/extensions (License): Likewise.
33390         * modules/fnmatch (License): Likewise.
33391         * modules/fseeko (License): Likewise.
33392         * modules/getaddrinfo (License): Likewise.
33393         * modules/getline (License): Likewise.
33394         * modules/getlogin_r (License): Likewise.
33395         * modules/getpass (License): Likewise.
33396         * modules/gettimeofday (License): Likewise.
33397         * modules/glob (License): Likewise.
33398         * modules/inet_ntop (License): Likewise.
33399         * modules/malloc (License): Likewise.
33400         * modules/malloca (License): Likewise.
33401         * modules/memmem (License): Likewise.
33402         * modules/mempcpy (License): Likewise.
33403         * modules/memset (License): Likewise.
33404         * modules/minmax (License): Likewise.
33405         * modules/mktime (License): Likewise.
33406         * modules/netinet_in (License): Likewise.
33407         * modules/pathmax (License): Likewise.
33408         * modules/poll (License): Likewise.
33409         * modules/regex (License): Likewise.
33410         * modules/snprintf (License): Likewise.
33411         * modules/stdbool (License): Likewise.
33412         * modules/stdint (License): Likewise.
33413         * modules/stdio (License): Likewise.
33414         * modules/strcase (License): Likewise.
33415         * modules/strcasestr (License): Likewise.
33416         * modules/strdup (License): Likewise.
33417         * modules/string (License): Likewise.
33418         * modules/strndup (License): Likewise.
33419         * modules/strnlen (License): Likewise.
33420         * modules/strpbrk (License): Likewise.
33421         * modules/strptime (License): Likewise.
33422         * modules/strsep (License): Likewise.
33423         * modules/sys_select (License): Likewise.
33424         * modules/sys_socket (License): Likewise.
33425         * modules/sys_stat (License): Likewise.
33426         * modules/sys_time (License): Likewise.
33427         * modules/time (License): Likewise.
33428         * modules/time_r (License): Likewise.
33429         * modules/timegm (License): Likewise.
33430         * modules/unistd (License): Likewise.
33431         * modules/vsnprintf (License): Likewise.
33432         * modules/wctype (License): Likewise.
33433
33434 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33435
33436         * modules/argz (License): LGPLv2+.
33437
33438 2007-07-15  Karl Berry  <karl@gnu.org>
33439
33440         * doc/gnulib.texi: revise node structure per new fdl.texi.
33441
33442 2007-07-14  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33445         the output file.
33446         * lib/uniname/uninames.h: Regenerated.
33447
33448 2007-07-14  Karl Berry  <karl@gnu.org>
33449
33450         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33451         omitting sectioning and index commands.
33452
33453 2007-07-13  Bruno Haible  <bruno@clisp.org>
33454
33455         New gnulib-tool option --more-symlinks.
33456         * gnulib-tool (func_usage): Document --more-symlinks.
33457         (do_copyrights): New variable.
33458         Recognize option --more-symlinks.
33459         (func_import): Don't add a copyright notice transform to
33460         sed_transform_lib_file if do_copyrights is empty.
33461
33462 2007-07-13  Bruno Haible  <bruno@clisp.org>
33463
33464         * lib/vasnprintf.c (decimal_point_char): Define also if
33465         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33466         && !NEED_PRINTF_DIRECTIVE_A.
33467         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33468         Gary V. Vaughan <gary@gnu.org>.
33469
33470 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33471
33472         * lib/inttypes_.h: Undo previous change, since it was fixed
33473         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33474
33475 2007-07-13  Bruno Haible  <bruno@clisp.org>
33476
33477         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33478         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33479
33480 2007-07-13  Jim Meyering  <jim@meyering.net>
33481
33482         df: Don't fail for Tru64's "file-on-file mount".
33483         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33484         so we fall through and use statfs instead.  Details here:
33485         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33486         Reported by Albert Chin.
33487
33488 2007-07-13  Bruno Haible  <bruno@clisp.org>
33489
33490         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33491         * modules/configmake (License): Likewise.
33492         * modules/gettext (License): Likewise.
33493         * modules/gettext-h (License): Likewise.
33494         * modules/include_next (License): Likewise.
33495         * modules/link-warning (License): Likewise.
33496         * modules/localcharset (License): Likewise.
33497         * modules/localename (License): Likewise.
33498         * modules/lock (License): Likewise.
33499         * modules/relocatable-lib-lgpl (License): Likewise.
33500         * modules/size_max (License): Likewise.
33501         * modules/vasnprintf (License): Likewise.
33502         * modules/wchar (License): Likewise.
33503         * modules/xsize (License): Likewise.
33504
33505 2007-07-13  Bruno Haible  <bruno@clisp.org>
33506
33507         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33508         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33509
33510 2007-07-12  Bruno Haible  <bruno@clisp.org>
33511
33512         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33513         in the modules files.
33514
33515 2007-07-11  Karl Berry  <karl@gnu.org>
33516
33517         * MODULES.html.sh (func_module): use
33518          sed -e '\|^'"${includefile}"'$|d'
33519          instead of /.../d, to avoid errors on $includefile's containing /.
33520
33521 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33522
33523         * gnulib-tool (func_import): Avoid duplication of --avoid
33524         statements
33525         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33526         names to `_' in variable names.
33527
33528 2007-07-10  Eric Blake  <ebb9@byu.net>
33529
33530         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33531         * NEWS: Document this change.
33532
33533 2007-07-08  Bruno Haible  <bruno@clisp.org>
33534
33535         Update to Unicode 5.0.
33536         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33537         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33538         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33539         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33540         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33541         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33542         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33543         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33544         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33545         U+10A3F, U+1D242..U+1D244.
33546         (nonspacing_table_ind): Update.
33547         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33548         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33549
33550 2007-07-08  Bruno Haible  <bruno@clisp.org>
33551
33552         Update to Unicode 5.0.
33553         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33554         code transform. Extend the name index field of unicode_name_to_code and
33555         unicode_code_to_name from 16 to 24 bits.
33556         * lib/uniname/uniname.c (unicode_character_name,
33557         unicode_name_character): Add the range 0x12xxx to the code transform.
33558         * lib/uniname/uninames.h: Regenerated.
33559         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33560
33561 2007-07-07  Bruno Haible  <bruno@clisp.org>
33562
33563         * modules/wcwidth-tests: New file.
33564         * tests/test-wcwidth.c: New file.
33565
33566         Work around MacOS X wcwidth() bug.
33567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33568         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33569         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33570         original wcwidth in non-UTF-8 locales.
33571         * modules/wcwidth (Depends-on): Add localcharset, streq,
33572         uniwidth/width.
33573         * doc/functions/wcwidth.texi: Update.
33574
33575 2007-07-07  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33578         (wcwidth): New declaration.
33579         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33580         macros.
33581         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33582         here. Prepare for creating <wchar.h> unconditionally.
33583         * modules/wchar (Depends-on): Add link-warning.
33584         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33585         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33586         * lib/wcwidth.h: Remove file.
33587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33588         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33589         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33590         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33591         (Include): Replace wcwidth.h with <wchar.h>.
33592         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33593         * lib/mbchar.h: Don't include wcwidth.h.
33594         * lib/mbswidth.c: Likewise.
33595         * NEWS: Mention the change.
33596
33597 2007-07-07  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33600         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33601         definition with an external declaration.
33602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33603         defined as a function. Remove AC_C_INLINE requirement.
33604         * modules/wcwidth (Files): Add lib/wcwidth.c.
33605         (Makefile.am): Remove redundant statement.
33606
33607 2007-07-07  Bruno Haible  <bruno@clisp.org>
33608
33609         * MODULES.html.sh (Unicode string functions): Add the new modules.
33610
33611         * tests/uniwidth/test-u32-strwidth.c: New file.
33612         * modules/uniwidth/u32-strwidth-tests: New file.
33613
33614         * lib/uniwidth/u32-strwidth.c: New file.
33615         * modules/uniwidth/u32-strwidth: New file.
33616
33617         * tests/uniwidth/test-u16-strwidth.c: New file.
33618         * modules/uniwidth/u16-strwidth-tests: New file.
33619
33620         * lib/uniwidth/u16-strwidth.c: New file.
33621         * modules/uniwidth/u16-strwidth: New file.
33622
33623         * tests/uniwidth/test-u8-strwidth.c: New file.
33624         * modules/uniwidth/u8-strwidth-tests: New file.
33625
33626         * lib/uniwidth/u8-strwidth.c: New file.
33627         * modules/uniwidth/u8-strwidth: New file.
33628
33629         * tests/uniwidth/test-u32-width.c: New file.
33630         * modules/uniwidth/u32-width-tests: New file.
33631
33632         * lib/uniwidth/u32-width.c: New file.
33633         * modules/uniwidth/u32-width: New file.
33634
33635         * tests/uniwidth/test-u16-width.c: New file.
33636         * modules/uniwidth/u16-width-tests: New file.
33637
33638         * lib/uniwidth/u16-width.c: New file.
33639         * modules/uniwidth/u16-width: New file.
33640
33641         * tests/uniwidth/test-u8-width.c: New file.
33642         * modules/uniwidth/u8-width-tests: New file.
33643
33644         * lib/uniwidth/u8-width.c: New file.
33645         * modules/uniwidth/u8-width: New file.
33646
33647         * tests/uniwidth/test-uc_width.c: New file.
33648         * modules/uniwidth/width-tests: New file.
33649
33650         * lib/uniwidth/width.c: New file, from GNU libiconv.
33651         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33652         * modules/uniwidth/width: New file.
33653
33654         * lib/uniwidth.h: New file, from GNU libiconv.
33655         * modules/uniwidth/base: New file.
33656
33657 2007-07-07  Bruno Haible  <bruno@clisp.org>
33658
33659         * lib/uniname.h: New file, from GNU gettext.
33660         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33661         * lib/uniname/uninames.h: New file, from GNU gettext.
33662         * lib/uniname/uniname.c: New file, from GNU gettext.
33663         * tests/uniname/test-uninames.sh: New file.
33664         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33665         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33666         * modules/uniname/base: New file.
33667         * modules/uniname/uniname: New file.
33668         * modules/uniname/uniname-tests: New file.
33669         * MODULES.html.sh (Unicode string functions): Add the new modules.
33670
33671 2007-07-06  Bruno Haible  <bruno@clisp.org>
33672
33673         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33674
33675 2007-07-06  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33678         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33679         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33680         include <sys/time.h>.
33681         Reported by Eric Blake.
33682
33683 2007-07-06  Eric Blake  <ebb9@byu.net>
33684
33685         Fix testing canonicalize on cygwin.
33686         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33687         Revert patch from 2007-06-19.
33688         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33689         canonicalize module is also in use.
33690         * tests/test-canonicalize.c: New file.
33691         * tests/test-canonicalize.sh: Likewise.
33692         * modules/canonicalize-tests: Likewise.
33693
33694 2007-07-06  Jim Meyering  <jim@meyering.net>
33695
33696         * lib/getugroups.c (getugroups): Detect getgrent failure.
33697         Adjust comment to reflect reality: this function may return -1.
33698
33699 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33700
33701         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33702         the new TP address.
33703         (usage): Fix typo
33704         (gnulib_mk): New variable.
33705
33706 2007-07-05  Jim Meyering  <jim@meyering.net>
33707
33708         Don't let endgrent clobber errno, no matter how improbable.
33709         * lib/getugroups.c (getugroups): Save and restore errno around
33710         endgrent call.
33711
33712         Close the group DB even when failing with 2^31 or more members.
33713         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33714
33715 2007-07-04  Jim Meyering  <jim@meyering.net>
33716
33717         * lib/getugroups.h: New file.
33718         * lib/getugroups.c: Include "getugroups.h".
33719         Remove uses of "register" keyword.
33720         Move local variable, "cp", down into scope where used.
33721         Give "username" parameter the "const" attribute.
33722         * modules/getugroups (Files): Add lib/getugroups.h
33723
33724 2007-07-04  Karl Berry  <karl@gnu.org>
33725
33726         * MODULES.html.sh (func_all_modules): Complete rename of
33727         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33728
33729 2007-07-02  Bruno Haible  <bruno@clisp.org>
33730
33731         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33732         mode, when inttypes.h comes from gnulib.
33733         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33734
33735 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33736
33737         * NEWS: Mention lgpl module name change.
33738
33739         * modules/lgpl-2.1: Renamed from lgpl.
33740
33741         * NEWS: Mention gpl module name change.
33742
33743         * modules/gpl-3.0: New file, based on gpl-2.0.
33744
33745         * modules/gpl-2.0: Renamed from gpl.
33746
33747         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33748         doc/gpl-2.0.texi.
33749
33750 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33751
33752         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33753         #define __STDC_LIMIT_MACROS temporarily while including
33754         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33755         Problem reported by Joel E. Denny in
33756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33757
33758 2007-07-01  Bruno Haible  <bruno@clisp.org>
33759
33760         * lib/unistdio.h: New file.
33761         * lib/unistdio/u-asnprintf.h: New file.
33762         * lib/unistdio/u-asprintf.h: New file.
33763         * lib/unistdio/u-printf-args.c: New file.
33764         * lib/unistdio/u-printf-args.h: New file.
33765         * lib/unistdio/u-printf-parse.h: New file.
33766         * lib/unistdio/u-snprintf.h: New file.
33767         * lib/unistdio/u-sprintf.h: New file.
33768         * lib/unistdio/u-vasprintf.h: New file.
33769         * lib/unistdio/u-vsnprintf.h: New file.
33770         * lib/unistdio/u-vsprintf.h: New file.
33771         * lib/unistdio/ulc-asnprintf.c: New file.
33772         * lib/unistdio/ulc-asprintf.c: New file.
33773         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33774         * lib/unistdio/ulc-printf-parse.c: New file.
33775         * lib/unistdio/ulc-snprintf.c: New file.
33776         * lib/unistdio/ulc-sprintf.c: New file.
33777         * lib/unistdio/ulc-vasnprintf.c: New file.
33778         * lib/unistdio/ulc-vasprintf.c: New file.
33779         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33780         * lib/unistdio/ulc-vsnprintf.c: New file.
33781         * lib/unistdio/ulc-vsprintf.c: New file.
33782         * lib/unistdio/u8-asnprintf.c: New file.
33783         * lib/unistdio/u8-asprintf.c: New file.
33784         * lib/unistdio/u8-printf-parse.c: New file.
33785         * lib/unistdio/u8-snprintf.c: New file.
33786         * lib/unistdio/u8-sprintf.c: New file.
33787         * lib/unistdio/u8-vasnprintf.c: New file.
33788         * lib/unistdio/u8-vasprintf.c: New file.
33789         * lib/unistdio/u8-vsnprintf.c: New file.
33790         * lib/unistdio/u8-vsprintf.c: New file.
33791         * lib/unistdio/u8-u8-asnprintf.c: New file.
33792         * lib/unistdio/u8-u8-asprintf.c: New file.
33793         * lib/unistdio/u8-u8-snprintf.c: New file.
33794         * lib/unistdio/u8-u8-sprintf.c: New file.
33795         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33796         * lib/unistdio/u8-u8-vasprintf.c: New file.
33797         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33798         * lib/unistdio/u8-u8-vsprintf.c: New file.
33799         * lib/unistdio/u16-asnprintf.c: New file.
33800         * lib/unistdio/u16-asprintf.c: New file.
33801         * lib/unistdio/u16-printf-parse.c: New file.
33802         * lib/unistdio/u16-snprintf.c: New file.
33803         * lib/unistdio/u16-sprintf.c: New file.
33804         * lib/unistdio/u16-vasnprintf.c: New file.
33805         * lib/unistdio/u16-vasprintf.c: New file.
33806         * lib/unistdio/u16-vsnprintf.c: New file.
33807         * lib/unistdio/u16-vsprintf.c: New file.
33808         * lib/unistdio/u16-u16-asnprintf.c: New file.
33809         * lib/unistdio/u16-u16-asprintf.c: New file.
33810         * lib/unistdio/u16-u16-snprintf.c: New file.
33811         * lib/unistdio/u16-u16-sprintf.c: New file.
33812         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33813         * lib/unistdio/u16-u16-vasprintf.c: New file.
33814         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33815         * lib/unistdio/u16-u16-vsprintf.c: New file.
33816         * lib/unistdio/u32-asnprintf.c: New file.
33817         * lib/unistdio/u32-asprintf.c: New file.
33818         * lib/unistdio/u32-printf-parse.c: New file.
33819         * lib/unistdio/u32-snprintf.c: New file.
33820         * lib/unistdio/u32-sprintf.c: New file.
33821         * lib/unistdio/u32-vasnprintf.c: New file.
33822         * lib/unistdio/u32-vasprintf.c: New file.
33823         * lib/unistdio/u32-vsnprintf.c: New file.
33824         * lib/unistdio/u32-vsprintf.c: New file.
33825         * lib/unistdio/u32-u32-asnprintf.c: New file.
33826         * lib/unistdio/u32-u32-asprintf.c: New file.
33827         * lib/unistdio/u32-u32-snprintf.c: New file.
33828         * lib/unistdio/u32-u32-sprintf.c: New file.
33829         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33830         * lib/unistdio/u32-u32-vasprintf.c: New file.
33831         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33832         * lib/unistdio/u32-u32-vsprintf.c: New file.
33833         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33834         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33835         * tests/unistdio/test-ulc-printf1.h: New file.
33836         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33837         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33838         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33839         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33840         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33841         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33842         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33843         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33844         * tests/unistdio/test-u8-asnprintf1.c: New file.
33845         * tests/unistdio/test-u8-asnprintf1.h: New file.
33846         * tests/unistdio/test-u8-printf1.h: New file.
33847         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33848         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33849         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33850         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33851         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33852         * tests/unistdio/test-u8-vasprintf1.c: New file.
33853         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33854         * tests/unistdio/test-u8-vsprintf1.c: New file.
33855         * tests/unistdio/test-u16-asnprintf1.c: New file.
33856         * tests/unistdio/test-u16-asnprintf1.h: New file.
33857         * tests/unistdio/test-u16-printf1.h: New file.
33858         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33859         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33860         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33861         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33862         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33863         * tests/unistdio/test-u16-vasprintf1.c: New file.
33864         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33865         * tests/unistdio/test-u16-vsprintf1.c: New file.
33866         * tests/unistdio/test-u32-asnprintf1.c: New file.
33867         * tests/unistdio/test-u32-asnprintf1.h: New file.
33868         * tests/unistdio/test-u32-printf1.h: New file.
33869         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33870         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33871         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33872         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33873         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33874         * tests/unistdio/test-u32-vasprintf1.c: New file.
33875         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33876         * tests/unistdio/test-u32-vsprintf1.c: New file.
33877         * modules/unistdio/base: New file.
33878         * modules/unistdio/u-printf-args: New file.
33879         * modules/unistdio/ulc-asnprintf: New file.
33880         * modules/unistdio/ulc-asprintf: New file.
33881         * modules/unistdio/ulc-fprintf: New file.
33882         * modules/unistdio/ulc-printf-parse: New file.
33883         * modules/unistdio/ulc-snprintf: New file.
33884         * modules/unistdio/ulc-sprintf: New file.
33885         * modules/unistdio/ulc-vasnprintf: New file.
33886         * modules/unistdio/ulc-vasprintf: New file.
33887         * modules/unistdio/ulc-vfprintf: New file.
33888         * modules/unistdio/ulc-vsnprintf: New file.
33889         * modules/unistdio/ulc-vsprintf: New file.
33890         * modules/unistdio/u8-asnprintf: New file.
33891         * modules/unistdio/u8-asprintf: New file.
33892         * modules/unistdio/u8-printf-parse: New file.
33893         * modules/unistdio/u8-snprintf: New file.
33894         * modules/unistdio/u8-sprintf: New file.
33895         * modules/unistdio/u8-vasnprintf: New file.
33896         * modules/unistdio/u8-vasprintf: New file.
33897         * modules/unistdio/u8-vsnprintf: New file.
33898         * modules/unistdio/u8-vsprintf: New file.
33899         * modules/unistdio/u8-u8-asnprintf: New file.
33900         * modules/unistdio/u8-u8-asprintf: New file.
33901         * modules/unistdio/u8-u8-snprintf: New file.
33902         * modules/unistdio/u8-u8-sprintf: New file.
33903         * modules/unistdio/u8-u8-vasnprintf: New file.
33904         * modules/unistdio/u8-u8-vasprintf: New file.
33905         * modules/unistdio/u8-u8-vsnprintf: New file.
33906         * modules/unistdio/u8-u8-vsprintf: New file.
33907         * modules/unistdio/u16-asnprintf: New file.
33908         * modules/unistdio/u16-asprintf: New file.
33909         * modules/unistdio/u16-printf-parse: New file.
33910         * modules/unistdio/u16-snprintf: New file.
33911         * modules/unistdio/u16-sprintf: New file.
33912         * modules/unistdio/u16-vasnprintf: New file.
33913         * modules/unistdio/u16-vasprintf: New file.
33914         * modules/unistdio/u16-vsnprintf: New file.
33915         * modules/unistdio/u16-vsprintf: New file.
33916         * modules/unistdio/u16-u16-asnprintf: New file.
33917         * modules/unistdio/u16-u16-asprintf: New file.
33918         * modules/unistdio/u16-u16-snprintf: New file.
33919         * modules/unistdio/u16-u16-sprintf: New file.
33920         * modules/unistdio/u16-u16-vasnprintf: New file.
33921         * modules/unistdio/u16-u16-vasprintf: New file.
33922         * modules/unistdio/u16-u16-vsnprintf: New file.
33923         * modules/unistdio/u16-u16-vsprintf: New file.
33924         * modules/unistdio/u32-asnprintf: New file.
33925         * modules/unistdio/u32-asprintf: New file.
33926         * modules/unistdio/u32-printf-parse: New file.
33927         * modules/unistdio/u32-snprintf: New file.
33928         * modules/unistdio/u32-sprintf: New file.
33929         * modules/unistdio/u32-vasnprintf: New file.
33930         * modules/unistdio/u32-vasprintf: New file.
33931         * modules/unistdio/u32-vsnprintf: New file.
33932         * modules/unistdio/u32-vsprintf: New file.
33933         * modules/unistdio/u32-u32-asnprintf: New file.
33934         * modules/unistdio/u32-u32-asprintf: New file.
33935         * modules/unistdio/u32-u32-snprintf: New file.
33936         * modules/unistdio/u32-u32-sprintf: New file.
33937         * modules/unistdio/u32-u32-vasnprintf: New file.
33938         * modules/unistdio/u32-u32-vasprintf: New file.
33939         * modules/unistdio/u32-u32-vsnprintf: New file.
33940         * modules/unistdio/u32-u32-vsprintf: New file.
33941         * modules/unistdio/ulc-asnprintf-tests: New file.
33942         * modules/unistdio/ulc-vasnprintf-tests: New file.
33943         * modules/unistdio/ulc-vasprintf-tests: New file.
33944         * modules/unistdio/ulc-vsnprintf-tests: New file.
33945         * modules/unistdio/ulc-vsprintf-tests: New file.
33946         * modules/unistdio/u8-asnprintf-tests: New file.
33947         * modules/unistdio/u8-vasnprintf-tests: New file.
33948         * modules/unistdio/u8-vasprintf-tests: New file.
33949         * modules/unistdio/u8-vsnprintf-tests: New file.
33950         * modules/unistdio/u8-vsprintf-tests: New file.
33951         * modules/unistdio/u16-asnprintf-tests: New file.
33952         * modules/unistdio/u16-vasnprintf-tests: New file.
33953         * modules/unistdio/u16-vasprintf-tests: New file.
33954         * modules/unistdio/u16-vsnprintf-tests: New file.
33955         * modules/unistdio/u16-vsprintf-tests: New file.
33956         * modules/unistdio/u32-asnprintf-tests: New file.
33957         * modules/unistdio/u32-vasnprintf-tests: New file.
33958         * modules/unistdio/u32-vasprintf-tests: New file.
33959         * modules/unistdio/u32-vsnprintf-tests: New file.
33960         * modules/unistdio/u32-vsprintf-tests: New file.
33961         * MODULES.html.sh (Unicode string functions): Add the new modules.
33962
33963 2007-07-01  Bruno Haible  <bruno@clisp.org>
33964
33965         * lib/sprintf.c (sprintf): Limit the available length estimation,
33966         to avoid address wraparound.
33967         * lib/vsprintf.c (vsprintf): Likewise.
33968         * modules/sprintf-posix (Dependencies): Add stdint.
33969         * modules/vsprintf-posix (Dependencies): Likewise.
33970
33971 2007-07-01  Bruno Haible  <bruno@clisp.org>
33972
33973         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33974         Windows PATH as well. Conservative double-quoting. Comments.
33975
33976 2007-07-01  Bruno Haible  <bruno@clisp.org>
33977             Eric Blake  <ebb9@byu.net>
33978             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33979
33980         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33981         empty components in $PATH, denoting '.'.
33982
33983 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33984
33985         * gnulib-tool: Fix indentation.
33986         (func_create_megatestdir): Likewise.
33987         Report by Bruno Haible.
33988
33989 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33990
33991         Sync from Automake.
33992         * build-aux/gnupload: Fix shell portability issues with for loops.
33993         Report by Karl Berry.
33994
33995 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33996
33997         * build-aux/maint.mk (POURL): Use translationproject.org.
33998
33999 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34000             Bruno Haible  <bruno@clisp.org>
34001
34002         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34003         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34004         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34005         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34006         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34007
34008 2007-06-27  Bruno Haible  <bruno@clisp.org>
34009
34010         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34011         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34012
34013 2007-06-26  Karl Berry  <karl@gnu.org>
34014
34015         * MODULES.html.sh: remove xreadlink-with-size.
34016
34017 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34018
34019         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34020         method that I hope also handles the double-include problem noted
34021         by Bruno Haible in
34022         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34023
34024 2007-06-23  Bruno Haible  <bruno@clisp.org>
34025
34026         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34027         Don't let the 'mostlyclean' target fail if the last subdirectory could
34028         not be removed.
34029         Reported by Karl Berry.
34030
34031 2007-06-23  Bruno Haible  <bruno@clisp.org>
34032
34033         * gnulib-tool (echo): Add a speedier workaround for ksh.
34034         * tests/test-echo.sh: Likewise.
34035
34036 2007-06-23  Bruno Haible  <bruno@clisp.org>
34037
34038         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34039         * tests/test-echo.sh: Likewise.
34040
34041 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34042
34043         * gnulib-tool (IFS): Initialize early, so we don't set it to
34044         empty later.
34045         (self_abspathname): Rewrite algorithm to set it, reindent.
34046         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34047         (func_create_megatestdir): Merge some sed scripts.
34048
34049 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34050
34051         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34052         exposed by Sun Studio 11 cc on Solaris 8.
34053
34054 2007-06-22  Bruno Haible  <bruno@clisp.org>
34055
34056         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34057         backslashes.
34058         * tests/test-echo.sh: New file.
34059
34060 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34061
34062         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34063         simplify `sed_replace_build_aux' scripts, they are portable but
34064         echoing them with `echo' is not.
34065         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34066
34067 2007-06-21  Karl Berry  <karl@gnu.org>
34068
34069         * config/srclist.txt: guess we can't handle the licenses via
34070         srclist at the moment.
34071
34072 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34073
34074         * MODULES.html.sh: Add include_next.
34075         * modules/include_next: New file.
34076
34077 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34078
34079         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34080         INCLUDE_NEXT.
34081         (gl_CHECK_NEXT_HEADERS): New macro.
34082         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34083         the obsolescent gl_ABSOLUTE_HEADER.
34084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34085         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34086         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34087         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34088         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34089         * m4/math_h.m4 (gl_MATH_H): Likewise.
34090         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34091         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34092         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34093         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34094         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34095         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34096         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34097         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34098         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34099         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34101         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34102         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34103         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34104         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34105         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34106         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34107         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34108         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34109         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34110         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34111         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34112         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34113         * lib/float_.h: Likewise.
34114         * lib/inttypes_.h: Likewise.
34115         * lib/math_.h: Likewise.
34116         * lib/search_.h: Likewise.
34117         * lib/signal_.h: Likewise.
34118         * lib/stdint_.h: Likewise.
34119         * lib/stdio_.h: Likewise.
34120         * lib/stdlib_.h: Likewise.
34121         * lib/string_.h: Likewise.
34122         * lib/sys_stat_.h: Likewise.
34123         * lib/sys_time_.h: Likewise.
34124         * lib/time_.h: Likewise.
34125         * lib/unistd_.h: Likewise.
34126         * lib/wchar_.h: Likewise.
34127         * lib/wctype_.h: Likewise.
34128         * lib/dirent_.h: Likewise.
34129         * lib/iconv_.h: Likewise.
34130         * lib/locale_.h: Likewise.
34131         * lib/netinet_in_.h: Likewise.
34132         * lib/sys_select_.h: Likewise.
34133         * lib/sys_socket_.h: Likewise.
34134         * lib/sysexits_.h: Likewise.
34135         * modules/fcntl (Depends-on): Depend on include_next, not
34136         absolute_header.
34137         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34138         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34139         * modules/fchdir: Likewise.
34140         * modules/float: Likewise.
34141         * modules/iconv_open: Likewise.
34142         * modules/inttypes: Likewise.
34143         * modules/locale: Likewise.
34144         * modules/math: Likewise.
34145         * modules/netinet_in: Likewise.
34146         * modules/search: Likewise.
34147         * modules/signal: Likewise.
34148         * modules/stdint: Likewise.
34149         * modules/stdio: Likewise.
34150         * modules/stdlib: Likewise.
34151         * modules/string: Likewise.
34152         * modules/sys_select: Likewise.
34153         * modules/sys_socket: Likewise.
34154         * modules/sys_stat: Likewise.
34155         * modules/sys_time: Likewise.
34156         * modules/sysexits: Likewise.
34157         * modules/time: Likewise.
34158         * modules/unistd: Likewise.
34159         * modules/wchar: Likewise.
34160         * modules/wctype: Likewise.
34161         * modules/sys_stat: Change maintainer to "all".
34162         * modules/unistd: Likewise.
34163
34164 2007-06-20  Karl Berry  <karl@gnu.org>
34165
34166         * config/srclist.txt: track www changes in license files.
34167
34168 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34169
34170         * build-aux/bootstrap: Remove stray dot.
34171         Make sure build_aux settings are honored when linking
34172         gnulib_extra_files.
34173
34174 2007-06-19  Eric Blake  <ebb9@byu.net>
34175
34176         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34177         Allow compilation on cygwin.
34178
34179 2007-06-19  Jim Meyering  <jim@meyering.net>
34180
34181         xreadlink-with-size: Remove module.  No longer used.
34182         Ex-callers now use xreadlink or mreadlink-with-size.
34183         * modules/xreadlink-with-size: Remove module.
34184         * lib/xreadlink-with-size.c: Remove file.
34185         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34186         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34187         just before the function definition *is* accurate.
34188
34189         Eliminate one way canonicalize_filename_mode could exit.
34190         * lib/canonicalize.c (canonicalize_filename_mode):
34191         Use mreadlink_with_size, not xreadlink_with_size.
34192
34193 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34194
34195         Detect porting problems to FreeBSD/arm, which has time_t wider than
34196         long int.  Original problem reported for GNU diff by Xin Li in
34197         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34198         * modules/getdate (Depends-on): Add intprops, verify.
34199         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34200         is an integer type no wider than long int.
34201
34202 2007-06-18  Jim Meyering  <jim@meyering.net>
34203
34204         New module: mreadlink-with-size.
34205         * MODULES.html.sh: Add mreadlink-with-size.
34206         * modules/mreadlink-with-size: New module
34207         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34208         not xreadlink-with-size.
34209         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34210
34211 2007-06-16  Bruno Haible  <bruno@clisp.org>
34212
34213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34214         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34215         Reported by Gary V. Vaughan <gary@gnu.org>.
34216
34217 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34218
34219         Revamp lchown so that it lives in unistd.h where it belongs.
34220         * lib/lchown.h: Remove.
34221         * lib/dirchownmod.c: Don't include lib/lchown.h.
34222         * lib/fchownat.c: Likewise.
34223         * lib/openat.c: Likewise.
34224         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34225         does not follow symlinks.
34226         (EOPNOTSUPP): Define if not defined.
34227         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34228         is defined to 0.
34229         (lchown): New decl.
34230         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34231         Do not check for lchown decl.
34232         Set REPLACE_LCHOWN.
34233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34234         REPLACE_LCHOWN.
34235         * modules/chown: Make it clear it follows symlinks.
34236         * modules/lchown: Make it clear it doesn't follow symlinks.
34237         (Files): Remove lib/lchown.h
34238         (Depends-on): Add unistd.
34239         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34240         (Include): Include <unistd.h>, not "lchown.h".
34241         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34242         REPLACE_LCHOWN.
34243
34244 2007-06-15  Jim Meyering  <jim@meyering.net>
34245
34246         Change license (GPL to LGPL) of fsusage and dependents.
34247         * modules/fsusage (License): Change to LGPL.
34248         * modules/full-read (License): Likewise.
34249         * modules/full-write (License): Likewise.
34250         * modules/safe-read (License): Likewise.
34251         * modules/safe-write (License): Likewise.
34252
34253 2007-06-14  Ben Pfaff  <blp@gnu.org>
34254
34255         Missing part of allocsa -> malloca transition.
34256         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34257         gl_MALLOCA.
34258
34259 2007-06-12  Bruno Haible  <bruno@clisp.org>
34260
34261         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34262         to ia64, x86_64, i386.
34263         Reported by Eric Blake.
34264
34265 2007-06-12  Bruno Haible  <bruno@clisp.org>
34266
34267         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34268         cross-compiling to x86_64.
34269
34270 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34271
34272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34273         glitch reported by Ralf Wildenhues in
34274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34275
34276         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34277         Vin Shelton.
34278
34279 2007-06-11  Bruno Haible  <bruno@clisp.org>
34280
34281         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34282         replacement string.
34283         Reported by Eric Blake.
34284
34285 2007-06-10  Bruno Haible  <bruno@clisp.org>
34286
34287         Prepare vasnprintf code for use with Unicode strings.
34288         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34289         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34290         TYPE_U32_STRING.
34291         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34292         a_u32_string variants.
34293         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34294         * lib/printf-args.c: Don't include config.h and the specification
34295         header if PRINTF_FETCHARGS is already defined.
34296         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34297         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34298         TYPE_U16_STRING, TYPE_U32_STRING.
34299         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34300         u16_directive, u16_directives, u32_directive, u32_directives): New
34301         types.
34302         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34303         New declarations.
34304         * lib/printf-parse.c: Don't include config.h and the specification
34305         header if PRINTF_PARSE is already defined. Eliminate the set of
34306         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34307         them now. Include c-ctype.h.
34308         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34309         directive and CHAR_T_ONLY_ASCII.
34310         * lib/vasnprintf.c: Don't include config.h and the specification header
34311         if VASNPRINTF is already defined.
34312         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34313         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34314         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34315         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34316         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34317         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34318         code accordingly.
34319         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34320         pad_ourselves also in this case, with the 'c' and 's' directives, and
34321         with a different notion of "width".
34322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34323
34324 2007-06-10  Bruno Haible  <bruno@clisp.org>
34325
34326         * modules/unistr/u32-mbsnlen: New file.
34327         * lib/unistr/u32-mbsnlen.c: New file.
34328
34329         * modules/unistr/u16-mbsnlen: New file.
34330         * lib/unistr/u16-mbsnlen.c: New file.
34331
34332         * modules/unistr/u8-mbsnlen: New file.
34333         * lib/unistr/u8-mbsnlen.c: New file.
34334
34335         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34336         declarations.
34337
34338 2007-06-10  Bruno Haible  <bruno@clisp.org>
34339
34340         * lib/string_.h (mbsnlen): New declaration.
34341         * lib/mbsnlen.c: New file.
34342         * m4/mbsnlen.m4: New file.
34343         * modules/mbsnlen: New file.
34344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34345         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34346         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34347
34348 2007-06-10  Bruno Haible  <bruno@clisp.org>
34349
34350         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34351
34352 2007-06-10  Bruno Haible  <bruno@clisp.org>
34353
34354         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34355         * lib/mbuiter.h: Likewise.
34356
34357 2007-06-10  Bruno Haible  <bruno@clisp.org>
34358
34359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34360         declaration.
34361
34362 2007-06-10  Karl Berry  <karl@gnu.org>
34363
34364         * config/srclist.txt: remove gettext entries, Bruno prefers
34365         to update individually.
34366
34367 2007-06-10  Bruno Haible  <bruno@clisp.org>
34368
34369         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34370         'maxlen'. Ensure only length + width bytes are allocated, not
34371         length + 1 + width.
34372
34373 2007-06-09  Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34376         (CHAR_T): Remove macro.
34377         (VASNPRINTF): Update.
34378
34379 2007-06-09  Bruno Haible  <bruno@clisp.org>
34380
34381         * MODULES.html.sh (Unicode string functions): Add the new modules.
34382
34383         * modules/uniconv/u32-conv-to-enc: New file.
34384         * lib/uniconv/u32-conv-to-enc.c: New file.
34385         * modules/uniconv/u32-conv-to-enc-tests: New file.
34386         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34387
34388         * modules/uniconv/u16-conv-to-enc: New file.
34389         * lib/uniconv/u16-conv-to-enc.c: New file.
34390         * lib/uniconv/u-conv-to-enc.h: New file.
34391         * modules/uniconv/u16-conv-to-enc-tests: New file.
34392         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34393
34394         * modules/uniconv/u8-conv-to-enc: New file.
34395         * lib/uniconv/u8-conv-to-enc.c: New file.
34396         * modules/uniconv/u8-conv-to-enc-tests: New file.
34397         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34398
34399         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34400         u32_conv_to_encoding): New declarations.
34401
34402 2007-06-09  Bruno Haible  <bruno@clisp.org>
34403
34404         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34405
34406 2007-06-09  Bruno Haible  <bruno@clisp.org>
34407
34408         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34409         * modules/malloca: Renamed from modules/allocsa, updated.
34410         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34411         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34412         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34413         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34414         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34415         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34416         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34417         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34418         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34419         * modules/c-strcasestr (Depends-on): Update.
34420         * lib/c-strcasestr.c: Update.
34421         * modules/c-strstr (Depends-on): Update.
34422         * lib/c-strstr.c: Update.
34423         * modules/canonicalize-lgpl (Depends-on): Update.
34424         * lib/canonicalize-lgpl.c: Update.
34425         * modules/clean-temp (Depends-on): Update.
34426         * lib/clean-temp.c: Update.
34427         * modules/csharpcomp (Depends-on): Update.
34428         * lib/csharpcomp.c: Update.
34429         * modules/csharpexec (Depends-on): Update.
34430         * lib/csharpexec.c: Update.
34431         * modules/javacomp (Depends-on): Update.
34432         * lib/javacomp.c: Update.
34433         * modules/javaexec (Depends-on): Update.
34434         * lib/javaexec.c: Update.
34435         * modules/mbscasestr (Depends-on): Update.
34436         * lib/mbscasestr.c: Update.
34437         * modules/mbsstr (Depends-on): Update.
34438         * lib/mbsstr.c: Update.
34439         * modules/setenv (Depends-on): Update.
34440         * lib/setenv.c: Update.
34441         * modules/strcasestr (Depends-on): Update.
34442         * lib/strcasestr.c: Update.
34443         * modules/striconveha (Depends-on): Update.
34444         * lib/striconveha.c: Update.
34445         * modules/relocatable-prog-wrapper (Files): Update.
34446         * lib/relocwrapper.c: Update.
34447         * build-aux/install-reloc: Update.
34448         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34449
34450 2007-06-08  Bruno Haible  <bruno@clisp.org>
34451
34452         Port to uClibc.
34453         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34454         * lib/fpurge.c (fpurge): Likewise.
34455         * lib/freading.c (freading): Likewise.
34456         * lib/fseeko.c (rpl_fseeko): Likewise.
34457         * lib/fseterr.c (fseterr): Likewise.
34458         * lib/fwriting.c (fwriting): Likewise.
34459         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34460
34461 2007-06-08  Bruno Haible  <bruno@clisp.org>
34462
34463         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34464         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34465         * modules/gettext (Files): Add m4/intlmacosx.m4.
34466
34467 2007-06-07  Bruno Haible  <bruno@clisp.org>
34468
34469         * modules/localename-tests: New file.
34470         * tests/test-localename.c: New file.
34471
34472         New module 'localename'.
34473         * lib/localename.h: New file.
34474         * lib/localename.c: New file, from GNU gettext.
34475         * m4/localename.m4: New file.
34476         * modules/localename: New file.
34477
34478 2007-06-07  Bruno Haible  <bruno@clisp.org>
34479
34480         Work around the lack of <wchar.h> on some builds of uClibc.
34481         * doc/headers/wchar.texi: Update.
34482         * lib/wchar_.h: Include <wchar.h> only if it exists.
34483         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34484         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34485         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34486         doesn't exist.
34487         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34488         * modules/mbfile (Depends-on): Add wchar.
34489         * modules/mbiter (Depends-on): Likewise.
34490         * modules/mbuiter (Depends-on): Likewise.
34491         Reported by Simon Josefsson.
34492
34493 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34494
34495         Work around problem reported by Steven M. Schweda in
34496         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34497         Tru64 5.1B with the Compaq compiler environment installed declares
34498         an 'isblank' function but does not define it in the C library.
34499         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34500         * lib/regex_internal.h (isblank): Likewise.
34501         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34502         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34503
34504 2007-06-05  Bruno Haible  <bruno@clisp.org>
34505
34506         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34507         ia64.
34508         * modules/printf-safe: New file.
34509         * modules/fprintf-posix (Depends-on): Add printf-safe.
34510         * modules/printf-posix (Depends-on): Likewise.
34511         * modules/snprintf-posix (Depends-on): Likewise.
34512         * modules/sprintf-posix (Depends-on): Likewise.
34513         * modules/vasnprintf-posix (Depends-on): Likewise.
34514         * modules/vasprintf-posix (Depends-on): Likewise.
34515         * modules/vfprintf-posix (Depends-on): Likewise.
34516         * modules/vprintf-posix (Depends-on): Likewise.
34517         * modules/vsnprintf-posix (Depends-on): Likewise.
34518         * modules/vsprintf-posix (Depends-on): Likewise.
34519         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34520         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34521         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34522         "no" on i386, x86_64, ia64.
34523         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34524         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34525         on i386, x86_64, ia64.
34526         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34527         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34528         on i386, x86_64, ia64.
34529         * tests/test-vasnprintf-posix.c: Include float.h.
34530         (LDBL80_WORDS): New macro.
34531         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34532         on i386, x86_64, ia64.
34533         * tests/test-vasprintf-posix.c: Include float.h.
34534         (LDBL80_WORDS): New macro.
34535         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34536         on i386, x86_64, ia64.
34537         * tests/test-snprintf-posix.c: Include float.h.
34538         * tests/test-sprintf-posix.c: Likewise.
34539         * tests/test-vsnprintf-posix.c: Likewise.
34540         * tests/test-vsprintf-posix.c: Likewise.
34541
34542 2007-06-05  Bruno Haible  <bruno@clisp.org>
34543
34544         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34545         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34546         non-IEEE numbers on i386, x86_64, ia64.
34547         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34548         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34549         * tests/test-isnanl.h: Include float.h.
34550         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34551
34552 2007-06-05  Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34555         also the %a / %A. Handle the %a / %A code before this extra handling.
34556
34557 2007-06-05  Bruno Haible  <bruno@clisp.org>
34558
34559         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34560         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34561
34562 2007-06-05  Bruno Haible  <bruno@clisp.org>
34563
34564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34565         typo in variable name.
34566
34567 2007-06-05  Eric Blake  <ebb9@byu.net>
34568
34569         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34570         Reported by Simon Josefsson.
34571
34572 2007-06-04  Bruno Haible  <bruno@clisp.org>
34573
34574         Avoid test failures on some PowerPC platforms.
34575         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34576         Define differently for PowerPC.
34577         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34578         Reported by Gary V. Vaughan <gary@gnu.org>.
34579
34580 2007-06-02  Bruno Haible  <bruno@clisp.org>
34581
34582         Fix test-stdint failure on FreeBSD/ia64.
34583         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34584         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34585         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34586         * doc/headers/stdint.texi: Update.
34587
34588 2007-06-01  Bruno Haible  <bruno@clisp.org>
34589
34590         * tests/test-binary-io.c (main): Pass a third argument to open().
34591         Reported by Gary V. Vaughan <gary@gnu.org>.
34592
34593 2007-06-01  Bruno Haible  <bruno@clisp.org>
34594
34595         * doc/functions/frexpl.texi: Update for mingw.
34596
34597 2007-06-01  Bruno Haible  <bruno@clisp.org>
34598
34599         * tests/test-lseek.c (main): Disable test of errno for invalid third
34600         argument.
34601         * doc/functions/lseek.texi: Update.
34602         Reported by Gary V. Vaughan <gary@gnu.org>.
34603
34604 2007-05-28  Bruno Haible  <bruno@clisp.org>
34605
34606         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34607
34608 2007-05-31  Eric Blake  <ebb9@byu.net>
34609
34610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34611         cross compiling.
34612
34613 2007-05-30  Eric Blake  <ebb9@byu.net>
34614         and Bruno Haible  <bruno@clisp.org>
34615
34616         Work around mingw test failures exposed by m4-1.4.9b.
34617         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34618         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34619         moment.
34620
34621 2007-05-30  Bruno Haible  <bruno@clisp.org>
34622
34623         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34624         assuming that they are closed. Needed on HP-UX 11.
34625
34626 2007-05-29  Bruno Haible  <bruno@clisp.org>
34627
34628         Fix a problem with #include_next.
34629         * lib/dirent_.h: Split the double-inclusion guard.
34630         * lib/fcntl_.h: Likewise.
34631         * lib/float_.h: Likewise.
34632         * lib/iconv_.h: Likewise.
34633         * lib/inttypes_.h: Likewise.
34634         * lib/locale_.h: Likewise.
34635         * lib/math_.h: Likewise.
34636         * lib/netinet_in_.h: Likewise.
34637         * lib/search_.h: Likewise.
34638         * lib/signal_.h: Likewise.
34639         * lib/stdint_.h: Likewise.
34640         * lib/stdio_.h: Likewise.
34641         * lib/stdlib_.h: Likewise.
34642         * lib/string_.h: Likewise.
34643         * lib/sys_select_.h: Likewise.
34644         * lib/sys_socket_.h: Likewise.
34645         * lib/sys_stat_.h: Likewise.
34646         * lib/sys_time_.h: Likewise.
34647         * lib/sysexits_.h: Likewise.
34648         * lib/time_.h: Likewise.
34649         * lib/unistd_.h: Likewise.
34650         * lib/wchar_.h: Likewise.
34651         * lib/wctype_.h: Likewise.
34652
34653 2007-05-29  Bruno Haible  <bruno@clisp.org>
34654
34655         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34656         for the moment.
34657
34658 2007-05-29  Bruno Haible  <bruno@clisp.org>
34659
34660         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34661         invocation.
34662         Reported by Eric Blake.
34663
34664 2007-05-29  Bruno Haible  <bruno@clisp.org>
34665
34666         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34667         compiling case.
34668
34669 2007-05-29  Eric Blake  <ebb9@byu.net>
34670             Bruno Haible  <bruno@clisp.org>
34671
34672         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34673         cross compiles.
34674
34675 2007-05-28  Eric Blake  <ebb9@byu.net>
34676
34677         * modules/closein-tests (test_closein_LDADD): Support test on
34678         cygwin with libtool.
34679
34680 2007-05-28  Bruno Haible  <bruno@clisp.org>
34681
34682         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34683         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34684         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34685         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34686         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34687         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34688         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34689         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34690         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34691
34692 2007-05-28  Eric Blake  <ebb9@byu.net>
34693
34694         Unconditionally include <config.h> in unit tests.
34695         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34696         * tests/test-allocsa.c, tests/test-arcfour.c,
34697         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34698         tests/test-array_list.c, tests/test-array_oset.c,
34699         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34700         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34701         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34702         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34703         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34704         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34705         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34706         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34707         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34708         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34709         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34710         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34711         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34712         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34713         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34714         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34715         test-md5.c, test-memmem.c, test-printf-posix.c,
34716         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34717         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34718         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34719         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34720         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34721         test-vasnprintf-posix2.c, test-vasnprintf.c,
34722         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34723         test-vfprintf-posix.c, test-vprintf-posix.c,
34724         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34725         test-xvasprintf.c: Likewise.
34726
34727 2007-05-28  Bruno Haible  <bruno@clisp.org>
34728
34729         * gnulib-tool (func_import): Remember the --with-tests command-line
34730         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34731         Reported by Eric Blake.
34732
34733 2007-05-28  Bruno Haible  <bruno@clisp.org>
34734
34735         * modules/ftell-tests: New file.
34736         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34737         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34738
34739         * lib/ftell.c: New file.
34740         * modules/ftell: New file.
34741         * m4/ftell.m4: New file.
34742         * doc/functions/ftell.texi: Update.
34743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34744         REPLACE_FTELL.
34745         * lib/stdio_.h (rpl_ftell): New declaration.
34746         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34747         REPLACE_FTELL.
34748
34749 2007-05-28  Eric Blake  <ebb9@byu.net>
34750
34751         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34752
34753 2007-05-28  Bruno Haible  <bruno@clisp.org>
34754
34755         * modules/fseek-tests: New file.
34756         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34757         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34758
34759         * lib/fseek.c: New file.
34760         * modules/fseek: New file.
34761         * m4/fseek.m4: New file.
34762         * doc/functions/fseek.texi: Update.
34763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34764         REPLACE_FSEEK.
34765         * lib/stdio_.h (rpl_fseek): New declaration.
34766         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34767         REPLACE_FSEEK.
34768
34769 2007-05-28  Bruno Haible  <bruno@clisp.org>
34770
34771         * lib/stdio_.h (fflush): More comments.
34772
34773 2007-05-28  Bruno Haible  <bruno@clisp.org>
34774
34775         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34776         runtime test.
34777
34778 2007-05-28  Eric Blake  <ebb9@byu.net>
34779
34780         Improve lseek module.
34781         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34782         * lib/unistd_.h (lseek): Scale back link warning message.
34783         * tests/test-lseek.c: Beef up test.
34784         * tests/test-lseek.sh: Exercise more facets of lseek.
34785         Reported by Bruno Haible.
34786
34787 2007-05-28  Bruno Haible  <bruno@clisp.org>
34788
34789         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34790         to define.
34791
34792 2007-05-27  Bruno Haible  <bruno@clisp.org>
34793
34794         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34795
34796 2007-05-27  Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/openmp: New file.
34799         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34800         Noah Misch.
34801
34802 2007-05-26  Bruno Haible  <bruno@clisp.org>
34803
34804         * modules/chdir-long (Depends-on): Add fchdir.
34805         * modules/chdir-safer (Depends-on): Likewise.
34806         * modules/fts (Depends-on): Likewise.
34807         * modules/fts-lgpl (Depends-on): Likewise.
34808         * modules/openat (Depends-on): Likewise.
34809         * modules/savewd (Depends-on): Likewise.
34810
34811 2007-05-24  Eric Blake  <ebb9@byu.net>
34812
34813         Fix lseek on mingw.
34814         * modules/lseek: New module.
34815         * m4/lseek.m4: New file.
34816         * lib/lseek.c: New file.
34817         * modules/lseek-tests: New file.
34818         * tests/test-lseek.c: New file.
34819         * tests/test-lseek.sh: New file.
34820         * MODULES.html.sh: Document lseek module.
34821         * modules/fflush (Depends-on): Add lseek, fseeko.
34822         * modules/fseeko (Depends-on): Likewise.
34823         * modules/ftello (Depends-on): Likewise.
34824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34825         broken.
34826         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34827         broken.
34828         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34829         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34830         * lib/ftello.c (rpl_ftello): Likewise.
34831         * tests/test-fseeko.c (main): Test this.
34832         * tests/test-fseeko.sh: Likewise.
34833         * tests/test-ftello.c (main): Likewise.
34834         * tests/test-ftello.sh: Likewise.
34835         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34836         implies replacing fseek.
34837         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34838         HAVE_FTELLO.
34839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34840         * modules/unistd (Makefile.am): Likewise.
34841         * lib/unistd_.h (lseek): Declare a replacement.
34842         * doc/functions/lseek.texi (lseek): Document this fix.
34843         * doc/functions/fseek.texi (fseek): Likewise.
34844         * doc/functions/ftell.texi (ftell): Likewise.
34845
34846 2007-05-24  Bruno Haible  <bruno@clisp.org>
34847
34848         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34849         in the printed representation of a NaN.
34850         * tests/test-vasprintf-posix.c (test_function): Likewise.
34851         * tests/test-snprintf-posix.h (test_function): Likewise.
34852         * tests/test-sprintf-posix.h (test_function): Likewise.
34853         Reported by Eric Blake.
34854
34855 2007-05-23  Eric Blake  <ebb9@byu.net>
34856
34857         Fix fseeko/ftello on cygwin 1.5.24.
34858         * doc/functions/fseeko.texi (fseeko): Document the fix.
34859         * doc/functions/ftello.texi (ftello): Document the fix.
34860         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34861         * doc/functions/stdout.text (stdout): New file.
34862         * doc/functions/stderr.text (stderr): New file.
34863         * doc/gnulib.texi (Function Substitutes): Use new files.
34864         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34865         prior to 1.7.0.
34866         * tests/test-ftello.c (main): Likewise for ftello.
34867         * tests/test-fseeko.sh: New file.
34868         * tests/test-ftello.sh: New file.
34869         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34870         with seekable stdin.
34871         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34872         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34873         (gl_REPLACE_FSEEKO): New macro.
34874         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34875         * modules/fseeko (Files): Distribute fseeko.c.
34876         * modules/ftello (Files): Distribute ftello.c.
34877         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34878         mode.
34879         * lib/ftello.c (rpl_ftello): New file.
34880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34881         fseeko, ftello.
34882         (gl_STDIN_LARGE_OFFSET): New macro.
34883         * modules/stdio (Makefile.am): Perform the replacement.
34884         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34885
34886 2007-05-23  Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34889         GNULIB_POSIXCHECK is defined.
34890
34891 2007-05-21  Bruno Haible  <bruno@clisp.org>
34892
34893         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34894         Check also the output for NaN arguments. When cross-compiling, guess
34895         no on IRIX.
34896         * lib/vasnprintf.c: Update comments.
34897         * tests/test-vasnprintf-posix.c (strisnan): New function.
34898         (test_function): Use it.
34899         * tests/test-vasprintf-posix.c (strisnan): New function.
34900         (test_function): Use it.
34901         * tests/test-snprintf-posix.h (strisnan): New function.
34902         (test_function): Use it.
34903         * tests/test-sprintf-posix.h (strisnan): New function.
34904         (test_function): Use it.
34905         Reported by Eric Blake.
34906
34907 2007-05-20  Bruno Haible  <bruno@clisp.org>
34908
34909         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34910         numbers that fails on BeOS.
34911         * doc/functions/frexpl.texi: Update.
34912
34913 2007-05-20  Jim Meyering  <jim@meyering.net>
34914
34915         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34916         forced upon us by glibc-2.6.
34917
34918 2007-05-20  Bruno Haible  <bruno@clisp.org>
34919
34920         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34921         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34922         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34923         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34924         NEED_PRINTF_INFINITE.
34925         (is_infinitel): New function.
34926         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34928         gl_PREREQ_VASNPRINTF_INFINITE.
34929         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34930         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34931         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34932         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34933         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34934         gl_PREREQ_VASNPRINTF_INFINITE.
34935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34936         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34942         * doc/functions/fprintf.texi: Update.
34943         * doc/functions/printf.texi: Update.
34944         * doc/functions/snprintf.texi: Update.
34945         * doc/functions/sprintf.texi: Update.
34946         * doc/functions/vfprintf.texi: Update.
34947         * doc/functions/vprintf.texi: Update.
34948         * doc/functions/vsnprintf.texi: Update.
34949         * doc/functions/vsprintf.texi: Update.
34950
34951 2007-05-20  Bruno Haible  <bruno@clisp.org>
34952
34953         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34954         was not found in libc.
34955         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34956
34957 2007-05-20  Bruno Haible  <bruno@clisp.org>
34958
34959         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34960         printed as "-nan" instead of "nan".
34961         * tests/test-vasprintf-posix.c (test_function): Likewise.
34962         * tests/test-snprintf-posix.h (test_function): Likewise.
34963         * tests/test-sprintf-posix.h (test_function): Likewise.
34964         Needed for HP-UX 11.
34965
34966 2007-05-20  Jim Meyering  <jim@meyering.net>
34967
34968         Fix buggy test for the fchownat-deref bug.
34969         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34970         symlink required for the run-test.  Without it, this test would
34971         always declare that fchownat doesn't work, and client code would
34972         unnecessarily use the replacement function with fixed libc.
34973         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34974         Reported by Greg Schafer.
34975
34976 2007-05-19  Bruno Haible  <bruno@clisp.org>
34977
34978         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34979         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34980         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34981         Needed for IRIX 6.5 and Solaris 2.5.1.
34982
34983 2007-05-19  Bruno Haible  <bruno@clisp.org>
34984
34985         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34986         (test_function): Skip tests involving -0.0 on platforms where
34987         -0.0 = 0.0.
34988         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34989         (test_function): Skip tests involving -0.0 on platforms where
34990         -0.0 = 0.0.
34991         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34992         (test_function): Skip tests involving -0.0 on platforms where
34993         -0.0 = 0.0.
34994         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34995         (test_function): Skip tests involving -0.0 on platforms where
34996         -0.0 = 0.0.
34997         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34998         tests.
34999         * tests/test-printf-posix.h (test_function): Likewise.
35000         * tests/test-printf-posix.output: Remove all -0.0 related results.
35001         Needed for IRIX 6.5.
35002
35003 2007-05-19  Bruno Haible  <bruno@clisp.org>
35004
35005         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35006         printed as "nan0x7fffffff" instead of "nan".
35007         * tests/test-vasprintf-posix.c (test_function): Likewise.
35008         * tests/test-snprintf-posix.h (test_function): Likewise.
35009         * tests/test-sprintf-posix.h (test_function): Likewise.
35010         * tests/test-fprintf-posix.h (NaN): Remove macro.
35011         (test_function): Remove all NaN related tests.
35012         * tests/test-printf-posix.h (NaN): Remove macro.
35013         (test_function): Remove all NaN related tests.
35014         * tests/test-printf-posix.output: Remove all NaN related results.
35015         Needed for IRIX 6.5.
35016
35017 2007-05-19  Bruno Haible  <bruno@clisp.org>
35018
35019         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35021
35022 2007-05-19  Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/float_.h: New file.
35025         * m4/float_h.m4: New file.
35026         * modules/float: New file.
35027         * modules/isnanl (Dependencies): Add float.
35028         * modules/isnanl-nolibm (Dependencies): Likewise.
35029         * modules/mathl (Dependencies): Likewise.
35030         * modules/printf-frexpl (Dependencies): Likewise.
35031         * modules/signbit (Dependencies): Likewise.
35032         * modules/vasnprintf (Dependencies): Likewise.
35033         * doc/headers/float.texi: Update.
35034
35035 2007-05-19  Jim Meyering  <jim@meyering.net>
35036
35037         * lib/utimens.c (gl_futimens): Rename from futimens,
35038         now that glibc-2.6 declares futimens.
35039         * lib/utimens.h: Likewise.
35040
35041 2007-05-19  Bruno Haible  <bruno@clisp.org>
35042
35043         Avoid test failures on mingw.
35044         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35045         * tests/test-printf-posix.sh: Likewise.
35046         * tests/test-vfprintf-posix.sh: Likewise.
35047         * tests/test-vprintf-posix.sh: Likewise.
35048
35049 2007-05-19  Bruno Haible  <bruno@clisp.org>
35050
35051         Fix *printf result for NaN, Inf, -0.0 on mingw.
35052         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35053         * lib/vasnprintf.c: Include math.h and isnan.h.
35054         (is_infinite_or_zero): New function.
35055         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35056         values in the %f, %F, %e, %E, %g, %G directives.
35057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35058         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35059         gl_PRINTF_INFINITE and test its result. Invoke
35060         gl_PREREQ_VASNPRINTF_INFINITE.
35061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35063         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35064         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35065         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35067         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35068         * doc/functions/fprintf.texi: Update.
35069         * doc/functions/printf.texi: Update.
35070         * doc/functions/snprintf.texi: Update.
35071         * doc/functions/sprintf.texi: Update.
35072         * doc/functions/vfprintf.texi: Update.
35073         * doc/functions/vprintf.texi: Update.
35074         * doc/functions/vsnprintf.texi: Update.
35075         * doc/functions/vsprintf.texi: Update.
35076
35077 2007-05-19  Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35080         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35081         Instead of multiplying with 10^k, set extra_zeroes to k.
35082         (scale10_round_long_double): Remove function.
35083
35084 2007-05-18  Bruno Haible  <bruno@clisp.org>
35085
35086         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35087         introduced on 2007-05-06.
35088
35089 2007-05-18  Bruno Haible  <bruno@clisp.org>
35090
35091         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35092         %g directives.
35093         * tests/test-vasprintf-posix.c (test_function): Likewise.
35094         * tests/test-snprintf-posix.h (test_function): Likewise.
35095         * tests/test-sprintf-posix.h (test_function): Likewise.
35096
35097 2007-05-18  Bruno Haible  <bruno@clisp.org>
35098
35099         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35100         (strmatch): New function.
35101         (test_function): Test the %f directive on numbers of various exponents.
35102         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35103         (strmatch): New function.
35104         (test_function): Test the %f directive on numbers of various exponents.
35105         * tests/test-snprintf-posix.h (strmatch): New function.
35106         (test_function): Test the %f directive on numbers of various exponents.
35107         * tests/test-sprintf-posix.h (strmatch): New function.
35108         (test_function): Test the %f directive on numbers of various exponents.
35109         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35110         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35111         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35112         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35113
35114 2007-05-18  Bruno Haible  <bruno@clisp.org>
35115
35116         Add support for 'long double' number output.
35117         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35118         * lib/vasnprintf.c: Include math.h and float+.h.
35119         (mp_limb_t): New type.
35120         (GMP_LIMB_BITS): New macro.
35121         (mp_twolimb_t): New type.
35122         (GMP_TWOLIMB_BITS): New macro.
35123         (mpn_t): New type.
35124         (multiply, divide, convert_to_decimal, decode_long_double,
35125         scale10_round_long_double, scale10_round_decimal_long_double,
35126         floorlog10l): New functions.
35127         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35128         for the %f, %F, %e, %E, %g, %G directives.
35129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35131         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35132         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35135         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35137         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35140         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35141         * modules/snprintf-posix (Depends-on): Likewise.
35142         * modules/sprintf-posix (Depends-on): Likewise.
35143         * modules/vasnprintf-posix (Depends-on): Likewise.
35144         * modules/vasprintf-posix (Depends-on): Likewise.
35145         * modules/vfprintf-posix (Depends-on): Likewise.
35146         * modules/vsnprintf-posix (Depends-on): Likewise.
35147         * modules/vsprintf-posix (Depends-on): Likewise.
35148         * modules/vasnprintf (Files): Add lib/float+.h.
35149         * doc/functions/fprintf.texi: Update.
35150         * doc/functions/printf.texi: Update.
35151         * doc/functions/snprintf.texi: Update.
35152         * doc/functions/sprintf.texi: Update.
35153         * doc/functions/vfprintf.texi: Update.
35154         * doc/functions/vprintf.texi: Update.
35155         * doc/functions/vsnprintf.texi: Update.
35156         * doc/functions/vsprintf.texi: Update.
35157
35158 2007-05-18  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35161
35162 2007-05-18  Bruno Haible  <bruno@clisp.org>
35163
35164         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35165         for printing 64-bit integers. Needed for mingw.
35166
35167 2007-05-18  Bruno Haible  <bruno@clisp.org>
35168
35169         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35170         gl_FUNC_FREXPL_WORKS.
35171         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35172
35173 2007-05-18  Bruno Haible  <bruno@clisp.org>
35174
35175         * modules/frexpl-nolibm-tests: New file.
35176
35177         * modules/frexpl-nolibm: New file.
35178         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35179
35180 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35181
35182         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35183         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35184         GCC 4.2, which otherwise issues a lot of warnings.
35185         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35186         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35187         Likewise.
35188         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35189         * modules/iconv_open (iconv.h): Likewise.
35190         * modules/locale (locale.h): Likewise.
35191         * modules/netinet_in (netinet/in.h): Likewise.
35192         * modules/sys_select (sys_select.h): Likewise.
35193         * modules/sys_socket (sys/socket.h): Likewise.
35194         * modules/sys_stat (sys/stat.h): Likewise.
35195         * modules/sysexits (sysexits.h): Likewise.
35196         * modules/unistd (unistd.h): Likewise.
35197
35198 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35199
35200         * modules/closein-tests (Makefile.am): Distribute
35201         `test-closein.sh'.
35202
35203 2007-05-17  Bruno Haible  <bruno@clisp.org>
35204
35205         * tests/test-printf-posix.output: Renamed from
35206         tests/test-fprintf-posix.out.
35207         * modules/fprintf-posix-tests: Update.
35208         * modules/printf-posix-tests: Update.
35209         * modules/vfprintf-posix-tests: Update.
35210         * modules/vprintf-posix-tests: Update.
35211         * tests/test-fprintf-posix.sh: Update.
35212         * tests/test-printf-posix.sh: Update.
35213         * tests/test-vfprintf-posix.sh: Update.
35214         * tests/test-vprintf-posix.sh: Update.
35215         Reported by Ralf Wildenhues.
35216
35217 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35218
35219         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35220         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35221         GCC 4.2, which otherwise issues a lot of warnings.
35222         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35223         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35224         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35225         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35226         it should no longer be needed.
35227         * lib/string_.h: Likewise.
35228         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35229         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35230         * modules/inttypes (inttypes.h): Likewise.
35231         * modules/math (math.h): Likewise.
35232         * modules/search (search.h): Likewise.
35233         * modules/signal (signal.h): Likewise.
35234         * modules/stdint (stdint.h): Likewise.
35235         * modules/stdio (stdio.h): Likewise.
35236         * modules/stdlib (stdlib.h): Likewise.
35237         * modules/string (string.h): Likewise.
35238         * modules/sys_time (sys/time.h): Likewise.
35239         * modules/time (time.h): Likewise.
35240         * modules/wchar (wchar.h): Likewise.
35241         * modules/wctype (wtype.h): Likewise.
35242
35243 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35244
35245         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35246
35247 2007-05-13  Bruno Haible  <bruno@clisp.org>
35248
35249         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35250         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35251         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35252         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35253         (gl_PREREQ_STRTOK_R): Don't require it here.
35254
35255 2007-05-13  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35258         when used in C++ mode.
35259
35260 2007-05-12  Bruno Haible  <bruno@clisp.org>
35261
35262         * lib/linebuffer.h: Tweak doc.
35263         * lib/linebuffer.c: Likewise.
35264
35265 2007-05-12  James Youngman  <jay@gnu.org>
35266
35267         * lib/linebuffer.c (readlinebuffer_delim): New function,
35268         like readlinebuffer, but use a caller-specified delimiter.
35269         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35270         as the delimiter.
35271         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35272
35273 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35274
35275         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35276         * modules/openat (Files): Remove openat-die.c.
35277         (Depends-on): Add openat-die.
35278         * modules/openat-die: New module.
35279
35280 2007-05-06  Bruno Haible  <bruno@clisp.org>
35281
35282         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35283         Update with info about Cygwin.
35284         * doc/functions/fprintf.texi: Update.
35285         * doc/functions/printf.texi: Update.
35286         * doc/functions/snprintf.texi: Update.
35287         * doc/functions/sprintf.texi: Update.
35288         * doc/functions/vfprintf.texi: Update.
35289         * doc/functions/vprintf.texi: Update.
35290         * doc/functions/vsnprintf.texi: Update.
35291         * doc/functions/vsprintf.texi: Update.
35292         Reported by Eric Blake.
35293
35294 2007-05-06  Bruno Haible  <bruno@clisp.org>
35295
35296         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35297         padding ourselves for the floating-point directives.
35298         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35301         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35302         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35310         * tests/test-snprintf-posix.h (test_function): Also check the width
35311         and some flags in the %f directive.
35312         * tests/test-sprintf-posix.h (test_function): Likewise.
35313         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35314         * tests/test-vasprintf-posix.c (test_function): Likewise.
35315         * doc/functions/fprintf.texi: Update.
35316         * doc/functions/printf.texi: Update.
35317         * doc/functions/snprintf.texi: Update.
35318         * doc/functions/sprintf.texi: Update.
35319         * doc/functions/vfprintf.texi: Update.
35320         * doc/functions/vprintf.texi: Update.
35321         * doc/functions/vsnprintf.texi: Update.
35322         * doc/functions/vsprintf.texi: Update.
35323
35324 2007-05-06  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35327         pass the ' flag character to sprintf or snprintf.
35328         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35331         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35332         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35333         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35335         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35340         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35341         flag.
35342         * tests/test-sprintf-posix.h (test_function): Likewise.
35343         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35344         * tests/test-vasprintf-posix.c (test_function): Likewise.
35345         * doc/functions/fprintf.texi: Update.
35346         * doc/functions/printf.texi: Update.
35347         * doc/functions/snprintf.texi: Update.
35348         * doc/functions/sprintf.texi: Update.
35349         * doc/functions/vfprintf.texi: Update.
35350         * doc/functions/vprintf.texi: Update.
35351         * doc/functions/vsnprintf.texi: Update.
35352         * doc/functions/vsprintf.texi: Update.
35353
35354 2007-05-01  Bruno Haible  <bruno@clisp.org>
35355
35356         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35357
35358 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35359
35360         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35361         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35362
35363 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35364
35365         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35366         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35367         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35368
35369 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35370
35371         * lib/argp-help.c (struct hol_entry): New member `ord'.
35372         (HOL_ENTRY_PTRCMP): Use ord for comparison
35373         (hol_sort): Initialize ord.
35374
35375 2007-05-01  Bruno Haible  <bruno@clisp.org>
35376
35377         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35378         Reported by Eric Blake.
35379         * doc/gnulib.texi (Function Substitutes): Update.
35380
35381 2007-05-01  Bruno Haible  <bruno@clisp.org>
35382
35383         * doc/functions.texi: Remove file, now redundant through
35384         doc/functions/*.texi.
35385
35386 2007-05-01  Bruno Haible  <bruno@clisp.org>
35387
35388         * modules/argp (Depends-on): Add sleep.
35389
35390 2007-05-01  Bruno Haible  <bruno@clisp.org>
35391
35392         * modules/sleep-tests: New file.
35393         * tests/test-sleep.c: New file.
35394
35395         * modules/sleep: New file.
35396         * lib/sleep.c: New file.
35397         * m4/sleep.m4: New file.
35398         * lib/unistd_.h (sleep): New declaration.
35399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35400         HAVE_SLEEP.
35401         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35402         * doc/functions/sleep.texi: Document the sleep module.
35403
35404 2007-05-01  Bruno Haible  <bruno@clisp.org>
35405
35406         * lib/sigprocmask.h: Remove file.
35407         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35408         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35409         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35410         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35411         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35412         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35413         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35414         HAVE_SIGSET_T as a shell variable.
35415         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35416         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35417         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35418         (Depends-on): Add signal. Remove verify.
35419         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35420         (Include): Mention <signal.h> instead of sigprocmask.h.
35421         * NEWS: Mention the change.
35422         * lib/fatal-signal.c: Don't include sigprocmask.h.
35423
35424 2007-05-01  Bruno Haible  <bruno@clisp.org>
35425
35426         * modules/signal: New file.
35427         * lib/signal_.h: New file.
35428         * m4/signal_h.m4: New file.
35429
35430 2007-05-01  Bruno Haible  <bruno@clisp.org>
35431
35432         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35433         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35434         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35435         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35436
35437 2007-05-01  Bruno Haible  <bruno@clisp.org>
35438
35439         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35440         configure time.
35441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35442         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35443         * modules/sys_stat (Makefile.am): Substitute their values into
35444         sys/stat.h.
35445
35446 2007-05-01  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35449         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35450         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35451
35452 2007-05-01  Bruno Haible  <bruno@clisp.org>
35453
35454         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35455         'assert' module here.
35456
35457 2007-05-01  Bruno Haible  <bruno@clisp.org>
35458
35459         * doc/functions/*.texi: New files.
35460         * doc/functions/google-ranking.txt: New file.
35461         * doc/gnulib.texi (Function Substitutes): New chapter.
35462         (ctime, inet_ntoa): Remove sections.
35463         * doc/ctime.texi: Remove file.
35464         * doc/inet_ntoa.texi: Remove file.
35465         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35466         dependencies.
35467         (%.info): New rule, specifying a --reference-limit.
35468
35469 2007-05-01  Bruno Haible  <bruno@clisp.org>
35470
35471         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35472
35473 2007-05-01  Bruno Haible  <bruno@clisp.org>
35474
35475         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35476         the portability of 'mkdir' to mingw systems.
35477
35478 2007-05-01  Bruno Haible  <bruno@clisp.org>
35479
35480         * doc/headers/google-ranking.txt: New file.
35481
35482 2007-04-30  Eric Blake  <ebb9@byu.net>
35483
35484         Prefer fseeko to fseek.
35485         * modules/getpass (Depends-on): Add fseeko.
35486         * lib/getpass.c (getpass): Use fseeko, not fseek.
35487
35488 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35489
35490         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35491         assumes the sorting is stable, while most qsort implementations
35492         are not.  Use argument addresses to ensure they never compare as
35493         equal.
35494
35495         * tests/test-argp-2.sh (usage-indent test): Fix output
35496         (func_compare): Restore diff options
35497         * tests/test-argp.c: Restore #include "progname.h"
35498
35499 2007-04-29  Bruno Haible  <bruno@clisp.org>
35500
35501         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35502         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35503         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35505         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35506         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35507         (TESTS, check_PROGRAMS): Add test-snprintf.
35508         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35509         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35510         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35511         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35512         assertions that fail on HP-UX, OSF/1, or IRIX.
35513         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35514
35515 2007-04-29  Bruno Haible  <bruno@clisp.org>
35516
35517         * MODULES.html.sh (posix_functions): Remove 'contents'.
35518
35519 2007-04-29  Karl Berry  <karl@gnu.org>
35520
35521         * config/srclist.txt (gendocs_template_min): new entry.
35522
35523 2007-04-29  Bruno Haible  <bruno@clisp.org>
35524
35525         Work around fpurge bug on BSD systems.
35526         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35527         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35528         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35529         fpurge to rpl_fpurge if the system already has this function.
35530         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35531         the case where the system already has this function. Correct invariants
35532         on BSD systems.
35533         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35534         BSD systems.
35535
35536 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35537
35538         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35539         proposed by Sven Verdoolaege.
35540
35541         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35542         options.
35543         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35544         (usage and help tests): Update
35545
35546 2007-04-29  Bruno Haible  <bruno@clisp.org>
35547
35548         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35549         Print more information in case of failure. Disable a test on BeOS.
35550
35551 2007-04-29  Bruno Haible  <bruno@clisp.org>
35552
35553         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35554         This helps debugging on systems on which no gdb is available.
35555
35556 2007-04-29  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/freading.h: Improve comments.
35559         * lib/fwriting.h: Likewise.
35560         * tests/test-freading.c (main): Don't check freading immediately after
35561         repositioning. Needed for glibc.
35562
35563 2007-04-29  Bruno Haible  <bruno@clisp.org>
35564
35565         * lib/freading.c (freading): Trivial simplification.
35566
35567 2007-04-28  Bruno Haible  <bruno@clisp.org>
35568
35569         * tests/test-fwriting.c (main): Also test the interaction between
35570         fflush and fwriting.
35571         * modules/fwriting-tests (Depends-on): Add fflush.
35572
35573         * tests/test-freading.c (main): Also test the interaction between
35574         fflush and freading.
35575         * modules/freading-tests (Depends-on): Add fflush.
35576
35577 2007-04-28  Bruno Haible  <bruno@clisp.org>
35578
35579         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35580         fseeko and ftello.
35581         Suggested by Eric Blake.
35582
35583 2007-04-28  Jim Meyering  <jim@meyering.net>
35584
35585         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35586         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35587         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35588
35589 2007-04-27  Eric Blake  <ebb9@byu.net>
35590
35591         * doc/headers/assert.texi (assert.h): Document assert module use.
35592
35593 2007-04-27  Bruno Haible  <bruno@clisp.org>
35594
35595         * doc/headers/*.texi: New files.
35596         * doc/gnulib.texi (Header File Substitutes): New chapter.
35597         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35598         dependencies.
35599         (standards.info ,standards.html, standards.dvi): Update dependencies.
35600         (mostlyclean, clean): New targets.
35601
35602 2007-04-27  Bruno Haible  <bruno@clisp.org>
35603
35604         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35605         * modules/sysexits (Files, Makefile.am): Update.
35606
35607         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35608         * modules/sys_socket (Files, Makefile.am): Update.
35609
35610         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35611         * modules/sys_stat (Files, Makefile.am): Update.
35612
35613 2007-04-27  Eric Blake  <ebb9@byu.net>
35614
35615         * lib/freading.h: Improve comments.
35616         * lib/fwriting.h: Likewise.
35617         * lib/fflush.c: Likewise.
35618
35619         Fix closein for mingw.
35620         * modules/closein-tests: Add tests for closein.
35621         * tests/test-closein.c: New file.
35622         * tests/test-closein.sh: Likewise.
35623         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35624         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35625
35626 2007-04-27  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35629         version is < 6.
35630         * lib/math_.h [__DECC]: Likewise.
35631         * lib/stdio_.h [__DECC]: Likewise.
35632         * lib/stdlib_.h [__DECC]: Likewise.
35633         * lib/string_.h [__DECC]: Likewise.
35634         * lib/time_.h [__DECC]: Likewise.
35635         * lib/wchar_.h [__DECC]: Likewise.
35636         * lib/wctype_.h [__DECC]: Likewise.
35637
35638 2007-04-27  Bruno Haible  <bruno@clisp.org>
35639
35640         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35641
35642 2007-04-27  Bruno Haible  <bruno@clisp.org>
35643
35644         * lib/fflush.c: Add comments.
35645         * modules/fpurge-tests (Depends-on): Add fflush.
35646         * modules/freadable-tests (Depends-on): Likewise.
35647         * modules/fwritable-tests (Depends-on): Likewise.
35648
35649 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35650
35651         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35652         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35653         Report by Bruno Haible <bruno@clisp.org>.
35654
35655 2007-04-26  Eric Blake  <ebb9@byu.net>
35656
35657         Fix fflush on mingw.
35658         * modules/fflush (Depends-on): Add freading.
35659         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35660         but unread data.
35661
35662 2007-04-26  Eric Blake  <ebb9@byu.net>
35663         and Bruno Haible  <bruno@clisp.org>
35664
35665         Implement freading and fwriting.
35666         * lib/freading.c: New file.
35667         * lib/freading.h: Likewise.
35668         * m4/freading.m4: Likewise.
35669         * modules/freading: Likewise.
35670         * modules/freading-tests: Likewise.
35671         * tests/test-freading.c: Likewise.
35672         * lib/fwriting.c: New file.
35673         * lib/fwriting.h: Likewise.
35674         * m4/fwriting.m4: Likewise.
35675         * modules/fwriting: Likewise.
35676         * modules/fwriting-tests: Likewise.
35677         * tests/test-fwriting.c: Likewise.
35678         * MODULES.html.sh (File stream based Input/Output): Mention them.
35679
35680 2007-04-26  Bruno Haible  <bruno@clisp.org>
35681
35682         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35683         'long' when we assume it.
35684         Suggested by Eric Blake.
35685
35686 2007-04-26  Bruno Haible  <bruno@clisp.org>
35687
35688         Ensure fseeko, ftello are declared on glibc systems.
35689         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35690         * modules/fseeko (configure.ac-early): Likewise.
35691         * modules/ftello (configure.ac-early): Likewise.
35692         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35693         AC_FUNC_FSEEKO for this.
35694         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35695         (gl_CHECK_FSEEKO): Remove macro.
35696
35697 2007-04-26  Bruno Haible  <bruno@clisp.org>
35698
35699         * tests/test-fflush.c (main): Also check the ftell result after
35700         fflush and fseek/fseeko.
35701         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35702         file descriptor position cache in the stream.
35703         * lib/fseeko.c (rpl_fseeko): Likewise.
35704
35705 2007-04-26  Bruno Haible  <bruno@clisp.org>
35706
35707         * modules/fflush-tests (Depends-on): Add fseeko.
35708
35709 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35710             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35711
35712         * lib/argz_.h: ensure error_t definition is obtained in same
35713         mechanism system argz.h would have.
35714         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35715         argz facilities are known bad.  Err on the side of caution if
35716         cross-compiling.
35717
35718 2007-04-25  Eric Blake  <ebb9@byu.net>
35719
35720         * lib/fpurge.c (includes): Use stdlib.h for free.
35721         * tests/test-fflush.c (main): Also test fflush-fseeko.
35722
35723 2007-04-25  Bruno Haible  <bruno@clisp.org>
35724
35725         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35726         * lib/fseeko.c: New file.
35727         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35728         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35729         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35730         gl_FUNC_FSEEKO.
35731         (gl_FUNC_FSEEKO): Invoke it.
35732         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35733         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35734         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35735
35736 2007-04-25  Bruno Haible  <bruno@clisp.org>
35737
35738         * modules/fflush (Depends-on): Add ftello.
35739
35740 2007-04-25  Bruno Haible  <bruno@clisp.org>
35741
35742         * modules/ftello-tests: New file.
35743         * tests/test-ftello.c: New file.
35744
35745         * modules/ftello: New file.
35746         * m4/ftello.m4: New file.
35747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35748         HAVE_FTELLO.
35749         * lib/stdio_.h (ftello): New declaration.
35750         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35751         HAVE_FTELLO.
35752
35753 2007-04-25  Bruno Haible  <bruno@clisp.org>
35754
35755         * modules/fseeko-tests: New file.
35756         * tests/test-fseeko.c: New file.
35757
35758         * modules/fseeko: New file.
35759         * m4/fseeko.m4: New file.
35760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35761         HAVE_FSEEKO.
35762         * lib/stdio_.h (fseeko): New declaration.
35763         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35764         HAVE_FSEEKO.
35765
35766 2007-04-25  Bruno Haible  <bruno@clisp.org>
35767
35768         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35769
35770 2007-04-25  Bruno Haible  <bruno@clisp.org>
35771
35772         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35773         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35774         * tests/test-unistd.c: Likewise.
35775         * tests/test-fcntl.c: Likewise.
35776
35777 2007-04-23  Eric Blake  <ebb9@byu.net>
35778
35779         * lib/fflush.c: Fix missing include.
35780         Reported by Bruno Haible.
35781
35782 2007-04-23  Bruno Haible  <bruno@clisp.org>
35783
35784         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35785         Reported by Eric Blake.
35786
35787 2007-04-23  Bruno Haible  <bruno@clisp.org>
35788
35789         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35790
35791 2007-04-23  Bruno Haible  <bruno@clisp.org>
35792
35793         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35794
35795 2007-04-23  Bruno Haible  <bruno@clisp.org>
35796
35797         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35798         Needed on HP-UX 11.
35799
35800 2007-04-16  Eric Blake  <ebb9@byu.net>
35801
35802         Make fflush rely on fpurge.
35803         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35804         open coding all variants.
35805         * modules/fflush (Depends-on): Add fpurge and unistd.
35806         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35807         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35808
35809         Fix --with-tests compilation on cygwin.
35810         * modules/argmatch-tests (Makefile.am): List gnulib library first
35811         in LDADD.
35812         * modules/argp-tests (Makefile.am): Likewise.
35813         * modules/array-list-tests (Makefile.am): Likewise.
35814         * modules/array-oset-tests (Makefile.am): Likewise.
35815         * modules/avltree-list-tests (Makefile.am): Likewise.
35816         * modules/avltree-oset-tests (Makefile.am): Likewise.
35817         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35818         * modules/carray-list-tests (Makefile.am): Likewise.
35819         * modules/dirname-tests (Makefile.am): Likewise.
35820         * modules/frexp-tests (Makefile.am): Likewise.
35821         * modules/isnanl-tests (Makefile.am): Likewise.
35822         * modules/linked-list-tests (Makefile.am): Likewise.
35823         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35824         * modules/lock-tests (Makefile.am): Likewise.
35825         * modules/rbtree-list-tests (Makefile.am): Likewise.
35826         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35827         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35828         * modules/tls-tests (Makefile.am): Likewise.
35829         * modules/tsearch-tests (Makefile.am): Likewise.
35830         * modules/xvasprintf-tests (Makefile.am): Likewise.
35831
35832         Fix fpurge for cygwin.
35833         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35834         value.
35835         * modules/fpurge-tests (Depends-on): Clean up trash.
35836
35837 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35838
35839         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35840
35841         * m4/autobuild.m4: Re-indent.
35842
35843 2007-04-13  Bruno Haible  <bruno@clisp.org>
35844
35845         * modules/fpurge-tests: New file.
35846         * tests/test-fpurge.c: New file.
35847
35848         * modules/fpurge: New file.
35849         * lib/fpurge.h: New file.
35850         * lib/fpurge.c: New file.
35851         * m4/fpurge.m4: New file.
35852
35853 2007-04-13  Bruno Haible  <bruno@clisp.org>
35854
35855         * modules/fbufmode-tests: New file.
35856         * tests/test-fbufmode.c: New file.
35857
35858         * modules/fbufmode: New file.
35859         * lib/fbufmode.h: New file.
35860         * lib/fbufmode.c: New file.
35861         * m4/fbufmode.m4: New file.
35862
35863 2007-04-13  Bruno Haible  <bruno@clisp.org>
35864
35865         * modules/fwritable-tests: New file.
35866         * tests/test-fwritable.c: New file.
35867
35868         * modules/fwritable: New file.
35869         * lib/fwritable.h: New file.
35870         * lib/fwritable.c: New file.
35871         * m4/fwritable.m4: New file.
35872
35873 2007-04-13  Bruno Haible  <bruno@clisp.org>
35874
35875         * modules/freadable-tests: New file.
35876         * tests/test-freadable.c: New file.
35877
35878         * modules/freadable: New file.
35879         * lib/freadable.h: New file.
35880         * lib/freadable.c: New file.
35881         * m4/freadable.m4: New file.
35882
35883 2007-04-13  Bruno Haible  <bruno@clisp.org>
35884
35885         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35886         MOSTLYCLEANFILES.
35887
35888 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35889
35890         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35891         gzip bootstrap.conf to avoid dragging in i18n machinery.
35892         (gnulib_tool_option): Use it.
35893
35894 2007-04-13  Bruno Haible  <bruno@clisp.org>
35895
35896         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35897         %F directives.
35898         * tests/test-vasprintf-posix.c (test_function): Likewise.
35899         * tests/test-snprintf-posix.h (test_function): Likewise.
35900         * tests/test-sprintf-posix.h (test_function): Likewise.
35901         * tests/test-fprintf-posix.h (test_function): Likewise.
35902         * tests/test-printf-posix.h (test_function): Likewise.
35903         * tests/test-fprintf-posix.out: Likewise.
35904
35905 2007-04-13  Bruno Haible  <bruno@clisp.org>
35906
35907         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35908         * modules/tls-tests (configure.ac): Likewise.
35909         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35910
35911 2007-04-13  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/tls.c (glthread_tls_get): Fix return type.
35914         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35915
35916 2007-04-12  Eric Blake  <ebb9@byu.net>
35917
35918         * modules/gettime (Depends-on): Remove gettime.
35919         Reported by Dmitry V. Levin.
35920
35921 2007-04-12  Bruno Haible  <bruno@clisp.org>
35922
35923         * modules/fflush (Include): Mention <stdio.h>.
35924         * modules/strtoimax (Include): Mention <inttypes.h>.
35925         * modules/strtoumax (Include): Likewise.
35926
35927 2007-04-12  Eric Blake  <ebb9@byu.net>
35928
35929         * .cvsignore: New file.
35930         * .gitignore: Likewise.
35931
35932 2007-04-12  Bruno Haible  <bruno@clisp.org>
35933
35934         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35935         not before, since $(LDADD) often contains libgnu.a.
35936         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35937         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35938         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35939         Needed on Cygwin.
35940
35941 2007-04-12  Eric Blake  <ebb9@byu.net>
35942
35943         Work around glibc's failure to flush stdin on fclose.
35944         * lib/closein.c (close_stdin): Flush stdin before closing.
35945
35946         Work around glibc's failure to reset seekable stdin on exit.
35947         * modules/closein: New module.
35948         * lib/closein.c: New file.
35949         * lib/closein.h: Likewise.
35950         * m4/closein.m4: Likewise.
35951         * MODULES.html.sh (File stream based Input/Output): Document it.
35952
35953 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35954
35955         * gnulib-tool: Rename generated 'autobuild' script to
35956         'do-autobuild' in --create-megatestdir output.
35957
35958         * doc/gnulib.texi (Build robot for gnulib): Fix.
35959
35960 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35961
35962         * modules/sysexits (Depends-on): Add absolute-header.
35963
35964 2007-04-12  Eric Blake  <ebb9@byu.net>
35965
35966         No need to preserve errno on success.
35967         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35968         Reported by Bruno Haible.
35969
35970 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35971
35972         * MODULES.html.sh (Support for maintaining and releasing
35973         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35974
35975 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35976
35977         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35978
35979 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35980
35981         * modules/autobuild: New module.
35982
35983         * m4/autobuild.m4: New file.
35984
35985 2007-04-11  Bruno Haible  <bruno@clisp.org>
35986
35987         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35988         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35992         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35993         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35995         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35996         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35998         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35999         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36001         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36002         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36004         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36005         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36007         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36008         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36010         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36011         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36012         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36013         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36014         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36015         Reported by Eric Blake.
36016
36017 2007-04-11  Bruno Haible  <bruno@clisp.org>
36018
36019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36020
36021 2007-04-10  Bruno Haible  <bruno@clisp.org>
36022
36023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36024         for NaN and Infinity. Needed on FreeBSD 6.1.
36025         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36026         regarding results for "%010a" of Infinity and NaN.
36027         * tests/test-vasprintf-posix.c (test_function): Likewise.
36028         * tests/test-snprintf-posix.h (test_function): Likewise.
36029         * tests/test-sprintf-posix.h (test_function): Likewise.
36030         * tests/test-fprintf-posix.h (test_function): Likewise.
36031         * tests/test-printf-posix.h (test_function): Likewise.
36032         * tests/test-fprintf-posix.out: Likewise.
36033
36034 2007-04-10  Bruno Haible  <bruno@clisp.org>
36035
36036         * modules/locale-tests: New file.
36037         * tests/test-locale.c: New file.
36038
36039         * modules/locale: New file.
36040         * lib/locale_.h: New file.
36041         * m4/locale_h.m4: New file.
36042
36043 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36044             Bruno Haible  <bruno@clisp.org>
36045
36046         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36047         be determined, test for availability of the copysignf, copysign,
36048         copysignl functions.
36049         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36050         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36051         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36052
36053 2007-04-09  Eric Blake  <ebb9@byu.net>
36054
36055         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36056         * modules/stdio (Makefile.am): Support fflush.
36057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36058         * modules/fflush: New file.
36059         * lib/fflush.c: Likewise.
36060         * m4/fflush.m4: Likewise.
36061         * modules/fflush-tests: New test.
36062         * tests/test-fflush.c: Likewise.
36063         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36064
36065 2007-04-06  Bruno Haible  <bruno@clisp.org>
36066
36067         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36068         (VASNPRINTF): Use signbit for faster determination whether to print a
36069         minus sign.
36070         * modules/vasnprintf (Files): Remove lib/float+.h.
36071         * modules/fprintf-posix (Depends-on): Add signbit.
36072         * modules/snprintf-posix (Depends-on): Likewise.
36073         * modules/sprintf-posix (Depends-on): Likewise.
36074         * modules/vasnprintf-posix (Depends-on): Likewise.
36075         * modules/vasprintf-posix (Depends-on): Likewise.
36076         * modules/vfprintf-posix (Depends-on): Likewise.
36077         * modules/vsnprintf-posix (Depends-on): Likewise.
36078         * modules/vsprintf-posix (Depends-on): Likewise.
36079
36080 2007-04-06  Bruno Haible  <bruno@clisp.org>
36081
36082         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36083         * tests/test-frexpl.c (main): Likewise.
36084         * tests/test-ldexpl.c (main): Likewise.
36085         * modules/frexp-tests (Depends-on): Add signbit.
36086         * modules/frexpl-tests (Depdends-on): Likewise.
36087         * modules/ldexpl-tests (Depdends-on): Likewise.
36088
36089 2007-04-06  Bruno Haible  <bruno@clisp.org>
36090
36091         * modules/signbit-tests: New file.
36092         * tests/test-signbit.c: New file.
36093
36094         * modules/signbit: New file.
36095         * lib/signbitf.c: New file.
36096         * lib/signbitd.c: New file.
36097         * lib/signbitl.c: New file.
36098         * m4/signbit.m4: New file.
36099         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36100         (signbit): New macro.
36101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36102         REPLACE_SIGNBIT.
36103         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36104         REPLACE_FREXPL into math.h.
36105
36106 2007-04-06  Bruno Haible  <bruno@clisp.org>
36107
36108         * modules/isnanf-nolibm-tests: New file.
36109         * tests/test-isnanf.c: New file.
36110
36111         * modules/isnanf-nolibm: New file.
36112         * lib/isnanf.h: New file.
36113         * lib/isnanf.c: New file.
36114         * lib/isnan.c: Consider the USE_FLOAT macro.
36115         * m4/isnanf.m4: New file.
36116
36117 2007-04-06  Bruno Haible  <bruno@clisp.org>
36118
36119         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36120         (Link): New section.
36121
36122         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36123
36124 2007-04-06  Bruno Haible  <bruno@clisp.org>
36125
36126         Assume the 'long double' type.
36127         * m4/longdouble.m4: Remove file.
36128         * config/srclist.txt: Don't mention longdouble.m4.
36129         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36130         * lib/float+.h: Likewise.
36131         * lib/frexp.c: Likewise.
36132         * lib/printf-args.h: Likewise.
36133         * lib/printf-args.c: Likewise.
36134         * lib/printf-frexp.c: Likewise.
36135         * lib/printf-parse.c: Likewise.
36136         * lib/vasnprintf.c: Likewise.
36137         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36138         * m4/intl.m4: Likewise.
36139         * m4/isnanl.m4: Likewise.
36140         * m4/printf.m4: Likewise.
36141         * m4/printf-frexpl.m4: Likewise.
36142         * m4/vasnprintf.m4: Likewise.
36143         * modules/allocsa (Files): Remove m4/longdouble.m4.
36144         * modules/gettext (Files): Likewise.
36145         * modules/relocatable-prog-wrapper (Files): Likewise.
36146         * modules/vasnprintf (Files): Likewise.
36147         * modules/isnanl (Files): Likewise.
36148         (Include): Simplify.
36149         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36150         (Include): Simplify.
36151         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36152         (Include): Simplify.
36153         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36154         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36155         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36156         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36157         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36158         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36159         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36160         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36161         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36162         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36163         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36165         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36166         * tests/test-isnanl.c: Likewise.
36167         * tests/test-snprintf-posix.h: Likewise.
36168         * tests/test-sprintf-posix.h: Likewise.
36169         * tests/test-vasnprintf-posix.c: Likewise.
36170         * tests/test-vasnprintf-posix2.c: Likewise.
36171         * tests/test-vasprintf-posix.c: Likewise.
36172
36173 2007-04-06  Bruno Haible  <bruno@clisp.org>
36174
36175         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36176         * lib/math_.h [__DECC]: Include the overridden include file through
36177         #include_next, outside the double-inclusion guard.
36178         * lib/stdio_.h [__DECC]: Likewise.
36179         * lib/stdlib_.h [__DECC]: Likewise.
36180         * lib/string_.h [__DECC]: Likewise.
36181         * lib/time_.h [__DECC]: Likewise.
36182         * lib/wchar_.h [__DECC]: Likewise.
36183         * lib/wctype_.h [__DECC]: Likewise.
36184         * lib/inttypes_.h [__DECC]: Likewise.
36185         Reported by Albert Chin <china@thewrittenword.com> in
36186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36187
36188 2007-04-04  Eric Blake  <ebb9@byu.net>
36189
36190         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36191         1.5.x.
36192
36193 2007-04-04  Bruno Haible  <bruno@clisp.org>
36194
36195         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36196         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36197
36198 2007-04-04  Bruno Haible  <bruno@clisp.org>
36199
36200         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36201         results for "%010a" of Infinity and NaN.
36202         * tests/test-vasprintf-posix.c (test_function): Likewise.
36203         * tests/test-snprintf-posix.h (test_function): Likewise.
36204         * tests/test-sprintf-posix.h (test_function): Likewise.
36205         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36206         * tests/test-printf-posix.h (test_function): Likewise.
36207         * tests/test-fprintf-posix.out: Update.
36208         Needed for FreeBSD 6.1.
36209
36210 2007-04-04  Bruno Haible  <bruno@clisp.org>
36211
36212         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36213         directly used by the gnulib modules nor by gnulib-tool.
36214
36215 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * DEPENDENCIES: Give overall description of version dependency
36218         desirability.  Use more-typical names for apps.
36219         Add shell, coreutils, diffutils, grep, tar, gzip.
36220
36221 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36222
36223         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36224
36225 2007-04-04  Karl Berry  <karl@gnu.org>
36226
36227         * MODULES.html.sh (func_module): missing '.
36228
36229 2007-04-03  Bruno Haible  <bruno@clisp.org>
36230
36231         * modules/argmatch-tests (Makefile.am): New variable
36232         test_argmatch_LDADD.
36233         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36234         * modules/array-list-tests (Makefile.am): New variable
36235         test_array_list_LDADD.
36236         * modules/array-oset-tests (Makefile.am): New variable
36237         test_array_oset_LDADD.
36238         * modules/avltree-list-tests (Makefile.am): New variable
36239         test_avltree_list_LDADD.
36240         * modules/avltree-oset-tests (Makefile.am): New variable
36241         test_avltree_oset_LDADD.
36242         * modules/avltreehash-list-tests (Makefile.am): New variable
36243         test_avltreehash_list_LDADD.
36244         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36245         test_canonicalize_lgpl_LDADD.
36246         * modules/carray-list-tests (Makefile.am): New variable
36247         test_carray_list_LDADD.
36248         * modules/dirname-tests (Makefile.am): New variable
36249         test_dirname_LDADD.
36250         * modules/linked-list-tests (Makefile.am): New variable
36251         test_linked_list_LDADD.
36252         * modules/linkedhash-list-tests (Makefile.am): New variable
36253         test_linkedhash_list_LDADD.
36254         * modules/rbtree-list-tests (Makefile.am): New variable
36255         test_rbtree_list_LDADD.
36256         * modules/rbtree-oset-tests (Makefile.am): New variable
36257         test_rbtree_oset_LDADD.
36258         * modules/rbtreehash-list-tests (Makefile.am): New variable
36259         test_rbtreehash_list_LDADD.
36260         * modules/xvasprintf-tests (Makefile.am): New variable
36261         test_xvasprintf_LDADD.
36262         Reported by Eric Blake.
36263
36264 2007-04-03  Eric Blake  <ebb9@byu.net>
36265
36266         * DEPENDENCIES: Weaken m4 requirements.
36267
36268 2007-04-03  Bruno Haible  <bruno@clisp.org>
36269
36270         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36271         * modules/isnanl-tests (configure.ac): Likewise.
36272
36273 2007-04-03  Ben Pfaff  <blp@gnu.org>
36274
36275         * modules/iconv_open: Add $(srcdir)/ to source directory
36276         references in Makefile fragments that call gperf, to fix VPATH
36277         builds.
36278
36279 2007-04-03  Bruno Haible  <bruno@clisp.org>
36280
36281         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36282         * lib/ldexpl.c: Undo last change.
36283
36284 2007-04-03  Bruno Haible  <bruno@clisp.org>
36285
36286         * modules/printf-frexpl (Depends-on): Undo last change.
36287         (Files): Add m4/ldexpl.m4.
36288
36289 2007-04-03  Bruno Haible  <bruno@clisp.org>
36290
36291         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36292         * modules/isnanl (Link): New section.
36293
36294         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36295         * modules/frexp (Link): New section.
36296
36297         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36298         * modules/frexpl (Link): New section.
36299
36300         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36301         * modules/ldexpl (Link): New section.
36302
36303 2007-04-03  Bruno Haible  <bruno@clisp.org>
36304
36305         * modules/TEMPLATE-EXTENDED: New file.
36306         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36307
36308 2007-04-03  Bruno Haible  <bruno@clisp.org>
36309
36310         * DEPENDENCIES: New file.
36311         Suggested by Simon Josefsson.
36312
36313 2007-04-03  Bruno Haible  <bruno@clisp.org>
36314
36315         * doc/gnulib.texi: Escape @.
36316
36317 2007-04-03  James Youngman  <jay@gnu.org>
36318         and Paul Eggert  <eggert@cs.ucla.edu>
36319
36320         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36321         birthtime on all systems that have birthtime, not just those which
36322         use st_birthtimensec rather than st_birthtim.  Putting zero in
36323         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36324         that the birth time is not available for files on an NFS mount.
36325
36326 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36327
36328         * modules/memxor: Move back from crypto/, suggested by Bruno.
36329         * modules/crypto/hmac-sha1: Fix memxor dependency.
36330
36331         * modules/crypto/gc: Moved from ../.
36332
36333 2007-04-02  Eric Blake  <ebb9@byu.net>
36334
36335         * lib/ldexpl.c (includes): Avoid libm.
36336
36337         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36338
36339 2007-04-02  Bruno Haible  <bruno@clisp.org>
36340
36341         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36342         on IRIX.
36343
36344 2007-04-02  Bruno Haible  <bruno@clisp.org>
36345
36346         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36347         x86 or x86_64 platforms running MacOS X.
36348         Reported by Ryan Schmidt <@ryandesign.com>.
36349
36350 2007-04-02  Bruno Haible  <bruno@clisp.org>
36351
36352         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36353         i386.
36354
36355 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36356
36357         * modules/crypto/arcfour: Moved from ../.
36358         * modules/crypto/arcfour-tests: Moved from ../.
36359         * modules/crypto/arctwo: Moved from ../.
36360         * modules/crypto/arctwo-tests: Moved from ../.
36361         * modules/crypto/des: Moved from ../.
36362         * modules/crypto/des-tests: Moved from ../.
36363         * modules/crypto/gc-arcfour: Moved from ../.
36364         * modules/crypto/gc-arcfour-tests: Moved from ../.
36365         * modules/crypto/gc-arctwo: Moved from ../.
36366         * modules/crypto/gc-arctwo-tests: Moved from ../.
36367         * modules/crypto/gc-des: Moved from ../.
36368         * modules/crypto/gc-des-tests: Moved from ../.
36369         * modules/crypto/gc-hmac-md5: Moved from ../.
36370         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36371         * modules/crypto/gc-hmac-sha1: Moved from ../.
36372         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36373         * modules/crypto/gc-md2: Moved from ../.
36374         * modules/crypto/gc-md2-tests: Moved from ../.
36375         * modules/crypto/gc-md4: Moved from ../.
36376         * modules/crypto/gc-md4-tests: Moved from ../.
36377         * modules/crypto/gc-md5: Moved from ../.
36378         * modules/crypto/gc-md5-tests: Moved from ../.
36379         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36380         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36381         * modules/crypto/gc-random: Moved from ../.
36382         * modules/crypto/gc-rijndael: Moved from ../.
36383         * modules/crypto/gc-rijndael-tests: Moved from ../.
36384         * modules/crypto/gc-sha1: Moved from ../.
36385         * modules/crypto/gc-sha1-tests: Moved from ../.
36386         * modules/crypto/gc-tests: Moved from ../.
36387         * modules/crypto/hmac-md5: Moved from ../.
36388         * modules/crypto/hmac-md5-tests: Moved from ../.
36389         * modules/crypto/hmac-sha1: Moved from ../.
36390         * modules/crypto/hmac-sha1-tests: Moved from ../.
36391         * modules/crypto/md2: Moved from ../.
36392         * modules/crypto/md2-tests: Moved from ../.
36393         * modules/crypto/md4: Moved from ../.
36394         * modules/crypto/md4-tests: Moved from ../.
36395         * modules/crypto/md5: Moved from ../.
36396         * modules/crypto/md5-tests: Moved from ../.
36397         * modules/crypto/memxor: Moved from ../.
36398         * modules/crypto/rijndael: Moved from ../.
36399         * modules/crypto/rijndael-tests: Moved from ../.
36400         * modules/crypto/sha1: Moved from ../.
36401
36402 2007-03-30  James Youngman  <jay@gnu.org>
36403
36404         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36405         rename() to change the ctime of a file (because ctime is unaffected
36406         by rename on jfs2 on AIX 5.1).
36407         (main): Start by doing cleanup, in case a previous run failed leaving
36408         test files behind.
36409
36410 2007-03-31  Bruno Haible  <bruno@clisp.org>
36411
36412         Support old proprietary implementations of iconv.
36413         * modules/iconv_open: New file.
36414         * lib/iconv_.h: New file.
36415         * m4/iconv_h.m4: New file.
36416         * lib/iconv_open.c: New file.
36417         * lib/iconv_open-aix.gperf: New file.
36418         * lib/iconv_open-hpux.gperf: New file.
36419         * lib/iconv_open-irix.gperf: New file.
36420         * lib/iconv_open-osf.gperf: New file.
36421         * m4/iconv_open.m4: New file.
36422         * modules/linebreak (Depends-on): Add iconv_open.
36423         * modules/striconv (Depends-on): Likewise.
36424         * modules/striconveh (Depends-on): Likewise.
36425         * modules/unicodeio (Depends-on): Likewise.
36426         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36427         (iconv_t)(-1).
36428         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36429         conversion if cd is (iconv_t)(-1).
36430         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36431         is not possible.
36432
36433 2007-03-31  Bruno Haible  <bruno@clisp.org>
36434
36435         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36436         work on Solaris either. Protect also second use of "autodetect_jp".
36437
36438 2007-03-31  Bruno Haible  <bruno@clisp.org>
36439
36440         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36441         the function is not present.
36442
36443 2007-03-31  Bruno Haible  <bruno@clisp.org>
36444
36445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36446         the function is not present.
36447
36448 2007-03-31  Bruno Haible  <bruno@clisp.org>
36449
36450         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36451         a bug in HP-UX iconv_open().
36452
36453 2007-03-31  Bruno Haible  <bruno@clisp.org>
36454
36455         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36456         (Mathematics <math.h>): New section, add fpieee.
36457         (Input/output <stdio.h>): Add fseterr.
36458         (Mathematics <math.h>): New section, add printf-frexp.
36459         (Container data structures): Add sublist.
36460         (Core language properties): Add fpucw, inline.
36461         (Functions for greatest-width integer types <inttypes.h>): Add
36462         imaxabs, imaxdiv, inttypes.
36463         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36464         isnanl-nolibm, ldexp.
36465         (Mathematics <math.h>): New section, add printf-frexpl.
36466         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36467         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36468         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36469         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36470         (Unicode string functions): Add unistr/u*-mbtoucr.
36471         (Java): Add javacomp-script, javaexec-script.
36472         (C#): Add csharpcomp-script, csharpexec-script.
36473         (Support for building libraries and executables): Add havelib,
36474         relocatable-*.
36475         (Support for maintaining and releasing projects): Renamed from
36476         'Support for maintaining and release projects'. Add announce-gen.
36477
36478 2007-03-31  Bruno Haible  <bruno@clisp.org>
36479
36480         * README: Talk primarily about git.
36481         (git and CVS): Renamed from CVS.
36482         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36483         gnulib is available through git.
36484         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36485
36486 2007-03-30  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36489         * lib/poll_.h: Likewise.
36490         * lib/stat_.h: Likewise.
36491         * lib/sys_time_.h: Likewise.
36492         * lib/sysexit_.h: Likewise.
36493         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36494         * lib/stdbool_.h: Likewise.
36495         * lib/byteswap_.h: Add double-inclusion guard.
36496
36497 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36498
36499         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36500
36501 2007-03-30  Karl Berry  <karl@gnu.org>
36502
36503         * config/srclist-update: double space after USA in the license
36504         substitution, since that's how it's usually (?) written.
36505
36506 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36507
36508         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36509         reported by Bruno Haible.
36510
36511 2007-03-29  Bruno Haible  <bruno@clisp.org>
36512
36513         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36514         a bug in AIX iconv().
36515
36516 2007-03-29  Bruno Haible  <bruno@clisp.org>
36517
36518         * modules/ldexpl-tests: New file.
36519         * tests/test-ldexpl.c: New file.
36520
36521 2007-03-29  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/ldexpl.c: Include fpucw.h.
36524         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36525         multiplication.
36526         * modules/ldexpl (Depends-on): Add fpucw.
36527
36528 2007-03-29  Bruno Haible  <bruno@clisp.org>
36529
36530         * modules/ldexpl: New file.
36531         * m4/ldexpl.m4: New file.
36532         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36533         set.
36534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36535         REPLACE_LDEXPL.
36536         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36537         REPLACE_LDEXPL.
36538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36539         gl_FUNC_LDEXPL_WORKS.
36540         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36541         * modules/mathl (Files): Remove lib/ldexpl.c.
36542         (Depends-on): Add ldexpl.
36543
36544 2007-03-29  Bruno Haible  <bruno@clisp.org>
36545
36546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36547
36548 2007-03-29  Bruno Haible  <bruno@clisp.org>
36549
36550         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36551         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36552         and possibly also HP-UX.
36553         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36554         work on AIX, IRIX, HP-UX, OSF/1.
36555         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36556         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36557         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36558         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36559         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36560         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36561
36562 2007-03-29  Bruno Haible  <bruno@clisp.org>
36563
36564         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36565
36566 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36567
36568         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36569         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36570
36571 2007-03-29  Eric Blake  <ebb9@byu.net>
36572
36573         * lib/acl-internal.h: Remove redundant include.
36574         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36575         Cygwin when a file is locked.
36576
36577 2007-03-29  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36580         file.
36581         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36582
36583 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36584
36585         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36586         try to remove a parent directory if the child couldn't be removed
36587         (except for the first rmdir, which could fail because the child
36588         doesn't exist).  Problem reported by Jeff Blaine in
36589         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36590
36591 2007-03-28  Bruno Haible  <bruno@clisp.org>
36592
36593         * lib/striconveh.c (utf8conv_carefully): New function.
36594         (mem_cd_iconveh_internal): Invoke it.
36595
36596 2007-03-28  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36599         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36600         input.
36601         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36602         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36603         unistr/u8-uctomb.
36604
36605 2007-03-28  Bruno Haible  <bruno@clisp.org>
36606
36607         * modules/unistr/u8-mbtoucr: New file.
36608         * lib/unistr/u8-mbtoucr.c: New file.
36609         * modules/unistr/u16-mbtoucr: New file.
36610         * lib/unistr/u16-mbtoucr.c: New file.
36611         * modules/unistr/u16-mbtoucr: New file.
36612         * lib/unistr/u16-mbtoucr.c: New file.
36613         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36614
36615 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36616             Bruno Haible  <bruno@clisp.org>
36617
36618         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36619         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36620         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36621
36622         * m4/stdio_h.m4: Add stubs for vasprintf too.
36623
36624         * modules/stdio: Support vasprintf in sed command.
36625
36626         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36627         vasprintf.h.  Add stdio module indicator.
36628
36629         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36630         vasprintf.h.
36631
36632         * lib/vasprintf.h: File removed.
36633
36634         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36635         * lib/vasprintf.c: Ditto.
36636         * lib/xvasprintf.c: Ditto.
36637         * tests/test-vasprintf-posix.c: Ditto.
36638         * tests/test-vasprintf.c: Ditto.
36639
36640 2007-03-27  Bruno Haible  <bruno@clisp.org>
36641
36642         Make vasnprintf multithread-safe.
36643         * lib/vasnprintf.c (decimal_point_char): New function.
36644         (VASNPRINTF): Use it.
36645         Suggested by Simon Josefsson.
36646
36647 2007-03-27  Eric Blake  <ebb9@byu.net>
36648
36649         Support sub-second birthtime on cygwin.
36650         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36651         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36652         (get_stat_birthtime): Also work with st_birthtim.
36653
36654 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36655
36656         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36657         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36658         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36659         (get_stat_birthtime_ns): Simplify compile-time tests.
36660         (get_stat_birthtime): Change the API to look like
36661         get_stat_mtime etc., except return a negative tv_nsec on error.
36662         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36663         Don't check for "spare" fields.
36664         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36665         or for struct stat.st_birthtime, as these tests aren't used.
36666         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36667
36668 2007-03-27  Bruno Haible  <bruno@clisp.org>
36669
36670         * lib/stat-time.h: Include <sys/stat.h>.
36671
36672 2007-03-27  James Youngman  <jay@gnu.org>
36673
36674         * lib/stat-time.h (get_stat_birthtime): New function for
36675           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36676         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36677           and its variants.
36678         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36679         * modules/stat-time-test: New file.
36680         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36681
36682 2007-03-26  Bruno Haible  <bruno@clisp.org>
36683
36684         Better support of signalling NaNs.
36685         * lib/atanl.c: Include isnanl.h.
36686         (atanl): Perform test for NaN at the beginning of the function and
36687         through a call to isnanl.
36688         * lib/cosl.c: Include isnanl.h.
36689         (cosl): Perform test for NaN at the beginning of the function and
36690         through a call to isnanl.
36691         * lib/ldexpl.c: Include isnanl.h.
36692         (ldexpl): Perform test for NaN through a call to isnanl.
36693         * lib/logl.c: Include isnanl.h.
36694         (logl): Perform test for NaN at the beginning of the function and
36695         through a call to isnanl.
36696         * lib/sinl.c: Include isnanl.h.
36697         (sinl): Perform test for NaN at the beginning of the function and
36698         through a call to isnanl.
36699         * lib/sqrtl.c: Include isnanl.h.
36700         (sqrtl): Perform test for NaN at the beginning of the function and
36701         through a call to isnanl.
36702         * lib/tanl.c: Include isnanl.h.
36703         (tanl): Perform test for NaN at the beginning of the function and
36704         through a call to isnanl.
36705         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36706         * modules/mathl (Depends-on): Add isnanl.
36707
36708 2007-03-26  Eric Blake  <ebb9@byu.net>
36709
36710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36711         regression in logic sense of previous patch.
36712
36713 2007-03-26  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36716         unportable shell command "if ! ...".
36717         Reported by Ralf Wildenhues.
36718
36719 2007-03-25  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36722         <sysexits.h> file, and only add EX_CONFIG.
36723         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36724         absolute file name and whether it is sufficient. Substitute also
36725         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36726         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36727         ABSOLUTE_SYSEXITS_H into sysexits.h.
36728
36729 2007-03-25  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36732         hints is NULL.
36733
36734 2007-03-25  Bruno Haible  <bruno@clisp.org>
36735
36736         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36737         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36738
36739 2007-03-25  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/vasnprintf.c: Include langinfo.h.
36742         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36743         multithread-safe.
36744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36753         Reported by Simon Josefsson.
36754
36755 2007-03-25  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36758         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36759         * modules/vasnprintf (Depends-on): Add stdint.
36760
36761 2007-03-25  Bruno Haible  <bruno@clisp.org>
36762
36763         * modules/fpieee: New file.
36764         * m4/fpieee.m4: New file.
36765         * modules/isnan-nolibm (Depends-on): Add fpieee.
36766         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36767         * modules/isnanl (Depends-on): Add fpieee.
36768
36769 2007-03-25  Bruno Haible  <bruno@clisp.org>
36770
36771         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36772
36773 2007-03-25  Bruno Haible  <bruno@clisp.org>
36774
36775         Avoid test failures on IRIX 6.5.
36776         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36777         (main): Use it.
36778         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36779         macros.
36780         (main): Use them.
36781
36782 2007-03-25  Bruno Haible  <bruno@clisp.org>
36783
36784         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36785         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36786         exists but doesn't work.
36787         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36788         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36790         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36791
36792 2007-03-25  Bruno Haible  <bruno@clisp.org>
36793
36794         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36795         returns inf. Needed on IRIX 6.5.
36796
36797 2007-03-25  Bruno Haible  <bruno@clisp.org>
36798
36799         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36800         (main): Use isnanl instead of x != x idiom.
36801         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36802
36803         * tests/test-frexp.c: Include isnan.h.
36804         (main): Use isnan instead of x != x idiom.
36805         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36806
36807 2007-03-25  Bruno Haible  <bruno@clisp.org>
36808
36809         * tests/test-frexp.c (NaN): New function/macro.
36810         (main): Use it instead of 0.0 / 0.0.
36811         * tests/test-isnan.c (NaN): New function/macro.
36812         (main): Use it instead of 0.0 / 0.0.
36813         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36814         (test_function): Use it instead of 0.0 / 0.0.
36815         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36816         (test_function): Use it instead of 0.0 / 0.0.
36817         * tests/test-snprintf-posix.h (NaN): New function/macro.
36818         (test_function): Use it instead of 0.0 / 0.0.
36819         * tests/test-sprintf-posix.h (NaN): New function/macro.
36820         (test_function): Use it instead of 0.0 / 0.0.
36821         * tests/test-fprintf-posix.h (NaN): New function/macro.
36822         (test_function): Use it instead of 0.0 / 0.0.
36823         * tests/test-printf-posix.h (NaN): New function/macro.
36824         (test_function): Use it instead of 0.0 / 0.0.
36825
36826         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36827
36828 2007-03-25  Bruno Haible  <bruno@clisp.org>
36829
36830         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36831
36832 2007-03-25  Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/regexec.c (merge_state_with_log): Make static.
36835
36836 2007-03-25  Bruno Haible  <bruno@clisp.org>
36837
36838         * lib/trigl.c (kernel_rem_pio2): Make static.
36839
36840 2007-03-25  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/sincosl.c (sincosl_table): Make static.
36843
36844 2007-03-25  Bruno Haible  <bruno@clisp.org>
36845
36846         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36847         if the compiler does not support C99.
36848
36849 2007-03-25  Bruno Haible  <bruno@clisp.org>
36850
36851         * modules/time (Makefile.am): Ensure all rule action lines start with a
36852         tab.
36853
36854 2007-03-24  Bruno Haible  <bruno@clisp.org>
36855
36856         * modules/tsearch-tests: New file.
36857         * tests/test-tsearch.sh: New file.
36858         * tests/test-tsearch.c: New file, mostly copied from glibc.
36859
36860         * modules/search-tests: New file.
36861         * tests/test-search.c: New file.
36862
36863         * modules/search: New file.
36864         * lib/search_.h: New file, incorporating lib/tsearch.h.
36865         * m4/search_h.m4: New file.
36866         * lib/tsearch.h: Remove file.
36867         * lib/tsearch.c: Include search.h instead of tsearch.h.
36868         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36869         HAVE_TSEARCH.
36870         * modules/tsearch (Files): Remove lib/tsearch.h.
36871         (Depends-on): Add search.
36872         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36873         (Include): Change tsearch.h into search.h.
36874
36875 2007-03-24  Bruno Haible  <bruno@clisp.org>
36876
36877         * modules/fpucw: New file.
36878         * lib/fpucw.h: New file.
36879         * lib/frexp.c: Include fpucw.h.
36880         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36881         (FUNC): Use them.
36882         * lib/printf-frexp.c: Include fpucw.h.
36883         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36884         (FUNC): Use them.
36885         * lib/vasnprintf.c: Include fpucw.h.
36886         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36887         'long double' calculations.
36888         * tests/test-frexpl.c: Include fpucw.h.
36889         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36890         * tests/test-printf-frexpl.c: Include fpucw.h.
36891         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36892         * modules/frexpl (Depends-on): Add fpucw.
36893         * modules/printf-frexpl (Depends-on): Likewise.
36894         * modules/fprintf-posix (Depends-on): Likewise.
36895         * modules/snprintf-posix (Depends-on): Likewise.
36896         * modules/sprintf-posix (Depends-on): Likewise.
36897         * modules/vasnprintf-posix (Depends-on): Likewise.
36898         * modules/vasprintf-posix (Depends-on): Likewise.
36899         * modules/vfprintf-posix (Depends-on): Likewise.
36900         * modules/vsnprintf-posix (Depends-on): Likewise.
36901         * modules/vsprintf-posix (Depends-on): Likewise.
36902         * modules/frexpl-tests (Depends-on): Likewise.
36903         * modules/printf-frexpl-tests (Depends-on): Likewise.
36904
36905 2007-03-24  Bruno Haible  <bruno@clisp.org>
36906
36907         * lib/float+.h: New file.
36908         * lib/isnan.c: Include float+.h.
36909         (SIZE): New macro.
36910         (FUNC): Compare only SIZE bytes of the value.
36911         * lib/vasnprintf.c: Include float+.h.
36912         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36913         SIZEOF_LDBL or SIZEOF_DBL bytes.
36914         * modules/isnan-nolibm (Files): Add lib/float+.h.
36915         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36916         * modules/isnanl (Files): Add lib/float+.h.
36917         * modules/vasnprintf (Files): Add lib/float+.h.
36918
36919 2007-03-24  Bruno Haible  <bruno@clisp.org>
36920
36921         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36922         include isnanl-nolibm.h.
36923
36924 2007-03-24  Bruno Haible  <bruno@clisp.org>
36925
36926         * tests/test-read-file.c (main): Don't produce spurious output for
36927         expected situations. Make the test fail if it encountered unexpected
36928         results.
36929
36930 2007-03-24  Bruno Haible  <bruno@clisp.org>
36931
36932         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36933         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36934
36935 2007-03-24  Bruno Haible  <bruno@clisp.org>
36936
36937         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36938
36939 2007-03-24  Bruno Haible  <bruno@clisp.org>
36940
36941         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36942         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36943
36944         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36945         * modules/utf8-ucs4: Turn into a symbolic link to module
36946         unistr/u8-mbtouc.
36947
36948         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36949         utf8-ucs4-unsafe.
36950         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36951         unistr/u8-mbtouc-unsafe.
36952
36953         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36954         * modules/utf16-ucs4: Turn into a symbolic link to module
36955         unistr/u16-mbtouc.
36956
36957         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36958         utf16-ucs4-unsafe.
36959         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36960         unistr/u16-mbtouc-unsafe.
36961
36962         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36963         * modules/ucs4-utf8: Turn into a symbolic link to module
36964         unistr/u8-ubtomb.
36965
36966         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36967         * modules/ucs4-utf16: Turn into a symbolic link to module
36968         unistr/u16-ubtomb.
36969
36970 2007-03-24  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36973         Enable the function only if HAVE_INLINE.
36974         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36975         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36976         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36977         Enable the function only if HAVE_INLINE.
36978         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36979         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36980         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36981         Enable the function only if HAVE_INLINE.
36982         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36983         Enable the function only if HAVE_INLINE.
36984         * modules/utf8-ucs4: Update.
36985         * modules/utf8-ucs4-unsafe: Update.
36986         * modules/utf16-ucs4: Update.
36987         * modules/utf16-ucs4-unsafe: Update.
36988         * modules/ucs4-utf8: Update.
36989         * modules/ucs4-utf16: Update.
36990
36991 2007-03-24  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/utf8-ucs4.h: Remove file.
36994         * lib/utf8-ucs4-unsafe.h: Remove file.
36995         * lib/utf16-ucs4.h: Remove file.
36996         * lib/utf16-ucs4-unsafe.h: Remove file.
36997         * lib/ucs4-utf8.h: Remove file.
36998         * lib/ucs4-utf16.h: Remove file.
36999         * lib/unistr.h: Include their previous contents.
37000         * m4/utf-ucs4.m4: Remove file.
37001         * m4/ucs4-utf.m4: Remove file.
37002         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37003         (Depends-on): Add unistr/base.
37004         (configure.ac): Remove gl_UTF_UCS4.
37005         (Makefile.am): Update.
37006         (Include): Change to unistr.h.
37007         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37008         (Depends-on): Add unistr/base.
37009         (configure.ac): Remove gl_UTF_UCS4.
37010         (Makefile.am): Update.
37011         (Include): Change to unistr.h.
37012         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37013         (Depends-on): Add unistr/base.
37014         (configure.ac): Remove gl_UTF_UCS4.
37015         (Makefile.am): Update.
37016         (Include): Change to unistr.h.
37017         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37018         (Depends-on): Add unistr/base.
37019         (configure.ac): Remove gl_UTF_UCS4.
37020         (Makefile.am): Update.
37021         (Include): Change to unistr.h.
37022         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37023         (Depends-on): Add unistr/base.
37024         (configure.ac): Remove gl_UCS4_UTF.
37025         (Makefile.am): Update.
37026         (Include): Change to unistr.h.
37027         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37028         (Depends-on): Add unistr/base.
37029         (configure.ac): Remove gl_UCS4_UTF.
37030         (Makefile.am): Update.
37031         (Include): Change to unistr.h.
37032         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37033         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37034         utf8-ucs4-unsafe.h.
37035         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37036         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37037         utf16-ucs4-unsafe.h.
37038         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37039         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37040         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37041         * lib/unistr/u8-strchr.c: Likewise.
37042         * lib/unistr/u8-strrchr.c: Likewise.
37043         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37044         * lib/unistr/u16-strchr.c: Likewise.
37045         * lib/unistr/u16-strrchr.c: Likewise.
37046         * lib/striconveh.c: Update.
37047         * lib/linebreak.c: Update.
37048
37049 2007-03-24  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37052         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37053
37054 2007-03-22  Bruno Haible  <bruno@clisp.org>
37055
37056         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37057
37058 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37059
37060         * MODULES.html.sh (File system functions): New module write-any-file.
37061         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37062         * m4/write-any-file.m4: New files.
37063
37064 2007-03-23  Eric Blake  <ebb9@byu.net>
37065
37066         * gnulib-tool: Rearrange space-tab sequences, since some editors
37067         like to eat them.
37068
37069 2007-03-23  Eric Blake  <ebb9@byu.net>
37070
37071         * lib/version-etc.c (version_etc_va): Update license wording to
37072         be more concise.  Recommended by Richard Stallman.
37073
37074 2007-03-22  Bruno Haible  <bruno@clisp.org>
37075
37076         * lib/poll.c (MSG_PEEK): New fallback definition.
37077
37078 2007-03-22  Bruno Haible  <bruno@clisp.org>
37079
37080         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37081         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37082         (main): Update.
37083         Fixes a compilation error on BeOS.
37084
37085 2007-03-22  Bruno Haible  <bruno@clisp.org>
37086
37087         * modules/frexpl-tests: New file.
37088         * tests/test-frexpl.c: New file.
37089
37090         * modules/frexpl: New file.
37091         * m4/frexpl.m4: New file.
37092         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37093         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37095         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37096         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37097         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37098
37099 2007-03-22  Bruno Haible  <bruno@clisp.org>
37100
37101         * lib/frexpl.c: Share code with lib/frexp.c.
37102         * modules/mathl (Files): Add lib/frexp.c.
37103         (Depends-on): Add isnanl-nolibm.
37104
37105 2007-03-22  Bruno Haible  <bruno@clisp.org>
37106
37107         * modules/printf-frexp (Files): Add m4/frexp.m4.
37108         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37109         only if the found frexp function actually works.
37110
37111 2007-03-22  Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/frexp.c: Remove older implementation that uses divisions.
37114
37115 2007-03-21  Bruno Haible  <bruno@clisp.org>
37116
37117         * modules/frexp-tests: New file.
37118         * tests/test-frexp.c: New file.
37119
37120         * modules/frexp: New file.
37121         * lib/frexp.c: New file.
37122         * m4/frexp.m4: New file.
37123         * lib/math_.h (frexp): New declaration.
37124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37125         REPLACE_FREXP.
37126         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37127
37128 2007-03-21  Bruno Haible  <bruno@clisp.org>
37129
37130         * modules/isnanl-tests: New file.
37131         * tests/test-isnanl.c: New file.
37132
37133         * modules/isnanl: New file.
37134         * lib/isnanl.h: New file.
37135         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37136         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37137         gl_FUNC_ISNANL_WORKS.
37138         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37139         New macros.
37140
37141 2007-03-21  Bruno Haible  <bruno@clisp.org>
37142
37143         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37144         lib/isnanl.h.
37145         (Include): Update.
37146         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37147         * lib/vasnprintf.c: Update.
37148         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37149         tests/test-isnanl.h, remove tests/test-isnanl.c.
37150         (Makefile.am): Update.
37151         * tests/test-isnanl-nolibm.c: New file.
37152         * tests/test-isnanl.h: New file.
37153         * tests/test-isnanl.c: Remove file.
37154
37155 2007-03-21  Jim Meyering  <jim@meyering.net>
37156
37157         When trying to open ".", treat ESTALE like EACCES.
37158         * lib/savewd.c (savewd_save): Resort to forking not just upon
37159         failure with EACCES, but also when errno is ESTALE.
37160
37161 2007-03-20  Bruno Haible  <bruno@clisp.org>
37162
37163         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37164         Needed on AIX 5.1. Reported by Matthew Woehlke.
37165
37166 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37167
37168         Suggestions by Bruno Haible:
37169         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37170         our own.
37171         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37172         * modules/acl (Depends-on): Add gettext.
37173
37174 2007-03-19  Bruno Haible  <bruno@clisp.org>
37175
37176         * modules/iconvme: Remove file.
37177         * lib/iconvme.h: Remove file.
37178         * lib/iconvme.c: Remove file.
37179         * m4/iconvme.m4: Remove file.
37180
37181 2007-03-19  Bruno Haible  <bruno@clisp.org>
37182
37183         * doc/relocatable-maint.texi: Break long shell script line.
37184         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37185
37186 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37187
37188         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37189         handle file_has_acl.
37190         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37191         * lib/acl.c: Move header inclusions and related macro defns into
37192         lib/acl-internal.h.
37193         (S_ISLNK): Remove defn, since that's now done for us.
37194         (file_has_acl): Move to lib/file-has-acl.c.
37195         Call acl_trivial if available.  This is the crucial part of the fix.
37196         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37197         shared within the library.  Rewrite a bit, partly to make it compatible
37198         with the GNU coding style.
37199         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37200         Remove unnecessary double-quotes.
37201         Don't test for acl_to_text; the build will catch that.
37202         Replace acl_entries if it doesn't exist and it is needed.
37203         Check for -lsec and acl_trivial (as used on Solaris 10).
37204         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37205         lib/file-has-acl.c.
37206         (Depends-on): Add sys_stat, for S_ISLNK.
37207
37208 2007-03-19  Ben Pfaff  <blp@gnu.org>
37209
37210         * doc/gnulib.texi: Fix typos.
37211         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37212
37213 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37214
37215         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37216         If size is zero here, buf must be zero.
37217
37218 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37219
37220         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37221         <bruno@clisp.org>.
37222
37223 2007-03-18  Bruno Haible  <bruno@clisp.org>
37224
37225         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37226         Suggested by Eric Blake.
37227
37228 2007-03-18  Ben Pfaff  <blp@gnu.org>
37229
37230         * doc/relocatable.texi: Recommend using as prefix a directory
37231         that does not exist and will never be created.  Based on
37232         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37233         and others.
37234
37235 2007-03-17  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/fchownat.c: Include lchown.h.
37238
37239 2007-03-17  Bruno Haible  <bruno@clisp.org>
37240
37241         Fix endless loop when the given allocated size was > INT_MAX.
37242         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37243         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37244         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37245         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37246         * lib/sprintf.c (sprintf): Likewise.
37247
37248 2007-03-17  Bruno Haible  <bruno@clisp.org>
37249
37250         * tests/test-argp-2.sh (func_compare): Output a context diff.
37251
37252 2007-03-17  Bruno Haible  <bruno@clisp.org>
37253
37254         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37255         locale's decimal-point character.
37256
37257 2007-03-17  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37260         before comparing it. Needed because on some platforms (e.g. x86) a
37261         'long double' occupies less bytes than sizeof (long double).
37262
37263 2007-03-17  Bruno Haible  <bruno@clisp.org>
37264
37265         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37266         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37267         * tests/test-getaddrinfo.c (simple): Likewise.
37268         * tests/test-read-file.c (main): Likewise.
37269
37270 2007-03-17  Bruno Haible  <bruno@clisp.org>
37271
37272         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37273
37274 2007-03-17  Bruno Haible  <bruno@clisp.org>
37275
37276         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37277         unused variable.
37278
37279 2007-03-17  Bruno Haible  <bruno@clisp.org>
37280
37281         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37282         * tests/test-c-strncasecmp.c: Likewise.
37283
37284 2007-03-17  Bruno Haible  <bruno@clisp.org>
37285
37286         * modules/stdlib (Depends-on): Add unistd.
37287         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37288         Needed for MacOS X 10.3.
37289
37290 2007-03-17  Bruno Haible  <bruno@clisp.org>
37291
37292         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37293
37294 2007-03-17  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37297
37298 2007-03-17  Bruno Haible  <bruno@clisp.org>
37299
37300         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37301         to reflect files copied from gnulib (with or without modifications).
37302         Suggested by Jim Meyering.
37303
37304 2007-03-17  Eric Blake  <ebb9@byu.net>
37305
37306         * NEWS: Document stdlib change from 2007-02-18.
37307
37308 2007-03-17  Jim Meyering  <jim@meyering.net>
37309
37310         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37311         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37312         someone uses a name containing shell meta-characters.
37313         Reported by Alfred M. Szmidt.
37314
37315         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37316
37317 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37318
37319         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37320         and copy gettext configuration files only if configure.ac contains
37321         a use of AM_GNU_GETTEXT_VERSION.
37322
37323 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37324
37325         * build-aux/bootstrap (gnulib_name): New variable.
37326         (gnulib_tool_options): Use it.
37327
37328 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37329
37330         * tests/test-des.c: Use new namespace.
37331
37332 2007-03-15  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37335         Reported by James Youngman <jay@gnu.org>.
37336
37337 2007-03-15  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37340         declared prototype. Needed with cc on OSF/1 5.1.
37341
37342 2007-03-15  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37345         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37346         (struct gl_list_implementation): Add dispose_fn argument to the
37347         'create_empty', 'create' methods.
37348         (struct gl_list_impl_base): Add field 'dispose_fn'.
37349         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37350         argument.
37351         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37352         dispose_fn argument.
37353         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37354         dispose_fn on the dropped values.
37355         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37356         dispose_fn argument.
37357         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37358         dropped values.
37359         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37360         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37361         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37362         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37363         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37364         argument.
37365         (gl_tree_list_free): Call dispose_fn on the dropped values.
37366         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37367         the dropped values.
37368         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37369         Add dispose_fn argument.
37370         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37371         Call dispose_fn on the dropped values.
37372         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37373         Add dispose_fn argument.
37374         (gl_sublist_create): Initialize the 'dispose_fn' field.
37375         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37376         * tests/test-array_list.c (main): Update.
37377         * tests/test-carray_list.c (main): Update.
37378         * tests/test-avltree_list.c (main): Update.
37379         * tests/test-rbtree_list.c (main): Update.
37380         * tests/test-avltreehash_list.c (main): Update.
37381         * tests/test-rbtreehash_list.c (main): Update.
37382         * tests/test-linked_list.c (main): Update.
37383         * tests/test-linkedhash_list.c (main): Update.
37384         * tests/test-array_oset.c (main): Update.
37385
37386 2007-03-15  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37389         (gl_oset_create_empty): Add dispose_fn argument.
37390         (struct gl_oset_implementation): Add dispose_fn argument to
37391         'create_empty' method.
37392         (struct gl_oset_impl_base): Add dispose_fn field.
37393         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37394         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37395         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37396         values.
37397         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37398         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37399         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37400         dropped value.
37401         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37402         dropped value.
37403         * tests/test-array_oset.c (main): Update.
37404         * tests/test-avltree_oset.c (main): Update.
37405         * tests/test-rbtree_oset.c (main): Update.
37406         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37407
37408 2007-03-13  Bruno Haible  <bruno@clisp.org>
37409
37410         * tests/test-stdbool.c (i): Update after last patch.
37411
37412 2007-03-12  Bruno Haible  <bruno@clisp.org>
37413
37414         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37415         the iswprint macro. Needed on Solaris 2.5.1.
37416
37417 2007-03-12  Bruno Haible  <bruno@clisp.org>
37418
37419         * tests/test-printf-frexp.c (main): Declare x as volatile.
37420
37421 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37422
37423         * doc/gnulib.texi (Build robot for gnulib): New section.
37424
37425 2007-03-12  Jim Meyering  <jim@meyering.net>
37426
37427         * build-aux/bootstrap: New file.
37428         * build-aux/bootstrap.conf: New file, from coreutils.
37429
37430 2007-03-11  Bruno Haible  <bruno@clisp.org>
37431
37432         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37433
37434 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37435
37436         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37437         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37438         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37439
37440 2007-03-11  Bruno Haible  <bruno@clisp.org>
37441
37442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37443         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37444
37445 2007-03-11  Bruno Haible  <bruno@clisp.org>
37446
37447         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37448         formula. Needed for SunPRO C 5.0.
37449
37450 2007-03-11  Bruno Haible  <bruno@clisp.org>
37451
37452         * modules/long-options (Depends-on): Add getopt.
37453
37454 2007-03-11  Bruno Haible  <bruno@clisp.org>
37455
37456         * modules/modechange (Depends-on): Add stdbool.
37457
37458 2007-03-11  Bruno Haible  <bruno@clisp.org>
37459
37460         * modules/i-ring (Depends-on): Add stdbool.
37461
37462 2007-03-11  Bruno Haible  <bruno@clisp.org>
37463
37464         * modules/gc-des (Depends-on): Add stdbool.
37465
37466 2007-03-11  Bruno Haible  <bruno@clisp.org>
37467
37468         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37469
37470 2007-03-11  Bruno Haible  <bruno@clisp.org>
37471
37472         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37473
37474 2007-03-11  Bruno Haible  <bruno@clisp.org>
37475
37476         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37477
37478 2007-03-11  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/vasnprintf.c (sprintf): Undefine.
37481
37482 2007-03-11  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37485         initializers in SunPRO C and Compaq C compilers.
37486
37487 2007-03-11  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37490         decrementing code ANSI C compliant.
37491
37492 2007-03-11  Bruno Haible  <bruno@clisp.org>
37493
37494         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37495         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37496
37497 2007-03-11  Bruno Haible  <bruno@clisp.org>
37498
37499         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37500         <stdbool.h> substitute doesn't pass.
37501
37502 2007-03-11  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37505
37506 2007-03-11  Bruno Haible  <bruno@clisp.org>
37507
37508         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37509         script, for submission to autobuild.josefsson.org.
37510
37511 2007-03-10  Bruno Haible  <bruno@clisp.org>
37512
37513         * modules/canonicalize-lgpl-tests: New file.
37514         * tests/test-canonicalize-lgpl.sh: New file.
37515         * tests/test-canonicalize-lgpl.c: New file.
37516
37517         * modules/c-strcase-tests: New file.
37518         * tests/test-c-strcase.sh: New file.
37519         * tests/test-c-strcasecmp.c: New file.
37520         * tests/test-c-strncasecmp.c: New file.
37521
37522         * modules/atexit-tests: New file.
37523         * tests/test-atexit.sh: New file.
37524         * tests/test-atexit.c: New file.
37525
37526 2007-03-10  Bruno Haible  <bruno@clisp.org>
37527
37528         * tests/test-binary-io.sh: Use temporary filenames that are not so
37529         likely to clash with those of other tests (in a parallel make).
37530         * tests/test-binary-io.c: Likewise.
37531
37532 2007-03-10  Bruno Haible  <bruno@clisp.org>
37533
37534         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37535         fallback; use #error instead.
37536         Suggested by Simon Josefsson.
37537
37538 2007-03-10  Bruno Haible  <bruno@clisp.org>
37539
37540         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37541         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37542         first and the last.
37543
37544 2007-03-10  Bruno Haible  <bruno@clisp.org>
37545
37546         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37547
37548 2007-03-10  Bruno Haible  <bruno@clisp.org>
37549
37550         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37551         "make distcheck".
37552         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37553         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37554         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37555
37556 2007-03-10  Bruno Haible  <bruno@clisp.org>
37557
37558         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37559         variable.
37560         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37561         variable.
37562
37563 2007-03-09  Eric Blake  <ebb9@byu.net>
37564         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37565
37566         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37567         types are not being provided by gnulib.
37568         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37569         types are supported.
37570
37571 2007-03-10  Bruno Haible  <bruno@clisp.org>
37572
37573         * lib/stdio_.h (__attribute__): New macro.
37574         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37575         vsprintf): Specify __attribute__ __format__ for GCC.
37576         Suggested by Eric Blake.
37577
37578 2007-03-09  Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/printf-posix-tests: New file.
37581         * tests/test-printf-posix.sh: New file.
37582         * tests/test-printf-posix.c: New file.
37583
37584         * modules/printf-posix: New file.
37585         * lib/printf.c: New file.
37586         * m4/printf-posix-rpl.m4: New file.
37587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37588         REPLACE_PRINTF.
37589         * lib/stdio_.h (printf): New declaration.
37590         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37591         ____strfmon____): New macros.
37592         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37593         REPLACE_PRINTF.
37594
37595 2007-03-09  Bruno Haible  <bruno@clisp.org>
37596
37597         * tests/test-vasnprintf-posix2.sh: New file.
37598         * tests/test-vasnprintf-posix2.c: New file.
37599         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37600         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37601         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37602
37603         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37604         a locale dependent decimal point, rather than always '.'.
37605
37606 2007-03-09  Eric Blake  <ebb9@byu.net>
37607
37608         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37609         spite of platforms like Tandem/NSK that define it to -1.
37610
37611 2007-03-08  Bruno Haible  <bruno@clisp.org>
37612
37613         * modules/vprintf-posix-tests: New file.
37614         * tests/test-vprintf-posix.sh: New file.
37615         * tests/test-vprintf-posix.c: New file.
37616         * tests/test-printf-posix.h: New file.
37617
37618         * modules/vprintf-posix: New file.
37619         * lib/vprintf.c: New file.
37620         * m4/vprintf-posix.m4: New file.
37621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37622         REPLACE_VPRINTF.
37623         * lib/stdio_.h (vprintf): New declaration.
37624         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37625         REPLACE_VPRINTF.
37626
37627 2007-03-08  Bruno Haible  <bruno@clisp.org>
37628
37629         * modules/fprintf-posix-tests: New file.
37630         * tests/test-fprintf-posix.sh: New file.
37631         * tests/test-fprintf-posix.c: New file.
37632
37633         * modules/fprintf-posix: New file.
37634         * lib/fprintf.c: New file.
37635         * m4/fprintf-posix.m4: New file.
37636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37637         REPLACE_FPRINTF.
37638         * lib/stdio_.h (fprintf): New declaration.
37639         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37640         REPLACE_FPRINTF.
37641
37642 2007-03-08  Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/vfprintf-posix-tests: New file.
37645         * tests/test-vfprintf-posix.sh: New file.
37646         * tests/test-vfprintf-posix.c: New file.
37647         * tests/test-fprintf-posix.h: New file.
37648         * tests/test-fprintf-posix.out: New file.
37649
37650         * modules/vfprintf-posix: New file.
37651         * lib/vfprintf.c: New file.
37652         * m4/vfprintf-posix.m4: New file.
37653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37654         REPLACE_VFPRINTF.
37655         * lib/stdio_.h (vfprintf): New declaration.
37656         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37657         REPLACE_VFPRINTF.
37658
37659 2007-03-08  Bruno Haible  <bruno@clisp.org>
37660
37661         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37662
37663 2007-03-08  Bruno Haible  <bruno@clisp.org>
37664
37665         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37666         instead of 'expr' invocations.
37667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37672         Suggested by Paul Eggert.
37673
37674 2007-03-08  Bruno Haible  <bruno@clisp.org>
37675
37676         * modules/fseterr-tests: New file.
37677         * tests/test-fseterr.c: New file.
37678
37679         * modules/fseterr: New file.
37680         * lib/fseterr.h: New file.
37681         * lib/fseterr.c: New file.
37682
37683 2007-03-08  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37686         * lib/getopt_.h: Likewise.
37687         * lib/mbswidth.h: Likewise.
37688         * lib/setenv.h: Likewise.
37689         * lib/vasnprintf.h: Likewise.
37690         * lib/vasprintf.h: Likewise.
37691         * lib/verror.h: Likewise.
37692         * lib/xsetenv.h: Likewise.
37693         * lib/xvasprintf.h: Likewise.
37694
37695 2007-03-08  Jim Meyering  <jim@meyering.net>
37696
37697         * users.txt: Add parted.
37698
37699         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37700
37701 2007-03-07  Bruno Haible  <bruno@clisp.org>
37702
37703         * m4/printf.m4: Make the shell script snippets copy&pastable.
37704
37705 2007-03-02  Bruno Haible  <bruno@clisp.org>
37706
37707         * lib/netinet_in_.h: New file.
37708         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37709         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37710         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37711         (Depends-on): Add absolute-header.
37712         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37713         into netinet/in.h.
37714
37715 2007-03-03  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/sys_select_.h: New file.
37718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37719         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37720         * modules/sys_select (Files): Add lib/sys_select_.h.
37721         (Depends-on): Add absolute-header.
37722         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37723         into sys/select.h.
37724
37725 2007-03-02  Bruno Haible  <bruno@clisp.org>
37726
37727         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37728         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37729         values.
37730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37731         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37732         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37733         * modules/sys_socket (Depends-on): Add absolute-header.
37734         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37735         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37736         (Include): Remove requirement of inclusion of <sys/types.h>.
37737
37738 2007-03-02  Bruno Haible  <bruno@clisp.org>
37739
37740         * lib/byteswap_.h (bswap_32): Fix formula.
37741
37742 2007-03-06  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/sprintf-posix-tests: New file.
37745         * tests/test-sprintf-posix.c: New file.
37746
37747         * modules/sprintf-posix: New file.
37748         * lib/sprintf.c: New file.
37749         * m4/sprintf-posix.m4: New file.
37750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37751         REPLACE_SPRINTF.
37752         * lib/stdio_.h (sprintf): New declaration.
37753         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37754         REPLACE_SPRINTF.
37755
37756 2007-03-06  Bruno Haible  <bruno@clisp.org>
37757
37758         * modules/vsprintf-posix-tests: New file.
37759         * tests/test-vsprintf-posix.c: New file.
37760         * tests/test-sprintf-posix.h: New file.
37761
37762         * modules/vsprintf-posix: New file.
37763         * lib/vsprintf.c: New file.
37764         * m4/vsprintf-posix.m4: New file.
37765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37766         REPLACE_VSPRINTF.
37767         * lib/stdio_.h (vsprintf): New declaration.
37768         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37769         REPLACE_VSPRINTF.
37770
37771 2007-03-06  Bruno Haible  <bruno@clisp.org>
37772
37773         * modules/vsnprintf (Depend-on): Remove minmax.
37774
37775 2007-03-06  Bruno Haible  <bruno@clisp.org>
37776
37777         * modules/snprintf-posix-tests: New file.
37778         * tests/test-snprintf-posix.c: New file.
37779
37780         * modules/snprintf-posix: New file.
37781         * m4/snprintf-posix.m4: New file.
37782         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37783         gl_FUNC_SNPRINTF.
37784         (gl_FUNC_SNPRINTF): Invoke it.
37785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37786         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37787         is set.
37788         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37789
37790 2007-03-06  Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/vsnprintf-posix-tests: New file.
37793         * tests/test-vsnprintf-posix.c: New file.
37794         * tests/test-snprintf-posix.h: New file.
37795
37796         * modules/vsnprintf-posix: New file.
37797         * m4/vsnprintf-posix.m4: New file.
37798         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37799         gl_FUNC_VSNPRINTF.
37800         (gl_FUNC_VSNPRINTF): Invoke it.
37801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37802         * lib/stdio_.h (vsnprintf): Define as a replacement if
37803         REPLACE_VSNPRINTF is set.
37804         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37805
37806 2007-03-06  Bruno Haible  <bruno@clisp.org>
37807
37808         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37810
37811 2007-03-06  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37814         (asinl): Declare also if HAVE_DECL_ASINL is set.
37815         (atanl): Declare also if HAVE_DECL_ATANL is set.
37816         (ceill): Declare also if HAVE_DECL_CEILL is set.
37817         (cosl): Declare also if HAVE_DECL_COSL is set.
37818         (expl): Declare also if HAVE_DECL_EXPL is set.
37819         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37820         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37821         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37822         (logl): Declare also if HAVE_DECL_LOGL is set.
37823         (sinl): Declare also if HAVE_DECL_SINL is set.
37824         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37825         (tanl): Declare also if HAVE_DECL_TANL is set.
37826         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37828         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37829         declaration of frexpl, ldexpl.
37830         * modules/printf-frexpl (Depends-on): Add math.
37831         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37832
37833 2007-03-05  Bruno Haible  <bruno@clisp.org>
37834
37835         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37836         frexpl and ldexpl are declared.
37837         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37838
37839 2007-03-05  Bruno Haible  <bruno@clisp.org>
37840
37841         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37842         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37843
37844 2007-03-05  Bruno Haible  <bruno@clisp.org>
37845
37846         * lib/stdio_.h: Include <stddef.h>.
37847
37848 2007-03-05  Bruno Haible  <bruno@clisp.org>
37849
37850         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37851
37852 2007-03-05  Bruno Haible  <bruno@clisp.org>
37853
37854         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37855         NetBSD 4, from Ralf Wildenhues.
37856
37857 2007-03-04  Bruno Haible  <bruno@clisp.org>
37858
37859         * lib/vasprintf.h: Update #if logic for the case when the functions
37860         exist but are overridden.
37861
37862 2007-03-04  Bruno Haible  <bruno@clisp.org>
37863
37864         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37865         implementations: glibc-2.4 and MacOS X 10.3.
37866         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37867         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37868         * tests/test-vasprintf-posix.c (test_function): Likewise.
37869
37870 2007-03-04  Bruno Haible  <bruno@clisp.org>
37871
37872         * modules/vasprintf-posix-tests: New file.
37873         * tests/test-vasprintf-posix.c: New file.
37874
37875         * modules/vasprintf-posix: New file.
37876         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37877         defined.
37878         * m4/vasprintf-posix.m4: New file.
37879         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37880         gl_FUNC_VASPRINTF.
37881         (gl_FUNC_VASPRINTF): Invoke it.
37882         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37883         here.
37884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37885
37886 2007-03-04  Bruno Haible  <bruno@clisp.org>
37887
37888         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37889         REPLACE_GETTIMEOFDAY.
37890         * modules/sys_time (Makefile.am): Likewise.
37891         * m4/sys_time_h.m4: Likewise.
37892         * m4/gettimeofday.m4: Likewise.
37893
37894 2007-03-04  Bruno Haible  <bruno@clisp.org>
37895
37896         * modules/vasnprintf-posix-tests: New file.
37897         * tests/test-vasnprintf-posix.c: New file.
37898
37899         * modules/vasnprintf-posix: New file.
37900         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37901         printf-frexpl.h.
37902         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37903         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37904         REPLACE_VASNPRINTF is defined.
37905         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37906         gl_FUNC_VASNPRINTF.
37907         (gl_FUNC_VASNPRINTF): Invoke it.
37908         * m4/vasnprintf-posix.m4: New file.
37909         * m4/printf.m4: New file.
37910
37911 2007-03-04  Bruno Haible  <bruno@clisp.org>
37912
37913         Compile progreloc.c only if --enable-relocatable is specified.
37914         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37915         if --enable-relocatable was specified.
37916         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37917         lib_SOURCES.
37918
37919 2007-03-04  Jim Meyering  <jim@meyering.net>
37920
37921         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37922         Use it consistently, rather than enumerating errno constants.
37923
37924 2007-03-04  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/xvasprintf-tests: New file.
37927         * tests/test-xvasprintf.c: New file.
37928
37929         * modules/vasprintf-tests: New file.
37930         * tests/test-vasprintf.c: New file.
37931
37932         * modules/vasnprintf-tests: New file.
37933         * tests/test-vasnprintf.c: New file.
37934
37935         * modules/vsnprintf-tests: New file.
37936         * tests/test-vsnprintf.c: New file.
37937
37938         * modules/snprintf-tests: New file.
37939         * tests/test-snprintf.c: New file.
37940
37941 2007-03-04  Bruno Haible  <bruno@clisp.org>
37942
37943         Compile relocatable.c only if --enable-relocatable is specified.
37944         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37945         gl_RELOCATABLE_LIBRARY.
37946         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37947         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37948         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37949         gl_RELOCATABLE_LIBRARY.
37950         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37951         (Makefile.am): Remove lib_SOURCES.
37952         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37953         gl_RELOCATABLE_LIBRARY.
37954         (Makefile.am): Remove lib_SOURCES.
37955         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37956         always.
37957         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37958         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37959
37960 2007-03-04  Bruno Haible  <bruno@clisp.org>
37961
37962         * modules/argmatch-tests: New file.
37963         * tests/test-argmatch.c: New file.
37964
37965         * tests/test-allocsa.c (main): Halve the number of loop runs.
37966
37967         * modules/alloca-opt-tests: New file.
37968         * tests/test-alloca-opt.c: New file.
37969
37970 2007-03-04  Jim Meyering  <jim@meyering.net>
37971
37972         Work around difference between Linux ACLs and Solaris 10 ZFS.
37973         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37974         for EINVAL.
37975
37976 2007-03-03  Bruno Haible  <bruno@clisp.org>
37977
37978         * modules/relocatable-prog (Depends-on): Add back progreloc's
37979         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37980
37981 2007-03-03  Bruno Haible  <bruno@clisp.org>
37982
37983         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37984         * modules/relocatable-lib: New file.
37985
37986 2007-03-03  Bruno Haible  <bruno@clisp.org>
37987
37988         * modules/relocatable-prog: Renamed from modules/relocatable.
37989         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37990
37991 2007-03-03  Bruno Haible  <bruno@clisp.org>
37992
37993         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37994         m4/relocatable-lib.m4.
37995         (Depends-on): Remove 'relocatable'.
37996         (configure.ac): Add gl_RELOCATABLE_NOP.
37997
37998 2007-03-03  Bruno Haible  <bruno@clisp.org>
37999
38000         * modules/relocatable-prog-wrapper: New file.
38001         * modules/relocatable (Depends-on): Add it. Remove all other
38002         dependencies except progname.
38003         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38004
38005         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38006         (gl_FUNC_STRERROR): Nop.
38007         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38008
38009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38010         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38011
38012         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38013         (gl_FUNC_READLINK): Update.
38014
38015         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38016
38017 2007-03-03  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38020         * modules/xreadlink (Depends-on): Add unistd.
38021         * modules/xreadlink-with-size (Depends-on): Likewise.
38022
38023 2007-03-03  Bruno Haible  <bruno@clisp.org>
38024
38025         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38026         extracted from gt_FUNC_SETENV.
38027         (gt_FUNC_SETENV): Remove macro.
38028         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38029         remove gt_FUNC_SETENV.
38030
38031 2007-03-03  Bruno Haible  <bruno@clisp.org>
38032
38033         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38034         ENABLE_RELOCATABLE here.
38035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38036
38037 2007-03-03  Bruno Haible  <bruno@clisp.org>
38038
38039         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38040         * tests/test-rbtreehash_list.c: Include progname.h.
38041         (main): Call set_program_name.
38042
38043         * modules/rbtree-oset-tests (Depends-on): Add progname.
38044         * tests/test-rbtree_oset.c: Include progname.h.
38045         (main): Call set_program_name.
38046
38047         * modules/rbtree-list-tests (Depends-on): Add progname.
38048         * tests/test-rbtree_list.c: Include progname.h.
38049         (main): Call set_program_name.
38050
38051         * modules/linked-list-tests (Depends-on): Add progname.
38052         * tests/test-linked_list.c: Include progname.h.
38053         (main): Call set_program_name.
38054
38055 2007-03-03  Bruno Haible  <bruno@clisp.org>
38056
38057         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38058         All uses of __restrict changed to _Restrict_.
38059         * lib/glob_.h (__restrict): Remove macro.
38060
38061 2007-03-02  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/gettext (configure.ac): Require gettext infrastructure
38064         from version 0.16.1.
38065
38066 2007-03-02  Bruno Haible  <bruno@clisp.org>
38067
38068         * modules/linkedhash-list-tests (Depends-on): Add progname.
38069         * tests/test-linkedhash_list.c: Include progname.h.
38070         (main): Call set_program_name.
38071
38072         * modules/carray-list-tests (Depends-on): Add progname.
38073         * tests/test-carray_list.c: Include progname.h.
38074         (main): Call set_program_name.
38075
38076         * modules/avltreehash-list-tests (Depends-on): Add progname.
38077         * tests/test-avltreehash_list.c: Include progname.h.
38078         (main): Call set_program_name.
38079
38080         * modules/avltree-oset-tests (Depends-on): Add progname.
38081         * tests/test-avltree_oset.c: Include progname.h.
38082         (main): Call set_program_name.
38083
38084         * modules/avltree-list-tests (Depends-on): Add progname.
38085         * tests/test-avltree_list.c: Include progname.h.
38086         (main): Call set_program_name.
38087
38088         * modules/array-oset-tests (Depends-on): Add progname.
38089         * tests/test-array_oset.c: Include progname.h.
38090         (main): Call set_program_name.
38091
38092         * modules/array-list-tests (Depends-on): Add progname.
38093         * tests/test-array_list.c: Include progname.h.
38094         (main): Call set_program_name.
38095
38096         * modules/argp-tests (Depends-on): Add progname.
38097         * tests/test-argp.c: Include argp.h first. Include progname.h.
38098         (main): Call set_program_name.
38099
38100 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38101
38102         * doc/gnulib-tool.texi (Initial import): Reword description of
38103         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38104         limited effect even if defined after the first system include.
38105
38106 2007-03-01  Bruno Haible  <bruno@clisp.org>
38107
38108         * build-aux/config.libpath: Update to libtool-1.5.22.
38109         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38110
38111 2007-03-01  Bruno Haible  <bruno@clisp.org>
38112
38113         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38114         foo_CFLAGS.
38115         Reported by Ralf Wildenhues.
38116
38117 2007-03-01  Bruno Haible  <bruno@clisp.org>
38118
38119         * build-aux/install-reloc: Remove object files left over by some
38120         compilers.
38121         Reported by Ralf Wildenhues.
38122
38123 2007-03-01  Bruno Haible  <bruno@clisp.org>
38124
38125         * build-aux/install-reloc: Break long lines.
38126
38127 2007-03-01  Bruno Haible  <bruno@clisp.org>
38128
38129         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38130         Reported by Ralf Wildenhues.
38131
38132 2007-03-01  Bruno Haible  <bruno@clisp.org>
38133
38134         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38135         include ordering constraints.
38136
38137 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38138
38139         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38141         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38142         as another example.
38143         * lib/time_.h: Fix misspelling.
38144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38145         Require gl_HEADER_TIME_H_DEFAULTS.
38146         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38147         * m4/time_r.m4 (gl_TIME_R): Likewise.
38148         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38149
38150 2007-03-01  Bruno Haible  <bruno@clisp.org>
38151
38152         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38153         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38154
38155 2007-03-01  Jim Meyering  <jim@meyering.net>
38156
38157         * modules/xreadlink (Maintainer): Add my name.
38158         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38159
38160 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38161             Bruno Haible  <bruno@clisp.org>
38162
38163         * build-aux/install-reloc: Compile also c-ctype.c.
38164         * build-aux/relocatable.sh.in: New file.
38165         * doc/relocatable.texi: New file.
38166         * doc/relocatable-maint.texi: New file.
38167         * doc/gnulib.texi: Include relocatable-maint.texi.
38168         * lib/progreloc.c: Include unistd.h unconditionally.
38169         * lib/relocwrapper.c: Include unistd.h unconditionally.
38170         Include c-ctype.h.
38171         (add_dotbin): Use c_tolower.
38172         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38173         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38174         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38175         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38176         to m4/relocatable-lib.m4.
38177         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38178         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38179         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38180         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38181         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38182         * modules/relocatable: New file.
38183         * modules/relocatable-lib: New file.
38184         * modules/relocatable-script: New file.
38185
38186 2007-02-28  Bruno Haible  <bruno@clisp.org>
38187
38188         Import --enable-relocatable infrastructure.
38189         * build-aux/config.libpath: New file, from GNU gettext.
38190         * build-aux/install-reloc: New file, from GNU gettext.
38191         * build-aux/reloc-ldflags: New file, from GNU gettext.
38192         * lib/relocatable.h: New file, from GNU gettext.
38193         * lib/relocatable.c: New file, from GNU gettext.
38194         * lib/relocwrapper.c: New file, from GNU gettext.
38195         * m4/relocatable.m4: New file, from GNU gettext.
38196
38197 2007-02-28  Bruno Haible  <bruno@clisp.org>
38198
38199         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38200
38201         * modules/xreadlink: New file, from GNU gettext with modifications.
38202         * lib/xreadlink.c: New file, from GNU gettext.
38203         * lib/xreadlink.h: Add comments.
38204         (xreadlink): New declaration.
38205
38206         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38207         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38208         lib/xreadlink-with-size.c.
38209         (configure.ac): Remove gl_XREADLINK invocation.
38210         (Makefile.am): Augment lib_SOURCES.
38211         * m4/xreadlink.m4: Remove file.
38212         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38213         (xreadlink_with_size): Renamed from xreadink.
38214         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38215         * modules/canonicalize (Depends-on): Replace xreadlink with
38216         xreadlink-with-size.
38217         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38218
38219 2007-02-25  Jim Meyering  <jim@meyering.net>
38220
38221         * build-aux/announce-gen: When complaining about excess arguments,
38222         list them.
38223
38224 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38225
38226         * README: Document signed integer overflow situation more
38227         accurately.
38228
38229 2007-02-25  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38232         'a' or 'A' conversion.
38233
38234 2007-02-25  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/filename: Renamed from modules/pathname.
38237         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38238         lib/concatpath.c with lib/concat-filename.c.
38239         (Makefile.am): Update.
38240         (Include): Replace pathname.h with filename.h.
38241         * lib/filename.h: Renamed from lib/pathname.h.
38242         (concatenated_filename): Renamed from concatenated_pathname.
38243         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38244         (concatenated_filename): Renamed from concatenated_pathname.
38245         * lib/findprog.c: Include filename.h instead of pathname.h.
38246         (find_in_path): Update.
38247         * lib/javacomp.c: Include filename.h instead of pathname.h.
38248         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38249         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38250         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38251         is_oldgcj_14_13_usable, is_javac_usable): Update.
38252         * lib/javaexec.c: Include filename.h instead of pathname.h.
38253         (execute_java_class): Update.
38254         * modules/findprog: Update.
38255         * modules/javacomp: Update.
38256         * modules/javaexec: Update.
38257         * MODULES.html.sh (File system functions): Add 'filename', remove
38258         'pathname'.
38259
38260 2007-02-25  Bruno Haible  <bruno@clisp.org>
38261
38262         * modules/printf-frexpl-tests: New file.
38263         * tests/test-printf-frexpl.c: New file.
38264
38265         * modules/printf-frexpl: New file.
38266         * lib/printf-frexpl.h: New file.
38267         * lib/printf-frexpl.c: New file.
38268         * m4/printf-frexpl.m4: New file.
38269
38270 2007-02-25  Bruno Haible  <bruno@clisp.org>
38271
38272         * modules/printf-frexp-tests: New file.
38273         * tests/test-printf-frexp.c: New file.
38274
38275         * modules/printf-frexp: New file.
38276         * lib/printf-frexp.h: New file.
38277         * lib/printf-frexp.c: New file.
38278         * m4/printf-frexp.m4: New file.
38279
38280 2007-02-25  Bruno Haible  <bruno@clisp.org>
38281
38282         Assume automake >= 1.10 for the tests.
38283         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38284         * modules/arctwo-tests: Likewise.
38285         * modules/argp-tests: Likewise.
38286         * modules/avltree-list-tests: Likewise.
38287         * modules/avltree-oset-tests: Likewise.
38288         * modules/avltreehash-list-tests: Likewise.
38289         * modules/carray-list-tests: Likewise.
38290         * modules/crc-tests: Likewise.
38291         * modules/des-tests: Likewise.
38292         * modules/gc-arcfour-tests: Likewise.
38293         * modules/gc-arctwo-tests: Likewise.
38294         * modules/gc-des-tests: Likewise.
38295         * modules/gc-hmac-md5-tests: Likewise.
38296         * modules/gc-hmac-sha1-tests: Likewise.
38297         * modules/gc-md2-tests: Likewise.
38298         * modules/gc-md4-tests: Likewise.
38299         * modules/gc-md5-tests: Likewise.
38300         * modules/gc-pbkdf2-sha1-tests: Likewise.
38301         * modules/gc-rijndael-tests: Likewise.
38302         * modules/gc-sha1-tests: Likewise.
38303         * modules/gc-tests: Likewise.
38304         * modules/getaddrinfo-tests: Likewise.
38305         * modules/hmac-md5-tests: Likewise.
38306         * modules/hmac-sha1-tests: Likewise.
38307         * modules/linked-list-tests: Likewise.
38308         * modules/linkedhash-list-tests: Likewise.
38309         * modules/lock-tests: Likewise.
38310         * modules/md2-tests: Likewise.
38311         * modules/md4-tests: Likewise.
38312         * modules/md5-tests: Likewise.
38313         * modules/rbtree-list-tests: Likewise.
38314         * modules/rbtree-oset-tests: Likewise.
38315         * modules/rbtreehash-list-tests: Likewise.
38316         * modules/read-file-tests: Likewise.
38317         * modules/rijndael-tests: Likewise.
38318         * modules/stdint-tests: Likewise.
38319         * modules/tls-tests: Likewise.
38320
38321 2007-02-24  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38324         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38325         function; instead check whether isnan with a double argument links.
38326         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38327         function; instead check whether isnan with a 'long double' argument
38328         links.
38329         Reported by Eric Blake <ebb9@byu.net>.
38330
38331 2007-02-24  Bruno Haible  <bruno@clisp.org>
38332
38333         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38334         defined.
38335         * lib/isnanl.c: Remove all code. Just include isnan.c.
38336         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38337
38338 2007-02-25  Jim Meyering  <jim@meyering.net>
38339
38340         Avoid conflicting types for 'unsetenv' on FreeBSD.
38341         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38342         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38343         in stdlib.h.
38344
38345 2007-02-24  Bruno Haible  <bruno@clisp.org>
38346
38347         * modules/isnanl-nolibm-tests: New file.
38348         * tests/test-isnanl.c: New file.
38349
38350         * modules/isnanl-nolibm: New file.
38351         * lib/isnanl.h: New file.
38352         * lib/isnanl.c: New file.
38353         * m4/isnanl.m4: New file.
38354
38355 2007-02-24  Bruno Haible  <bruno@clisp.org>
38356
38357         * modules/isnan-nolibm-tests: New file.
38358         * tests/test-isnan.c: New file.
38359
38360         * modules/isnan-nolibm: New file.
38361         * lib/isnan.h: New file.
38362         * lib/isnan.c: New file.
38363         * m4/isnan.m4: New file.
38364
38365 2007-02-24  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38368         assume that an exponent fits in 20 bits.
38369
38370 2007-02-24  Jim Meyering  <jim@meyering.net>
38371
38372         * m4/regex.m4: Update the description of the configure-time option,
38373         --without-included-regex, to state accurately what the defaults are,
38374         and perhaps to give people an idea why using this option is risky.
38375
38376 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38377
38378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38379         loops on small arguments.  This attempts to avoid the problem
38380         Bruno Haible reported for AIX 4.3.2 in
38381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38382
38383 2007-02-23  Bruno Haible  <bruno@clisp.org>
38384
38385         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38386         Needed for help2man.
38387
38388 2007-02-23  Karl Berry  <karl@gnu.org>
38389
38390         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38391         exists, foo.h should be cvs-ignored, not committed.
38392
38393 2007-02-23  Eric Blake  <ebb9@byu.net>
38394
38395         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38396         * lib/stat-time.h (includes): Likewise.
38397         * lib/utimecmp.c (includes): Likewise.
38398         * lib/utimens.h (includes): Likewise.
38399         * lib/getdate.y (includes): Also include "timespec.h" for use
38400         internal to the module.
38401         * modules/utimens (Depends-on): Revert yesterday's patch.
38402         * modules/nanosleep (Depends-on): Add missing dependency.
38403
38404 2007-02-22  Bruno Haible  <bruno@clisp.org>
38405
38406         * lib/glob.c: Don't include getlogin_r.h.
38407
38408 2007-02-22  Jim Meyering  <jim@meyering.net>
38409
38410         * modules/utimens (Depends-on): Add timespec, required for
38411         utimens.h's inclusion of timespec.h.
38412
38413 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38414
38415         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38416         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38417         Schwab in
38418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38419         I'll try to think of a better way to fix the Solaris problem.
38420
38421         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38422         like glibc; on Solaris 10, it fails with errno == EINVAL.
38423         POSIX says the behavior is unspecified if the first argument is NULL,
38424         so play it safe and never pass NULL to the system getcwd.
38425
38426 2007-02-21  Jim Meyering  <jim@meyering.net>
38427
38428         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38429         of gettimeofday.  It would conflict with the one now always
38430         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38431         an IRIX 6.5 build failure.
38432
38433 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38434
38435         Minor fixups to port to Solaris 10 with Sun C 5.8.
38436         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38437         * modules/getcwd (Depends-on): Add dirfd.
38438         * lib/putenv.c (putenv): #undef it.
38439         (rpl_putenv): New decl.
38440         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38441
38442 2007-02-20  Bruno Haible  <bruno@clisp.org>
38443
38444         * modules/stdio-tests: New file.
38445         * tests/test-stdio.c: New file.
38446
38447         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38448         (Depends-on): Add stdio.
38449         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38450         (Include): Use <stdio.h> instead of vsnprintf.h.
38451         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38452         HAVE_DECL_VSNPRINTF.
38453         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38454
38455         * modules/snprintf (Files): Remove lib/snprintf.h.
38456         (Depends-on): Add stdio.
38457         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38458         (Include): Use <stdio.h> instead of snprintf.h.
38459         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38460         HAVE_DECL_SNPRINTF.
38461         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38462         * lib/getaddrinfo.c: Likewise.
38463
38464         * modules/stdio: New file.
38465         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38466         * lib/snprintf.h: Remove file.
38467         * lib/vsnprintf.h: Remove file.
38468         * lib/.cppi-disable: Remove snprintf.h.
38469         * m4/stdio_h.m4: New file.
38470         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38471
38472 2007-02-20  Jim Meyering  <jim@meyering.net>
38473
38474         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38475         used by e.g., mingw.  From Bruno Haible.
38476
38477 2007-02-19  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38480         warnings.
38481         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38482
38483 2007-02-19  Bruno Haible  <bruno@clisp.org>
38484
38485         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38486         from mingw users.
38487
38488 2007-02-19  Bruno Haible  <bruno@clisp.org>
38489
38490         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38491         warnings.
38492         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38493
38494 2007-02-19  Jim Meyering  <jim@meyering.net>
38495
38496         Don't use FD after a successful "fdopendir (fd)".
38497         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38498         Reset it by calling dirfd on the just-obtained DIR*.
38499
38500         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38501         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38502
38503 2007-02-18  Bruno Haible  <bruno@clisp.org>
38504
38505         * lib/readlink.c: Include <unistd.h>.
38506         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38507         HAVE_READLINK.
38508         * modules/readlink (Depends-on): Add unistd.
38509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38510         (Include): Add <unistd.h>.
38511
38512         * lib/getlogin_r.h: Remove file.
38513         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38514         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38515         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38516         HAVE_DECL_GETLOGIN_R.
38517         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38519         (Include): Use <unistd.h> instead of getlogin_r.h.
38520
38521         * lib/getcwd.h: Remove file.
38522         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38523         * lib/xgetcwd.c: Likewise.
38524         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38525         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38526         * modules/getcwd (Files): Remove lib/getcwd.h.
38527         (Depends-on): Add unistd.
38528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38529         (Include): Use <unistd.h> instad of getcwd.h.
38530
38531         * lib/ftruncate.c: Include <unistd.h> first.
38532         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38533         Set HAVE_FTRUNCATE.
38534         * modules/ftruncate (Depends-on): Add unistd.
38535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38536
38537         * lib/fchdir.c: Include <unistd.h> first.
38538         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38540         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38541         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38542         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38543
38544         * lib/dup2.c: Include <unistd.h> first.
38545         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38546         HAVE_DUP2.
38547         * modules/dup2 (Depends-on): Add unistd.
38548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38549
38550         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38551         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38552         REPLACE_CHOWN. Don't define chown as a macro here.
38553         * modules/chown (Depends-on): Add unistd.
38554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38555
38556         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38557         Add definition for GL_LINK_WARNING.
38558         (chown, dup2): New declarations.
38559         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38560         link warning.
38561         (ftruncate): New declaration.
38562         (getcwd): New declaration, taken from old getcwd.h.
38563         (getlogin_r): New declaration, taken from old getlogin_r.h.
38564         (readlink): New declaration.
38565         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38566         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38567         (gl_PREREQ_UNISTD): Remove macro.
38568         (gl_UNISTD_MODULE_INDICATOR): New macro.
38569         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38570         many new variables. Don't set UNISTD_H.
38571         * modules/unistd (Description): Change.
38572         (Depends-on): Add link-warning.
38573         (configure.ac): Update.
38574         (Makefile.am): Create unistd.h always. Substitute many new variables
38575         into it.
38576
38577 2007-02-18  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38580         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38581         HAVE_GETSUBOPT.
38582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38583         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38584         * lib/getsubopt.h: Remove file.
38585         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38586         (Depends-on): Add stdlib.
38587         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38588         (Includes): Use <stdlib.h> instead of getsubopt.h.
38589         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38590         Set HAVE_GETSUBOPT.
38591         * lib/getsubopt.c: Don't include getsubopt.h.
38592
38593 2007-02-18  Bruno Haible  <bruno@clisp.org>
38594
38595         * modules/fchdir (Depends-on): Add dup2.
38596
38597 2007-02-18  Bruno Haible  <bruno@clisp.org>
38598
38599         * lib/stdlib_.h: Handle glibc's special invocation convention
38600         specially.
38601
38602 2007-02-18  Bruno Haible  <bruno@clisp.org>
38603
38604         * modules/stdlib-tests: New file.
38605         * tests/test-stdlib.c: New file.
38606
38607         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38608         (Depends-on): Add stdlib.
38609         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38610         (Includes): Use <stdlib.h> instead of mkstemp.h.
38611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38612         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38613         * lib/mkstemp.c: Don't include mkstemp.h.
38614         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38615         * lib/stdlib--.h: Don't include mkstemp.h.
38616
38617         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38618         (Depends-on): Add stdlib.
38619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38620         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38621         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38622         HAVE_MKDTEMP.
38623         * lib/mkdtemp.c: Don't include mkdtemp.h.
38624         * lib/clean-temp.c: Don't include mkdtemp.h.
38625
38626         * modules/exit (Files): Remove lib/exit.h.
38627         (Depends-on): Add stdlib.
38628         (Makefile.am): Remove lib_SOURCES.
38629         (Include): Use <stdlib.h> instead of exit.h.
38630         * lib/argmatch.c: Don't include exit.h.
38631         * lib/execute.c: Likewise.
38632         * lib/pagealign_alloc.c: Likewise.
38633         * lib/pipe.c: Likewise.
38634         * lib/wait-process.c: Likewise.
38635         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38636         * lib/exitfail.c: Likewise.
38637         * lib/savewd.c: Likewise.
38638         * lib/xsetenv.c: Likewise.
38639
38640         * modules/stdlib: New file.
38641         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38642         and extra comments about mkstemp().
38643         * lib/exit.h: Remove file.
38644         * lib/mkdtemp.h: Remove file.
38645         * lib/mkstemp.h: Remove file.
38646         * m4/stdlib_h.m4: New file.
38647         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38648
38649 2007-02-18  Bruno Haible  <bruno@clisp.org>
38650
38651         * modules/math-tests: New file.
38652         * tests/test-math.c: New file.
38653
38654         * modules/math: New file.
38655         * modules/mathl (Files): Remove lib/mathl.h.
38656         (Depends-on): Add math.
38657         (Makefile.am): Don't mention mathl.h.
38658         (Include): Use <math.h> instead of mathl.h.
38659         * lib/math_.h: New file.
38660         * lib/mathl.h: Remove file.
38661         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38662         mathl.h.
38663         * lib/asinl.c: Likewise.
38664         * lib/atanl.c: Likewise.
38665         * lib/ceill.c: Likewise.
38666         * lib/cosl.c: Likewise.
38667         * lib/expl.c: Likewise.
38668         * lib/floorl.c: Likewise.
38669         * lib/frexpl.c: Likewise.
38670         * lib/ldexpl.c: Likewise.
38671         * lib/logl.c: Likewise.
38672         * lib/sincosl.c: Likewise.
38673         * lib/sinl.c: Likewise.
38674         * lib/sqrtl.c: Likewise.
38675         * lib/tanl.c: Likewise.
38676         * lib/trigl.c: Likewise.
38677         * m4/math_h.m4: New file.
38678         * MODULES.html.sh (Mathematics): Add math.
38679
38680 2007-02-17  Bruno Haible  <bruno@clisp.org>
38681
38682         * modules/wctype-tests: New file.
38683         * tests/test-wctype.c: New file.
38684
38685         * modules/wchar-tests: New file.
38686         * tests/test-wchar.c: New file.
38687
38688         * modules/unistd-tests: New file.
38689         * tests/test-unistd.c: New file.
38690
38691         * modules/time-tests: New file.
38692         * tests/test-time.c: New file.
38693
38694         * modules/sysexits-tests: New file.
38695         * tests/test-sysexits.c: New file.
38696
38697         * modules/sys_time-tests: New file.
38698         * tests/test-sys_time.c: New file.
38699
38700         * modules/sys_stat-tests: New file.
38701         * tests/test-sys_stat.c: New file.
38702
38703         * modules/sys_socket-tests: New file.
38704         * tests/test-sys_socket.c: New file.
38705
38706         * modules/sys_select-tests: New file.
38707         * tests/test-sys_select.c: New file.
38708
38709         * modules/string-tests: New file.
38710         * tests/test-string.c: New file.
38711
38712         * modules/stdbool-tests: New file.
38713         * tests/test-stdbool.c: New file.
38714
38715         * modules/netinet_in-tests: New file.
38716         * tests/test-netinet_in.c: New file.
38717
38718         * modules/inttypes-tests: New file.
38719         * tests/test-inttypes.c: New file.
38720
38721         * modules/fcntl-tests: New file.
38722         * tests/test-fcntl.c: New file.
38723
38724         * modules/byteswap-tests: New file.
38725         * tests/test-byteswap.c: New file.
38726
38727         * modules/arpa_inet-tests: New file.
38728         * tests/test-arpa_inet.c: New file.
38729
38730 2007-02-17  Bruno Haible  <bruno@clisp.org>
38731
38732         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38733         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38734         if the corresponding module is not enabled. Emit link warnings if
38735         the function is used nevertheless.
38736         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38737         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38738         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38739         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38740         * modules/inttypes (Depends-on): Add link-warning.
38741         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38742         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38743         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38744         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38745         * modules/imaxdiv (configure.ac): Likewise.
38746         * modules/strtoimax (configure.ac): Likewise.
38747         * modules/strtoumax (configure.ac): Likewise.
38748
38749 2007-02-17  Bruno Haible  <bruno@clisp.org>
38750
38751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38752         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38753         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38754         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38755
38756 2007-02-17  Bruno Haible  <bruno@clisp.org>
38757
38758         * modules/link-warning: New file.
38759         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38760         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38761         * modules/string (Depends-on): Add link-warning.
38762         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38763         string.h.
38764         * MODULES.html.sh (Support for building libraries and executables): Add
38765         link-warning.
38766
38767 2007-02-17  Bruno Haible  <bruno@clisp.org>
38768
38769         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38770         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38771         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38772         long lines.
38773
38774 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38775             Bruno Haible  <bruno@clisp.org>
38776
38777         * modules/tmpfile: New file.
38778         * lib/tmpfile.c: New file.
38779         * m4/tmpfile.m4: New file.
38780         * MODULES.html.sh (func_all_modules): New section "Input/output".
38781
38782 2007-02-15  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38785         (supports_delete_on_close): New function.
38786         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38787
38788 2007-02-14  Bruno Haible  <bruno@clisp.org>
38789
38790         * modules/mbspcasecmp-tests: New file.
38791         * tests/test-mbspcasecmp.sh: New file.
38792         * tests/test-mbspcasecmp.c: New file.
38793
38794         New module mbspcasecmp.
38795         * modules/mbspcasecmp: New file.
38796         * lib/mbspcasecmp.c: New file.
38797         * lib/string_.h (strncasecmp): Change warning message.
38798         (mbspcasecmp): New declaration.
38799         * m4/mbspcasecmp.m4: New file.
38800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38801         GNULIB_MBSPCASECMP.
38802         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38803         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38804
38805 2007-02-14  Bruno Haible  <bruno@clisp.org>
38806
38807         * modules/mbsncasecmp-tests: New file.
38808         * tests/test-mbsncasecmp.sh: New file.
38809         * tests/test-mbsncasecmp.c: New file.
38810
38811         New module mbsncasecmp.
38812         * modules/mbsncasecmp: New file.
38813         * lib/mbsncasecmp.c: New file.
38814         * lib/string_.h (mbsncasecmp): New declaration.
38815         * m4/mbsncasecmp.m4: New file.
38816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38817         GNULIB_MBSNCASECMP.
38818         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38819         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38820
38821 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38822
38823         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38824         Verify that it doesn't overlap with our flags.
38825         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38826         do not have the desired effect in multibyte locales; instead, use
38827         mbscasecmp.
38828         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38829         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38830         we don't require GNU fnmatch ourselves (if our users require it, they
38831         should do so explicitly).
38832
38833         Fix regex code so it doesn't rely on strcasecmp.
38834         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38835         Otherwise, include gnulib's langinfo.h.
38836         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38837         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38838         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38839         * modules/regex (FILES): Remove m4/codeset.m4.
38840         (Depends-on): Add localcharset.  Remove strcase.
38841
38842 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38843
38844         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38845         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38846
38847 2007-02-13  Bruno Haible  <bruno@clisp.org>
38848
38849         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38851
38852 2007-02-12  Bruno Haible  <bruno@clisp.org>
38853
38854         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38855         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38856         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38857         time warning rather than a link error.
38858
38859 2007-02-12  Bruno Haible  <bruno@clisp.org>
38860
38861         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38864
38865 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38866
38867         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38868         args, not 2.
38869
38870 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38871
38872         New module 'time', so that apps can include <time.h> as per
38873         POSIX and GNU instead of separate include files like time_r.h
38874         and timegm.h.  This implementation tries out a simpler approach
38875         for replacing decls in standard include files (as compared to
38876         the string module), somewhat as an experiment.
38877
38878         * config/srclist.txt: Comment out mktime.c for now.
38879         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38880         since it doesn't apply any more.  Use generic wording instead.
38881         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38882         'time'.
38883         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38884         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38885         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38886         Don't include <sys/types.h>; no longer needed since we assume C89.
38887         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38888         * lib/strftime.c: Likewise.
38889         * lib/time_r.c: Likewise.
38890         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38891         * lib/nanosleep.c: Include <time.h> first, to check interface.
38892         * lib/strptime.c: Likewise.
38893         * lib/time_r.c: Likewise.
38894         * lib/timegm.c: Likewise.
38895         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38896         needed.
38897         * lib/timegm.c: Don't include timegm.h; no longer needed.
38898         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38899         time.h now handles any problems in that area.
38900         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38901         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38902         that time.h defines struct timespec.
38903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38904         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38905         handles that.
38906         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38907         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38908         needed.  Set REPLACE_LOCALTIME.
38909         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38910         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38911         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38912         nanosleep; time_h.m4 now does that.  Don't require
38913         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38914         module handles this now.
38915         * modules/getdate (Depends-on): Remove timespec.  Add time.
38916         * modules/nanosleep (Depends-on): Likewise.
38917         * modules/stat-time (Depends-on): Likewise.
38918         * modules/nanosleep (Include): Include time.h, not timespec.h.
38919         * modules/strptime (Files): Remove lib/strptime.h.
38920         (Depends-on): Add extensions, time.
38921         (Include): Include time.h, not strptime.h.
38922         * modules/time_r (Files): Remove lib/time_r.h.
38923         (Depends-on): Add time.
38924         (Include): Include time.h, not time_r.h.
38925         * modules/timegm: Likewise.
38926         * modules/timespec (Description): Now does timespec-related decls
38927         of our own, instead of struct timespec itself.
38928         (Depends-on): Add time; remove extensions.
38929         (Maintainer): Add self.
38930         * modules/utimecmp (Depends-on): Add time; remove timespec.
38931         * modules/utimens (Depends-on): Likewise.
38932         * modules/xnanosleep (Depends-on): Likewise.
38933
38934 2007-02-11  Bruno Haible  <bruno@clisp.org>
38935
38936         * lib/c-strstr.c: Include allocsa.h.
38937         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38938         * lib/c-strcasestr.c: Include allocsa.h.
38939         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38940         * lib/strcasestr.c: Include allocsa.h.
38941         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38942         * lib/mbsstr.c: Include allocsa.h.
38943         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38944         allocsa/freesa instead of malloc/free.
38945         * lib/mbscasestr.c: Include allocsa.h.
38946         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38947         allocsa/freesa instead of malloc/free.
38948         * modules/c-strstr (Depends-on): Add allocsa.
38949         * modules/c-strcasestr (Depends-on): Likewise.
38950         * modules/strcasestr (Depends-on): Likewise.
38951         * modules/mbsstr (Depends-on): Likewise.
38952         * modules/mbscasestr (Depends-on): Likewise.
38953
38954 2007-02-11  Bruno Haible  <bruno@clisp.org>
38955
38956         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38957
38958         * modules/mbsspn-tests: New file.
38959         * tests/test-mbsspn.sh: New file.
38960         * tests/test-mbsspn.c: New file.
38961
38962 2007-02-11  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38965
38966         * modules/mbspbrk-tests: New file.
38967         * tests/test-mbspbrk.sh: New file.
38968         * tests/test-mbspbrk.c: New file.
38969
38970 2007-02-11  Bruno Haible  <bruno@clisp.org>
38971
38972         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38973         unneeded cast.
38974
38975         * modules/mbscspn-tests: New file.
38976         * tests/test-mbscspn.sh: New file.
38977         * tests/test-mbscspn.c: New file.
38978
38979 2007-02-11  Bruno Haible  <bruno@clisp.org>
38980
38981         * modules/mbscasecmp-tests: New file.
38982         * tests/test-mbscasecmp.sh: New file.
38983         * tests/test-mbscasecmp.c: New file.
38984
38985 2007-02-11  Bruno Haible  <bruno@clisp.org>
38986
38987         Ensure O(n) worst-case complexity of mbscasestr.
38988         * lib/mbscasestr.c: Include stdbool.h.
38989         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38990         functions.
38991         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38992         the bookkeeping indicates that it's worth it.
38993         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38994
38995         * modules/mbscasestr-tests: New file.
38996         * tests/test-mbscasestr1.c: New file.
38997         * tests/test-mbscasestr2.sh: New file.
38998         * tests/test-mbscasestr2.c: New file.
38999         * tests/test-mbscasestr3.sh: New file.
39000         * tests/test-mbscasestr3.c: New file.
39001         * tests/test-mbscasestr4.sh: New file.
39002         * tests/test-mbscasestr4.c: New file.
39003         * m4/locale-tr.m4: New file.
39004
39005 2007-02-11  Bruno Haible  <bruno@clisp.org>
39006
39007         Ensure O(n) worst-case complexity of mbsstr.
39008         * lib/mbsstr.c: Include stdbool.h.
39009         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39010         functions.
39011         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39012         bookkeeping indicates that it's worth it.
39013         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39014
39015         * modules/mbsstr-tests: New file.
39016         * tests/test-mbsstr1.c: New file.
39017         * tests/test-mbsstr2.sh: New file.
39018         * tests/test-mbsstr2.c: New file.
39019         * tests/test-mbsstr3.sh: New file.
39020         * tests/test-mbsstr3.c: New file.
39021         * m4/locale-fr.m4: New file.
39022
39023 2007-02-11  Bruno Haible  <bruno@clisp.org>
39024
39025         * lib/mbsrchr.c (mbsrchr): Fix bug.
39026
39027         * modules/mbsrchr-tests: New file.
39028         * tests/test-mbsrchr.sh: New file.
39029         * tests/test-mbsrchr.c: New file.
39030
39031 2007-02-11  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/mbschr.c (mbschr): Fix bug.
39034
39035         * modules/mbschr-tests: New file.
39036         * tests/test-mbschr.sh: New file.
39037         * tests/test-mbschr.c: New file.
39038         * m4/locale-zh.m4: New file.
39039
39040 2007-02-11  Bruno Haible  <bruno@clisp.org>
39041
39042         Support for copying multibyte string iterators.
39043         * lib/mbiter.h: Include <string.h>.
39044         (mbiter_multi_copy): New function.
39045         (mbi_copy): New macro.
39046         * lib/mbuiter.h: Include <string.h>.
39047         (mbuiter_multi_copy): New function.
39048         (mbui_copy): New macro.
39049
39050 2007-02-11  Bruno Haible  <bruno@clisp.org>
39051
39052         New module mbslen.
39053         * modules/mbslen: New file.
39054         * lib/mbslen.c: New file.
39055         * lib/string_.h (mbslen): New declaration.
39056         * m4/mbslen.m4: New file.
39057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39058         GNULIB_MBSLEN.
39059         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39060         * MODULES.html.sh (Internationalization functions): Add mbslen.
39061
39062 2007-02-11  Bruno Haible  <bruno@clisp.org>
39063
39064         Ensure O(n) worst-case complexity of strcasestr substitute.
39065         * lib/strcasestr.c: Include stdbool.h.
39066         (knuth_morris_pratt): New function.
39067         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39068         bookkeeping indicates that it's worth it.
39069         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39070
39071         * modules/strcasestr-tests: New file.
39072         * tests/test-strcasestr.c: New file.
39073
39074 2007-02-11  Bruno Haible  <bruno@clisp.org>
39075
39076         Ensure O(n) worst-case complexity of c_strcasestr.
39077         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39078         (knuth_morris_pratt): New function.
39079         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39080         the bookkeeping indicates that it's worth it.
39081         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39082
39083         * modules/c-strcasestr-tests: New file.
39084         * tests/test-c-strcasestr.c: New file.
39085
39086 2007-02-11  Bruno Haible  <bruno@clisp.org>
39087
39088         Ensure O(n) worst-case complexity of c_strstr.
39089         * lib/c-strstr.c: Include stdbool.h, string.h.
39090         (knuth_morris_pratt): New function.
39091         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39092         bookkeeping indicates that it's worth it.
39093         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39094
39095         * lib/c-strstr.c: Complete rewrite for maintainability.
39096
39097         * modules/c-strstr-tests: New file.
39098         * tests/test-c-strstr.c: New file.
39099
39100 2007-02-11  Bruno Haible  <bruno@clisp.org>
39101
39102         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39103         5.2.1 and earlier, whereby \055 was treated just like the range
39104         delimiter '-'.
39105         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39106
39107 2007-02-08  Bruno Haible  <bruno@clisp.org>
39108
39109         * modules/regex (Depends-on): Add stdbool.
39110         Reported by Dalibor Topic <robilad@kaffe.org>.
39111
39112 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39113
39114         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39115         Prefer returning from main to exiting from it.
39116         Remove unnecessary parens after sizeof.
39117
39118 2007-02-05  Bruno Haible  <bruno@clisp.org>
39119
39120         New module mbssep.
39121         * modules/mbssep: New file.
39122         * lib/mbssep.c: New file.
39123         * lib/string_.h (strsep): Add a conditional link warning.
39124         (mbssep): New declaration.
39125         * m4/mbssep.m4: New file.
39126         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39127         GNULIB_MBSSEP.
39128         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39129         * MODULES.html.sh (Internationalization functions): Add mbssep.
39130
39131 2007-02-05  Bruno Haible  <bruno@clisp.org>
39132
39133         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39134         Optimize search in case of 1 delimiter.
39135
39136 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39137
39138         * lib/acl.h: Include sys/types.h before sys/acl.h.
39139
39140 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39141
39142         Merge upstream fix for glibc bugzilla #3957:
39143
39144         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39145
39146         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39147         bit for RE_HAT_LISTS_NOT_NEWLINE.
39148         (build_charclass_op): Remove bogus comment.
39149
39150 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39151
39152         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39153
39154 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39155
39156         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39157         * lib/memmem.c [!defined _LIBC]: Include config.h.
39158
39159 2007-02-04  Bruno Haible  <bruno@clisp.org>
39160
39161         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39162         warning message.
39163
39164 2007-02-04  Bruno Haible  <bruno@clisp.org>
39165
39166         New module mbstok_r.
39167         * modules/mbstok_r: New file.
39168         * lib/mbstok_r.c: New file.
39169         * lib/string_.h (strtok_r): Change argument names to match the
39170         comments. Add a conditional link warning.
39171         (mbstok_r): New declaration.
39172         * m4/mbstok_r.m4: New file.
39173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39174         GNULIB_MBSTOK_R.
39175         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39176         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39177
39178 2007-02-04  Bruno Haible  <bruno@clisp.org>
39179
39180         New module mbsspn.
39181         * modules/mbsspn: New file.
39182         * lib/mbsspn.c: New file.
39183         * lib/string_.h (strspn): Add a conditional link warning.
39184         (mbsspn): New declaration.
39185         * m4/mbsspn.m4: New file.
39186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39187         GNULIB_MBSSPN.
39188         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39189         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39190
39191 2007-02-04  Bruno Haible  <bruno@clisp.org>
39192
39193         New module mbspbrk.
39194         * modules/mbspbrk: New file.
39195         * lib/mbspbrk.c: New file.
39196         * lib/string_.h (strpbrk): Add a conditional link warning.
39197         (mbspbrk): New declaration.
39198         * m4/mbspbrk.m4: New file.
39199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39200         GNULIB_MBSPBRK.
39201         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39202         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39203
39204 2007-02-04  Bruno Haible  <bruno@clisp.org>
39205
39206         New module mbscspn.
39207         * modules/mbscspn: New file.
39208         * lib/mbscspn.c: New file.
39209         * lib/string_.h (strcspn): Add a conditional link warning.
39210         (mbscspn): New declaration.
39211         * m4/mbscspn.m4: New file.
39212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39213         GNULIB_MBSCSPN.
39214         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39215         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39216
39217 2007-02-04  Bruno Haible  <bruno@clisp.org>
39218
39219         New module mbscasestr, reduced goal of strcasestr.
39220         * modules/mbscasestr: New file.
39221         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39222         (mbscasestr): Renamed from strcasestr.
39223         * lib/strcasestr.c: Don't include mbuiter.h.
39224         (strcasestr): Remove support for multibyte locales.
39225         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39226         Change the conditional link warning.
39227         (mbscasestr): New declaration.
39228         * m4/mbscasestr.m4: New file.
39229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39230         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39231         REPLACE_STRCASESTR.
39232         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39234         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39235         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39236         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39237         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39238         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39239         (Depends-on): Remove mbuiter.
39240         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39241
39242 2007-02-04  Bruno Haible  <bruno@clisp.org>
39243
39244         Simplify handling of strncasecmp.
39245         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39246         the conditional link warning.
39247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39248         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39249         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39250         * modules/strcase (configure.ac): Don't invoke
39251         gl_STRING_MODULE_INDICATOR.
39252         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39253
39254 2007-02-04  Bruno Haible  <bruno@clisp.org>
39255
39256         New module mbscasecmp, reduced goal of strcasecmp.
39257         * modules/mbscasecmp: New file.
39258         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39259         (mbscasecmp): Renamed from strcasecmp.
39260         * lib/strcasecmp.c: Don't include mbuiter.h.
39261         (strcasecmp): Remove support for multibyte locales.
39262         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39263         Change the conditional link warning.
39264         (mbscasecmp): New declaration.
39265         * m4/mbscasecmp.m4: New file.
39266         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39267         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39268         REPLACE_STRCASECMP.
39269         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39270         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39271         GNULIB_MBSCASECMP.
39272         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39273         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39274         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39275         (Depends-on): Remove mbuiter.
39276         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39277
39278 2007-02-04  Bruno Haible  <bruno@clisp.org>
39279
39280         New module mbsstr. Remove module strstr.
39281         * modules/mbsstr: New file.
39282         * modules/strstr: Remove file.
39283         * lib/mbsstr.c: Renamed from lib/strstr.c.
39284         (mbsstr): Renamed from strstr.
39285         * lib/string_.h (strstr): Remove declaration. Change the conditional
39286         link warning.
39287         (mbsstr): New declaration.
39288         * m4/mbsstr.m4: New file.
39289         * m4/strstr.m4: Remove file.
39290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39291         REPLACE_STRSTR.
39292         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39293         Don't initialize GNULIB_STRSTR.
39294         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39295         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39296         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39297         (Support for systems lacking ANSI C 89): Remove strstr.
39298
39299 2007-02-04  Bruno Haible  <bruno@clisp.org>
39300
39301         New module mbsrchr.
39302         * modules/mbsrchr: New file.
39303         * lib/mbsrchr.c: New file.
39304         * lib/string_.h (strrchr): Add a conditional link warning.
39305         (mbsrchr): New declaration.
39306         * m4/mbsrchr.m4: New file.
39307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39308         GNULIB_MBSRCHR.
39309         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39310         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39311
39312 2007-02-04  Bruno Haible  <bruno@clisp.org>
39313
39314         New module mbschr.
39315         * modules/mbschr: New file.
39316         * lib/mbschr.c: New file.
39317         * lib/string_.h (strchr): Add a conditional link warning.
39318         (mbschr): New declaration.
39319         * m4/mbschr.m4: New file.
39320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39321         GNULIB_MBSCHR.
39322         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39323         * MODULES.html.sh (Internationalization functions): Add mbschr.
39324
39325 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39326
39327         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39328
39329         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39330
39331 2007-02-04  Bruno Haible  <bruno@clisp.org>
39332
39333         New module description section 'configure.ac-early'.
39334         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39335         (func_get_autoconf_early_snippet): New function.
39336         (func_import, func_create_testdir): Use it. Remove special cases for
39337         modules 'extensions' and 'lock'.
39338         * modules/extensions (configure.ac-early): Require
39339         gl_USE_SYSTEM_EXTENSIONS.
39340         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39341
39342 2007-02-04  Bruno Haible  <bruno@clisp.org>
39343
39344         Make use of gcj-4.3's -fsource and -ftarget option.
39345         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39346         and if so try the options -fsource and -ftarget.
39347         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39348         source_version, ftarget_option, target_version arguments.
39349         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39350         (is_envjavac_oldgcj_14_14_usable): Renamed from
39351         is_envjavac_gcj_14_14_usable.
39352         (is_envjavac_oldgcj_14_13_usable): Renamed from
39353         is_envjavac_gcj_14_13_usable.
39354         (is_gcj_present): Update.
39355         (is_gcj_43, is_gcj43_usable): New functions.
39356         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39357         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39358         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39359         try the options -fsource and -ftarget.
39360
39361 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39362
39363         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39364         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39365         larger value.
39366
39367 2007-02-03  Jim Meyering  <jim@meyering.net>
39368
39369         Give tools a better chance to allocate space for very large buffers.
39370         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39371
39372         Make pwd and readlink work also when run with an unreadable parent dir
39373         on systems with openat support.
39374         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39375         provided getcwd function, even when we have openat support.
39376         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39377
39378 2007-02-02  Bruno Haible  <bruno@clisp.org>
39379
39380         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39381         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39382         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39383         portability problems if one of these functions is only used on specific
39384         platforms.
39385         Reported by Paul Eggert.
39386
39387 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39388
39389         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39390         is causing more trouble than it's curing.
39391         * lib/regex_internal.h (__mempcpy): Remove.
39392         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39393         (and make the code a tad smaller to boot).
39394         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39395
39396 2007-02-02  Jim Meyering  <jim@meyering.net>
39397
39398         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39399         section, not in the Makefile.am: one.
39400
39401 2007-02-02  Eric Blake  <ebb9@byu.net>
39402
39403         * lib/strchrnul.c: Always include config.h first.
39404
39405         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39406         gnulib strstr is not necessary here.
39407
39408 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39409
39410         * m4/socklen.m4: Fix typo.
39411
39412 2007-02-02  Eric Blake  <ebb9@byu.net>
39413
39414         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39415         * modules/netinet_in (Makefile.am): Likewise.
39416
39417 2007-02-01  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/string_.h (GL_LINK_WARNING): New macro.
39420         (strcasecmp, strstr, strcasestr): If provided by the system,
39421         conditionally define as a macro that leads to a warning instead of to
39422         an error.
39423         (strncasecmp): Conditionally define as a macro that leads to a warning.
39424
39425 2007-02-01  Karl Berry  <karl@gnu.org>
39426
39427         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39428
39429 2007-02-01  Bruno Haible  <bruno@clisp.org>
39430
39431         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39432         renamings.
39433
39434 2007-02-01  Eric Blake  <ebb9@byu.net>
39435
39436         * modules/regex (Depends-on): Revert dependence on mempcpy.
39437         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39438         module's definition of mempcpy.
39439         Reported by Paul Eggert.
39440
39441 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39444         the symbol XYZ before redefining it.  This fixes a problem with
39445         programs that don't use XYZ, when compiled on systems that define
39446         XYZ to something else.
39447
39448 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39449
39450         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39451         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39452         writeable to group or other and (2) is intended to have a special
39453         mode bit that is set or cleared.  In such a case, the directory
39454         should be neither group- nor other-writeable until the special
39455         mode bits are right.
39456
39457 2007-01-31  Eric Blake  <ebb9@byu.net>
39458
39459         * modules/mountlist (Depends-on): Add strstr.
39460
39461         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39462         bug.
39463         * modules/string (Makefile.am): Remove redundant replacement.
39464         * modules/regex (Depends-on): Add mempcpy.
39465
39466 2007-01-31  Bruno Haible  <bruno@clisp.org>
39467
39468         New module description field 'Link'.
39469         * gnulib-tool (func_usage): Document --extract-link-directive.
39470         (sed_extract_prog): Recognize 'Link' directive.
39471         (func_get_link_directive): New function.
39472         (func_import): Show summary of link directives.
39473         Handle --extract-link-directive option.
39474         * modules/acl (Link): New section.
39475         * modules/clock-time (Link): New section.
39476         * modules/euidaccess (Link): New section.
39477         * modules/gettext (Link): New section.
39478         * modules/iconv (Link): New section.
39479         * modules/lock (Link): New section.
39480         * modules/nanosleep (Link): New section.
39481         * modules/readline (Link): New section.
39482
39483 2007-01-27  Bruno Haible  <bruno@clisp.org>
39484
39485         Enforce the use of gnulib modules for unportable <string.h> functions.
39486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39488         (gl_HEADER_STRING_H_BODY): Require it.
39489         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39490         the symbol XYZ to one that gives a link error.
39491         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39492         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39493         * modules/mempcpy (configure.ac): Likewise.
39494         * modules/memrchr (configure.ac): Likewise.
39495         * modules/stpcpy (configure.ac): Likewise.
39496         * modules/stpncpy (configure.ac): Likewise.
39497         * modules/strcase (configure.ac): Likewise.
39498         * modules/strcasestr (configure.ac): Likewise.
39499         * modules/strchrnul (configure.ac): Likewise.
39500         * modules/strdup (configure.ac): Likewise.
39501         * modules/strndup (configure.ac): Likewise.
39502         * modules/strnlen (configure.ac): Likewise.
39503         * modules/strpbrk (configure.ac): Likewise.
39504         * modules/strsep (configure.ac): Likewise.
39505         * modules/strstr (configure.ac): Likewise.
39506         * modules/strtok_r (configure.ac): Likewise.
39507
39508 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39509
39510         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39511
39512 2007-01-30  Jim Meyering  <jim@meyering.net>
39513
39514         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39515
39516 2007-01-29  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39519         * lib/execute.c: Likewise.
39520         * lib/pipe.c: Likewise.
39521         * lib/printf-args.h: Likewise.
39522         * lib/printf-args.c: Likewise.
39523         * lib/printf-parse.c: Likewise.
39524         * lib/vasnprintf.c: Likewise.
39525
39526 2007-01-29  Eric Blake  <ebb9@byu.net>
39527
39528         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39529         declaration.
39530
39531 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39532
39533         * lib/strptime.h (strptime): Use 'restrict' for args where
39534         POSIX requires this.
39535         * lib/strptime.c (strptime): Likewise.
39536         Change license notice from LGPL to GPL, since gnulib-tool will
39537         change this as needed.
39538         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39539         defined.
39540         Include "strptime.h" first, to check interface.
39541         Do not #undef _LIBC and _NL_CURRENT.
39542         Do not include <stdlib.h>; no longer needed.
39543         Include "time_r.h" and declare ptime_locale_status
39544         only if _LIBC is not defined.
39545         (__P): Remove unused macro.
39546         (match_string): Bring back glibc version, but use it only if _LIBC
39547         is defined.
39548         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39549         Remove unnecessary assertion and abort() call.
39550         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39551         * m4/strptime.m4: Fix serial number comment.
39552         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39553         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39554         (Depends-on): Add time_r.
39555
39556 2007-01-29  Bruno Haible  <bruno@clisp.org>
39557
39558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39559         strptime.
39560         * modules/strptime (Depends-on): Add stdbool.
39561         * lib/strptime.h: Include <time.h> always. Add comments.
39562
39563 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39564
39565         * modules/strptime: New file.
39566         * lib/strptime.h: New file.
39567         * lib/strptime.c: New file.
39568         * m4/strptime.m4: New file.
39569
39570 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39571
39572         * MODULES.html.sh: New module mpsort.
39573         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39574
39575         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39576         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39578         All uses changed.
39579         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39580         All uses changed.
39581         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39582         to _Restrict_.
39583         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39584         the parameter matches the prototype.
39585
39586 2007-01-28  Jim Meyering  <jim@meyering.net>
39587
39588         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39589         sys/time.h here, reverting that part of the previous patch:
39590         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39591
39592 2007-01-28  Bruno Haible  <bruno@clisp.org>
39593
39594         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39595         value of $(SYS_TIME_H).
39596         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39597         remove it conditionally, too. [added by Jim Meyering]
39598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39599         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39600         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39601         GETTIMEOFDAY_REPLACEMENT to 1.
39602
39603 2007-01-28  Bruno Haible  <bruno@clisp.org>
39604
39605         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39606         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39608         Set UNISTD_H instead of UNISTD_H2.
39609         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39610
39611 2007-01-28  Bruno Haible  <bruno@clisp.org>
39612
39613         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39614         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39615
39616 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39617
39618         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39619         (func_create_testdir): Ensure C locale for `grep' and `tr'
39620         character ranges.
39621         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39622         ACLOCAL_AMFLAGS parsing state machine.
39623
39624 2007-01-27  Bruno Haible  <bruno@clisp.org>
39625
39626         * modules/unistr/base: Update.
39627
39628 2007-01-27  Bruno Haible  <bruno@clisp.org>
39629
39630         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39631         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39632         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39633         modules/unistr/u32-mbtouc.
39634         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39635         * lib/unistr.h: Update.
39636         * lib/linebreak.c: Update.
39637         * modules/unistr/u32-mbtouc: Renamed from
39638         modules/unistr/u32-mbtouc-safe.
39639         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39640         * lib/unistr.h: Update.
39641         * lib/unistr/u32-to-u8.c: Update.
39642         * lib/unistr/u32-to-u16.c: Update.
39643
39644 2007-01-27  Bruno Haible  <bruno@clisp.org>
39645
39646         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39647         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39648         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39649         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39650         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39651         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39652         modules/unistr/u16-mbtouc.
39653         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39654         * lib/unistr.h: Update.
39655         * lib/linebreak.c: Update.
39656         * modules/linebreak: Update.
39657         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39658         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39659         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39660         * modules/unistr/u16-mbtouc: Renamed from
39661         modules/unistr/u16-mbtouc-safe.
39662         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39663         * lib/unistr.h: Update.
39664         * lib/unistr/u16-to-u8.c: Update.
39665         * modules/unistr/u16-to-u8: Update.
39666         * lib/unistr/u16-to-u32.c: Update.
39667         * modules/unistr/u16-to-u32: Update.
39668
39669 2007-01-27  Bruno Haible  <bruno@clisp.org>
39670
39671         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39672         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39673         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39674         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39675         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39676         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39677         modules/unistr/u8-mbtouc.
39678         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39679         * lib/unistr.h: Update.
39680         * lib/striconveh.c: Update.
39681         * modules/striconveh: Update.
39682         * lib/linebreak.c: Update.
39683         * modules/linebreak: Update.
39684         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39685         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39686         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39687         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39688         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39689         * lib/unistr.h: Update.
39690         * lib/striconveh.c: Update.
39691         * modules/striconveh: Update.
39692         * lib/unistr/u8-to-u16.c: Update.
39693         * modules/unistr/u8-to-u16: Update.
39694         * lib/unistr/u8-to-u32.c: Update.
39695         * modules/unistr/u8-to-u32: Update.
39696
39697 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39698
39699         Sync from Libtool.
39700         * lib/argz.c: Do not include strings.h nor memory.h, include
39701         string.h unconditionally.  Patch by Simon Josefsson.
39702
39703 2007-01-27  Bruno Haible  <bruno@clisp.org>
39704
39705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39706         from gl_HEADER_STRING_H_BODY.
39707         (gl_HEADER_STRING_H_BODY): Require it.
39708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39709         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39710         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39711         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39713         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39715         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39716         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39717         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39718         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39719         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39720         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39721         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39722         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39723
39724 2007-01-27  Bruno Haible  <bruno@clisp.org>
39725
39726         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39727         check_PROGRAMS into noinst_PROGRAMS.
39728         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39729         check_PROGRAMS in this case.
39730         (func_import): Set for_test to false.
39731         (func_create_testdir): Set for_test to true.
39732
39733 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39734             Bruno Haible  <bruno@clisp.org>
39735
39736         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39737         (Depends-on): Add string.
39738         (Includes): Use <string.h> instead of strcasestr.h.
39739         * modules/string (Makefile.am): Also substitute the value of
39740         REPLACE_STRCASESTR.
39741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39742         assume strcasestr is declared in <string.h> not <strings.h>. Also
39743         set REPLACE_STRCASESTR.
39744         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39745         REPLACE_STRCASESTR.
39746         * lib/strcasestr.h: Remove file.
39747         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39748         * lib/string_.h (strcasestr): New declaration.
39749
39750 2007-01-27  Bruno Haible  <bruno@clisp.org>
39751
39752         * lib/string_.h: Use 'extern'.
39753
39754 2007-01-27  Jim Meyering  <jim@meyering.net>
39755
39756         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39757         of set-but-not-used local, "q".
39758
39759         * lib/mempcpy.c: Include <config.h> before <string.h>.
39760         This fixes a compilation error on HP-UX, due to the system's
39761         "restrict"-using mempcpy prototype.
39762
39763 2007-01-26  Bruno Haible  <bruno@clisp.org>
39764
39765         Small optimization.
39766         * lib/javacomp.c: Include c-strstr.h.
39767          (is_envjavac_gcj): Use c_strstr instead of strstr.
39768         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39769
39770 2007-01-26  Bruno Haible  <bruno@clisp.org>
39771
39772         * MODULES.html.sh (Unicode string functions): Add the new modules.
39773
39774         * modules/uniconv/u32-strconv-to-locale: New file.
39775         * lib/uniconv/u32-strconv-to-locale.c: New file.
39776
39777         * modules/uniconv/u16-strconv-to-locale: New file.
39778         * lib/uniconv/u16-strconv-to-locale.c: New file.
39779
39780         * modules/uniconv/u8-strconv-to-locale: New file.
39781         * lib/uniconv/u8-strconv-to-locale.c: New file.
39782
39783         * modules/uniconv/u32-strconv-from-locale: New file.
39784         * lib/uniconv/u32-strconv-from-locale.c: New file.
39785
39786         * modules/uniconv/u16-strconv-from-locale: New file.
39787         * lib/uniconv/u16-strconv-from-locale.c: New file.
39788
39789         * modules/uniconv/u8-strconv-from-locale: New file.
39790         * lib/uniconv/u8-strconv-from-locale.c: New file.
39791
39792         * modules/uniconv/u32-strconv-to-enc: New file.
39793         * lib/uniconv/u32-strconv-to-enc.c: New file.
39794         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39795         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39796
39797         * modules/uniconv/u16-strconv-to-enc: New file.
39798         * lib/uniconv/u16-strconv-to-enc.c: New file.
39799         * lib/uniconv/u-strconv-to-enc.h: New file.
39800         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39801         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39802
39803         * modules/uniconv/u8-strconv-to-enc: New file.
39804         * lib/uniconv/u8-strconv-to-enc.c: New file.
39805         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39806         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39807
39808         * modules/uniconv/u32-strconv-from-enc: New file.
39809         * lib/uniconv/u32-strconv-from-enc.c: New file.
39810         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39811         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39812
39813         * modules/uniconv/u16-strconv-from-enc: New file.
39814         * lib/uniconv/u16-strconv-from-enc.c: New file.
39815         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39816         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39817
39818         * modules/uniconv/u8-strconv-from-enc: New file.
39819         * lib/uniconv/u8-strconv-from-enc.c: New file.
39820         * lib/uniconv/u-strconv-from-enc.h: New file.
39821         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39822         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39823
39824         * modules/uniconv/u32-conv-from-enc: New file.
39825         * lib/uniconv/u32-conv-from-enc.c: New file.
39826         * modules/uniconv/u32-conv-from-enc-tests: New file.
39827         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39828
39829         * modules/uniconv/u16-conv-from-enc: New file.
39830         * lib/uniconv/u16-conv-from-enc.c: New file.
39831         * lib/uniconv/u-conv-from-enc.h: New file.
39832         * modules/uniconv/u16-conv-from-enc-tests: New file.
39833         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39834
39835         * modules/uniconv/u8-conv-from-enc: New file.
39836         * lib/uniconv/u8-conv-from-enc.c: New file.
39837         * modules/uniconv/u8-conv-from-enc-tests: New file.
39838         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39839
39840         * modules/uniconv/base: New file.
39841         * lib/uniconv.h: New file.
39842
39843 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39844
39845         * doc/gnulib-tool.texi (Initial import): Update to match current
39846         behavior with strdup module.
39847         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39848         * lib/memmem.h: Remove; all uses removed.  This is now done
39849         by <string.h>.
39850         * lib/mempcpy.h: Likewise.
39851         * lib/memrchr.h: Likewise.
39852         * lib/stpcpy.h: Likewise.
39853         * lib/stpncpy.h: Likewise.
39854         * lib/strcase.h: Likewise.
39855         * lib/strchrnul.h: Likewise.
39856         * lib/strdup.h: Likewise.
39857         * lib/strndup.h: Likewise.
39858         * lib/strnlen.h: Likewise.
39859         * lib/strpbrk.h: Likewise.
39860         * lib/strsep.h: Likewise.
39861         * lib/strstr.h: Likewise.
39862         * lib/strtok_r.h: Likewise.
39863         * lib/string_.h: New file.
39864         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39865         Rely on <string.h> instead.
39866         * lib/canon-host.c: Likewise.
39867         * lib/chdir-long.c: Likewise.
39868         * lib/concatpath.c: Likewise.
39869         * lib/exclude.c: Likewise.
39870         * lib/fchdir.c: Likewise.
39871         * lib/getaddrinfo.c: Likewise.
39872         * lib/getcwd.c: Likewise.
39873         * lib/getsubopt.c: Likewise.
39874         * lib/glob.c: Likewise.
39875         * lib/hard-locale.c: Likewise.
39876         * lib/iconvme.c: Likewise.
39877         * lib/javacomp.c: Likewise.
39878         * lib/mempcpy.c: Likewise.
39879         * lib/memrchr.c: Likewise.
39880         * lib/regex_internal.h: Likewise.
39881         * lib/stpncpy.c: Likewise.
39882         * lib/strcasecmp.c: Likewise.
39883         * lib/strchrnul.c: Likewise.
39884         * lib/strdup.c: Likewise.
39885         * lib/striconv.c: Likewise.
39886         * lib/striconveh.c: Likewise.
39887         * lib/striconveha.c: Likewise.
39888         * lib/strncasecmp.c: Likewise.
39889         * lib/strndup.c: Likewise.
39890         * lib/strnlen.c: Likewise.
39891         * lib/strsep.c: Likewise.
39892         * lib/strstr.c: Likewise.
39893         * lib/strtok_r.c: Likewise.
39894         * lib/userspec.c: Likewise.
39895         * lib/w32spawn.h: Likewise.
39896         * lib/xstrndup.c: Likewise.
39897         * lib/mountlist.c (strstr): Remove decl.
39898         * m4/string_h.m4: New file.
39899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39900         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39901         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39902         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39903         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39904         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39905         Set REPLACE_STRCASECMP if necessary.
39906         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39907         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39908         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39910         HAVE_DECL_STRDUP if necessary.
39911         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39912         since gl_FUNC_STRNDUP does that now.
39913         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39914         Check for decl here...
39915         (gl_PREREQ_STRNLEN): ... not here.
39916         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39917         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39918         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39919         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39920         necessary.
39921         * modules/string: New file.
39922         * modules/memmem (Files): Remove special-purpose include file.
39923         (Depends-on): Add string.
39924         (Include): Include <string.h>, not the removed file.
39925         * modules/mempcpy: Likewise.
39926         * modules/memrchr: Likewise.
39927         * modules/stpcpy: Likewise.
39928         * modules/stpncpy: Likewise.
39929         * modules/strcase: Likewise.
39930         * modules/strchrnul: Likewise.
39931         * modules/strdup: Likewise.
39932         * modules/strndup: Likewise.
39933         * modules/strnlen: Likewise.
39934         * modules/strpbrk: Likewise.
39935         * modules/strsep: Likewise.
39936         * modules/strstr: Likewise.
39937         * modules/strtok_r: Likewise.
39938         * tests/test-dirname.c: Don't include "strdup.h", since
39939         <string.h> now suffices.
39940         * tests/test-memmem.c: Don't include "memmem.h", since
39941         <string.h> now suffices.
39942
39943 2007-01-25  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39946         *resultp is 0.
39947
39948         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39949         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39950         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39951         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39952
39953         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39954         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39955         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39956         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39957         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39958         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39959
39960 2007-01-24  Bruno Haible  <bruno@clisp.org>
39961
39962         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39963         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39964         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39965         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39966         gl_FUNC_FTS_CORE.
39967         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39968         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39969         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39970         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39971         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39972         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39973         gl_FUNC_FCHOWNAT.
39974         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39975         gl_FUNC_STRFTIME.
39976         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39977         Reported by Ralf Wildenhues.
39978
39979 2007-01-24  Bruno Haible  <bruno@clisp.org>
39980
39981         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39982         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39983         gl_GETADDRINFO.
39984         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39985         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39986         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39987
39988 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39989
39990         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39991         Don't use 'exit'; just return from 'main'.
39992         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39993
39994         * lib/fnmatch_.h: Readjust white space and comments to match
39995         glibc, to avoid spurious diffs.
39996
39997 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39998
39999         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40000         2004-12-01 change by Jakub Jelinek, since this code won't compile
40001         if !LIBC.  Problem reported by Bob Proulx.
40002
40003 2007-01-23  Bruno Haible  <bruno@clisp.org>
40004
40005         * lib/striconveh.c: Include c-strcaseeq.h.
40006         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40007         * modules/striconveh (Depends-on): Add c-strcaseeq.
40008
40009 2007-01-23  Bruno Haible  <bruno@clisp.org>
40010
40011         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40012
40013         * modules/c-strcaseeq: New file.
40014         * lib/c-strcaseeq.h: New file.
40015
40016         * modules/streq: New file.
40017         * lib/streq.h: New file.
40018
40019 2007-01-23  Bruno Haible  <bruno@clisp.org>
40020
40021         * modules/striconveha-tests: New file.
40022         * tests/test-striconveha.c: New file.
40023
40024         * lib/striconveha.h: Include <stdbool.h>.
40025         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40026         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40027         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40028         (mem_iconveha): New function.
40029         (str_iconveha_notranslit): Renamed from str_iconveha.
40030         (str_iconveha): New function.
40031         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40032         c-strcase.
40033
40034 2007-01-23  Bruno Haible  <bruno@clisp.org>
40035
40036         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40037         encodings without forgiving before trying any encoding with handler.
40038         (str_iconveha): Try all encodings without forgiving before trying any
40039         encoding with handler.
40040
40041 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40042
40043         Import the following changes from libc.
40044
40045         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40046
40047         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40048
40049         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40050
40051         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40052         normal_bracket label.
40053
40054         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40055
40056         [BZ #361]
40057         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40058         to normal_bracket after fetching the next character.
40059
40060 2007-01-22  Bruno Haible  <bruno@clisp.org>
40061
40062         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40063         argument.
40064         * lib/striconveh.c (iconv_carefully_1): New function.
40065         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40066         argument.
40067         (str_cd_iconveh): Update.
40068         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40069         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40070         * tests/test-striconveh.c (MAGIC): New macro.
40071         (new_offsets): New function.
40072         (main): Test call with and without offsets.
40073
40074 2007-01-22  Bruno Haible  <bruno@clisp.org>
40075
40076         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40077         * modules/sys_select (Makefile.am): Likewise.
40078         * modules/sys_socket (Makefile.am): Likewise.
40079         * modules/sys_time (Makefile.am): Likewise.
40080
40081 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40082
40083         * modules/gettimeofday (License): Change from GPL to LGPL, since
40084         gettimeofday is a library function.
40085
40086 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40087
40088         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40089
40090 2007-01-21  Bruno Haible  <bruno@clisp.org>
40091
40092         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40093
40094 2007-01-21  Bruno Haible  <bruno@clisp.org>
40095
40096         * modules/striconveha: New file.
40097         * lib/striconveha.h: New file.
40098         * lib/striconveha.c: New file.
40099         * MODULES.html.sh (Internationalization functions): Add striconveha.
40100         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40101         string.
40102         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40103
40104 2007-01-21  Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40107         * lib/striconveh.c (str_iconveh): Likewise.
40108
40109 2007-01-21  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/striconveh.h (mem_iconveh): New declaration.
40112         * lib/striconveh.c (mem_iconveh): New function.
40113         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40114
40115 2007-01-21  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40118
40119         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40120         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40121         original result buffer.
40122         (str_cd_iconveh): Update.
40123         * tests/test-striconveh.c (main): Update.
40124
40125         * lib/striconv.h (mem_cd_iconv): Change specification.
40126         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40127         result buffer.
40128         (str_cd_iconv): Update.
40129         * tests/test-striconv.c (main): Update.
40130
40131 2007-01-21  Bruno Haible  <bruno@clisp.org>
40132
40133         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40134
40135 2007-01-20  Jim Meyering  <jim@meyering.net>
40136
40137         * lib/userspec.c (parse_with_separator): If a user or group string
40138         starts with "+", skip the corresponding name-to-ID look-up, since
40139         such a look-up must fail: user and group names may not include "+".
40140
40141 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40142
40143         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40144         since we now assume the sys_time module.
40145         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40146         check for sys/time.h; no longer needed.
40147         * modules/poll (Depends-on): Depend on sys_time.
40148
40149 2007-01-18  Bruno Haible  <bruno@clisp.org>
40150
40151         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40152         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40153
40154         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40155         gettimeofday.
40156
40157         * tests/test-gettimeofday.c: Include <time.h>.
40158         (dummy): Remove variable.
40159
40160         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40161         gl_HEADER_SYS_TIME_H.
40162         (gl_HEADER_SYS_TIME_H): New macro.
40163
40164         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40165         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40166         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40167         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40168         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40169         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40170         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40171         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40172         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40173         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40174         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40175
40176         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40177         last change; it caused a compilation error when cross-compiling to
40178         Cygwin.
40179
40180 2007-01-18  Jim Meyering  <jim@meyering.net>
40181
40182         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40183         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40184         than the race-prone "test -d sys || mkdir sys".
40185         (configure.ac): Use AC_PROG_MKDIR_P.
40186         * modules/sys_select: Likewise.
40187         * modules/sys_socket: Likewise.
40188         * modules/sys_time: Likewise.
40189
40190 2007-01-18  Eric Blake  <ebb9@byu.net>
40191
40192         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40193         replace gettimeofday.
40194         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40195         name, to avoid infinite recursion.
40196
40197 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40198
40199         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40200         module sys_time.
40201         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40202         assume timespec.h defines struct timeval.
40203         * lib/settime.c: Likewise.
40204         * lib/utimens.c: Likewise.
40205         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40206         since we now assume the gettimeofday module.
40207         * lib/tempname.c (__gen_tempname): Likewise.
40208         * lib/gettimeofday.h: Remove.
40209         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40210         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40211         Include <time.h>, for 'time()'.
40212         (localtime_buffer_addr): Also use this workaround if
40213         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40214         to simplify the uses.  All uses changed.
40215         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40216         that #undef is inside {}, and 'const' follows type name consistently.
40217         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40218         (gettimeofday): Do not use the maximum possible value for
40219         tv->tv_usec, since that might break usages other than ls.c.
40220         Instead, we'll leave ls.c alone.  This undoes today's patch
40221         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40222         we've never observed the problem but might as well keep the
40223         canary.
40224         * lib/nanosleep.c: Include timespec.h first, for interface check.
40225         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40226         now assume the sys_time module.
40227         * lib/tempname.c: Likewise.
40228         * lib/timespec.h: Likewise.
40229         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40230         needed.
40231         * lib/strftime.c: Likewise.
40232         * lib/timespec.h: Likewise.
40233         * lib/posixtm.c: Include posixtm.h first, for interface check.
40234         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40235         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40236         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40237         * lib/sys_time_.h: New file.
40238         * lib/timespec.h (struct timespec): Use long int, not long.
40239         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40240         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40241         Remove obsolescent call to AC_HEADER_TIME.
40242         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40244         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40245         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40246         Likewise.
40247         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40248         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40249         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40250         into the sys_time module.  Check for gettimeofday just once.
40251         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40252         for gettimeofday signature to just check the signature.  Merely
40253         compile it, since linking doesn't test signature.  Improve test for
40254         whether gettimeofday.o is actually needed.
40255         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40256         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40257         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40258         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40259         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40260         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40261         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40262         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40263         than worrying about sys/time.h.
40264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40265         Don't bother worrying about TIME_WITH_SYS_TIME.
40266         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40267         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40268         * m4/sys_time_h.m4: New file.
40269         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40270         Don't include sys/time.h.  Return from main rather than exiting.
40271         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40272         all uses changed.
40273         * modules/gethrxtime (Depends-on): Add sys_time.
40274         * modules/gettime (Depends-on): Likewise.
40275         * modules/gettimeofday (Depends-on): Likewise.
40276         * modules/nanosleep (Depends-on): Likewise.
40277         * modules/settime (Depends-on): Likewise.
40278         * modules/tempname (Depends-on): Likewise.
40279         * modules/utimens (Depends-on): Likewise.
40280         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40281         (Include:) Change back to <sys/time.h>.
40282         (Maintainer:) Add self.
40283         * modules/sys_time: New file.
40284         * modules/tempname (Depends-on): Add gettimeofday.
40285         * tests/test-gettimeofday.c: Include <sys/time.h>
40286         rather than gettimeofday.h.
40287
40288 2007-01-17  Bruno Haible  <bruno@clisp.org>
40289
40290         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40291         the license default to GPL.
40292         (func_create_testdir): Don't complain if a module is LGPL and its
40293         tests module depends on GPLed modules.
40294
40295 2007-01-17  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/gettimeofday.c (gettimeofday): Add code for the case
40298         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40299         maximum possible value for tv->tv_usec, rather than the minimum one.
40300
40301 2005-10-08  Martin Lambers  <marlam@marlam.de>
40302 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40303 2007-01-16  Bruno Haible  <bruno@clisp.org>
40304
40305         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40306         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40307         gl_FUNC_GETTIMEOFDAY.
40308         (Include): Add gettimeofday.h.
40309         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40310         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40311         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40312         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40313         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40314         * lib/gettimeofday.h: New file.
40315         * lib/gettimeofday.c: Include <sys/timeb.h>.
40316         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40317         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40318         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40319         fall back on time().
40320
40321         * tests/test-gettimeofday.c: New file.
40322         * modules/gettimeofday-tests: New file.
40323
40324 2007-01-16  Eric Blake  <ebb9@byu.net>
40325
40326         * modules/fnmatch (Depends-on): Depend on wchar.
40327         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40328         * m4/fnmatch.m4: Likewise.
40329         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40330         * m4/mbchar.m4: Likewise.
40331         * modules/mbswidth (Depends-on): Depend on wchar.
40332         * lib/mbswidth.c: Assume <wchar.h>.
40333         * m4/mbswidth.m4: Likewise.
40334         * modules/quotearg (Depends-on): Depend on wchar.
40335         * lib/quotearg.c: Assume <wchar.h>.
40336         * m4/quotearg.m4: Likewise.
40337         * modules/regex (Depends-on): Depend on wchar.
40338         * lib/regex_internal.h: Assume <wchar.h>.
40339         * m4/regex.m4: Likewise.
40340         * modules/stdint (Depends-on): Depend on wchar.
40341         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40342         * m4/stdint.m4: Likewise.
40343         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40344         * modules/strftime (Depends-on): Depend on wchar.
40345         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40346         * modules/strtol (Depends-on): Depend on wchar.
40347         * lib/strtol.c: Assume <wchar.h>.
40348         * modules/wcwidth (Depends-on): Depend on wchar.
40349         * lib/wcwidth.h: Assume <wchar.h>.
40350         * m4/wcwidth.m4: Likewise.
40351
40352 2007-01-16  Bruno Haible  <bruno@clisp.org>
40353
40354         * modules/csharpexec-script: New, created from...
40355         * modules/csharpexec: ... this.
40356
40357 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40358
40359         * modules/javaexec-script: New, created from...
40360         * modules/javaexec: ... this.
40361
40362 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40363
40364         * modules/poll (Dependencies): Add sys_select.
40365
40366 2007-01-15  Jim Meyering  <jim@meyering.net>
40367
40368         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40369         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40370         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40371         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40372
40373 2007-01-15  Bruno Haible  <bruno@clisp.org>
40374
40375         * modules/striconveh: New file.
40376         * lib/striconveh.h: New file.
40377         * lib/striconveh.c: New file.
40378         * MODULES.html.sh (Internationalization functions): Add striconveh.
40379
40380         * modules/striconveh-tests: New file.
40381         * tests/test-striconveh.c: New file.
40382
40383 2007-01-15  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40386         not from GNU libiconv or GNU libc.
40387
40388 2007-01-15  Bruno Haible  <bruno@clisp.org>
40389
40390         * doc/gnulib-intro.texi (Copyright): Explain the different license
40391         terms for module descriptions, autoconf macros, tests, documentation.
40392
40393 2007-01-14  Bruno Haible  <bruno@clisp.org>
40394
40395         * modules/striconv-tests: New file.
40396         * tests/test-striconv.c: New file.
40397
40398 2007-01-14  Bruno Haible  <bruno@clisp.org>
40399
40400         * modules/iconv-tests: New file.
40401         * tests/test-iconv.c: New file.
40402
40403 2007-01-14  Bruno Haible  <bruno@clisp.org>
40404
40405         * gnulib-tool (func_get_license): For test modules, use the license of
40406         the main module.
40407
40408 2007-01-14  Bruno Haible  <bruno@clisp.org>
40409
40410         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40411         if iconv is found to exist.
40412
40413 2007-01-14  Bruno Haible  <bruno@clisp.org>
40414
40415         * modules/c-ctype-tests: New file.
40416         * tests/test-c-ctype.c: New file.
40417
40418 2007-01-14  Bruno Haible  <bruno@clisp.org>
40419
40420         * modules/binary-io-tests: New file.
40421         * tests/test-binary-io.sh: New file.
40422         * tests/test-binary-io.c: New file.
40423
40424 2007-01-14  Bruno Haible  <bruno@clisp.org>
40425
40426         * modules/array-oset-tests: New file.
40427         * tests/test-array_oset.c: New file.
40428
40429 2007-01-14  Bruno Haible  <bruno@clisp.org>
40430
40431         * modules/array-list-tests: New file.
40432         * tests/test-array_list.c: New file.
40433
40434 2007-01-14  Bruno Haible  <bruno@clisp.org>
40435
40436         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40437         and make.
40438         Reported by Simon Josefsson in
40439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40440
40441 2007-01-14  Bruno Haible  <bruno@clisp.org>
40442
40443         * modules/allocsa-tests: New file.
40444         * tests/test-allocsa.c: New file.
40445
40446 2007-01-14  Bruno Haible  <bruno@clisp.org>
40447
40448         * modules/fchdir (Depends-on): Add absolute-header.
40449         * modules/unistd (Depends-on): Likewise.
40450
40451 2006-12-30  Bruno Haible  <bruno@clisp.org>
40452
40453         * modules/fchdir: New file.
40454         * modules/unistd (Files): Add lib/unistd_.h.
40455         (Makefile.am): Generate unistd.h from unistd_.h.
40456         * lib/fchdir.c: New file.
40457         * lib/dirent_.h: New file.
40458         * lib/unistd_.h: New file.
40459         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40460         * m4/fchdir.m4: New file.
40461         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40462         (gl_HEADER_UNISTD): Invoke it.
40463         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40464         function.
40465         * lib/backupfile.c (opendir, closedir): Undefine.
40466         * lib/chown.c (open, close): Undefine.
40467         * lib/clean-temp.c (open, close): Undefine.
40468         * lib/copy-file.c (open, close): Undefine.
40469         * lib/execute.c (open, close): Undefine.
40470         * lib/fsusage.c (open, close): Undefine.
40471         * lib/gc-gnulib.c (open, close): Undefine.
40472         * lib/getcwd.c (opendir, closedir): Undefine.
40473         * lib/glob.c (opendir, closedir): Undefine.
40474         * lib/javacomp.c (open, close): Undefine.
40475         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40476         * lib/openat-proc.c (open, close): Undefine.
40477         * lib/pagealign_alloc.c (open, close): Undefine.
40478         * lib/pipe.c (open, close): Undefine.
40479         * lib/progreloc.c (open, close): Undefine.
40480         * lib/savedir.c (opendir, closedir): Undefine.
40481         * lib/utime.c (open, close): Undefine.
40482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40483
40484 2007-01-10  Bruno Haible  <bruno@clisp.org>
40485
40486         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40487
40488 2007-01-12  Eric Blake  <ebb9@byu.net>
40489
40490         Provide a robust <wchar.h>.  Further simplifications are now
40491         possible in other modules, but not included here.
40492         * modules/wchar: New module.
40493         * m4/wchar.m4: New file.
40494         * lib/wchar_.h: Likewise.
40495         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40496         of the new module.
40497         * MODULES.html.sh (Extended multibyte and wide character utilities):
40498         New section.
40499
40500 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40501
40502         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40503         to a reasonable default for memory allocation.
40504         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40505         file system that reports garbage st_size values for symlinks.
40506         Problem reported by Liyang Hu.
40507
40508 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40509
40510         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40511         Emacs .#* auto-save files).
40512
40513 2007-01-11  Bruno Haible  <bruno@clisp.org>
40514
40515         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40516         directory.
40517
40518 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40519
40520         Use @...@ consistently in lib/wctype_.h.
40521         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40522         on it being set to 1 or 0.
40523         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40524         go back to AC_SUBSTing it.
40525         * modules/wctype (Makefile.am): Undo previous change.
40526
40527 2007-01-10  Eric Blake  <ebb9@byu.net>
40528
40529         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40530         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40531         * modules/wctype (Makefile.am): Likewise.
40532         Reported by Chris McGuire.
40533
40534 2007-01-10  Jim Meyering  <jim@meyering.net>
40535
40536         fts.c: a small readability/maintainability improvement
40537         * lib/fts.c (fts_read): Make this code slightly more readable and
40538         maintainable by hoisting the "sp->fts_cur = p" assignments to
40539         immediately follow the statements that set P.  Derived from
40540         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40541
40542 2007-01-10  Eric Blake  <ebb9@byu.net>
40543
40544         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40545         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40547         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40548         Reported by Chris McGuire.
40549
40550 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40551
40552         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40553         in sed script.
40554
40555 2007-01-09  Bruno Haible  <bruno@clisp.org>
40556
40557         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40558         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40559         variables.
40560         (func_module): Use them.
40561
40562 2007-01-09  Bruno Haible  <bruno@clisp.org>
40563
40564         * modules/unistr/base: New file.
40565         * lib/unistr.h: New file.
40566
40567         * modules/unistr/u8-to-u16: New file.
40568         * lib/unistr/u8-to-u16.c: New file.
40569
40570         * modules/unistr/u8-to-u32: New file.
40571         * lib/unistr/u8-to-u32.c: New file.
40572
40573         * modules/unistr/u16-to-u8: New file.
40574         * lib/unistr/u16-to-u8.c: New file.
40575
40576         * modules/unistr/u16-to-u32: New file.
40577         * lib/unistr/u16-to-u32.c: New file.
40578
40579         * modules/unistr/u32-to-u8: New file.
40580         * lib/unistr/u32-to-u8.c: New file.
40581
40582         * modules/unistr/u32-to-u16: New file.
40583         * lib/unistr/u32-to-u16.c: New file.
40584
40585         * modules/unistr/u8-check: New file.
40586         * modules/unistr/u16-check: New file.
40587         * modules/unistr/u32-check: New file.
40588         * lib/unistr/u8-check.c: New file.
40589         * lib/unistr/u16-check.c: New file.
40590         * lib/unistr/u32-check.c: New file.
40591
40592         * modules/unistr/u8-chr: New file.
40593         * modules/unistr/u16-chr: New file.
40594         * modules/unistr/u32-chr: New file.
40595         * lib/unistr/u8-chr.c: New file.
40596         * lib/unistr/u16-chr.c: New file.
40597         * lib/unistr/u32-chr.c: New file.
40598
40599         * modules/unistr/u8-cmp: New file.
40600         * modules/unistr/u16-cmp: New file.
40601         * modules/unistr/u32-cmp: New file.
40602         * lib/unistr/u8-cmp.c: New file.
40603         * lib/unistr/u16-cmp.c: New file.
40604         * lib/unistr/u32-cmp.c: New file.
40605
40606         * modules/unistr/u8-cpy: New file.
40607         * modules/unistr/u16-cpy: New file.
40608         * modules/unistr/u32-cpy: New file.
40609         * lib/unistr/u8-cpy.c: New file.
40610         * lib/unistr/u16-cpy.c: New file.
40611         * lib/unistr/u32-cpy.c: New file.
40612         * lib/unistr/u-cpy.h: New file.
40613
40614         * modules/unistr/u8-cpy-alloc: New file.
40615         * modules/unistr/u16-cpy-alloc: New file.
40616         * modules/unistr/u32-cpy-alloc: New file.
40617         * lib/unistr/u8-cpy-alloc.c: New file.
40618         * lib/unistr/u16-cpy-alloc.c: New file.
40619         * lib/unistr/u32-cpy-alloc.c: New file.
40620         * lib/unistr/u-cpy-alloc.h: New file.
40621
40622         * modules/unistr/u8-endswith: New file.
40623         * modules/unistr/u16-endswith: New file.
40624         * modules/unistr/u32-endswith: New file.
40625         * lib/unistr/u8-endswith.c: New file.
40626         * lib/unistr/u16-endswith.c: New file.
40627         * lib/unistr/u32-endswith.c: New file.
40628         * lib/unistr/u-endswith.h: New file.
40629
40630         * modules/unistr/u8-mblen: New file.
40631         * modules/unistr/u16-mblen: New file.
40632         * modules/unistr/u32-mblen: New file.
40633         * lib/unistr/u8-mblen.c: New file.
40634         * lib/unistr/u16-mblen.c: New file.
40635         * lib/unistr/u32-mblen.c: New file.
40636
40637         * modules/unistr/u8-mbtouc: New file.
40638         * modules/unistr/u16-mbtouc: New file.
40639         * modules/unistr/u32-mbtouc: New file.
40640         * lib/unistr/u8-mbtouc.c: New file.
40641         * lib/unistr/u16-mbtouc.c: New file.
40642         * lib/unistr/u32-mbtouc.c: New file.
40643
40644         * modules/unistr/u8-mbtouc-safe: New file.
40645         * modules/unistr/u16-mbtouc-safe: New file.
40646         * modules/unistr/u32-mbtouc-safe: New file.
40647         * lib/unistr/u8-mbtouc-safe.c: New file.
40648         * lib/unistr/u16-mbtouc-safe.c: New file.
40649         * lib/unistr/u32-mbtouc-safe.c: New file.
40650
40651         * modules/unistr/u8-move: New file.
40652         * modules/unistr/u16-move: New file.
40653         * modules/unistr/u32-move: New file.
40654         * lib/unistr/u8-move.c: New file.
40655         * lib/unistr/u16-move.c: New file.
40656         * lib/unistr/u32-move.c: New file.
40657         * lib/unistr/u-move.h: New file.
40658
40659         * modules/unistr/u8-next: New file.
40660         * modules/unistr/u16-next: New file.
40661         * modules/unistr/u32-next: New file.
40662         * lib/unistr/u8-next.c: New file.
40663         * lib/unistr/u16-next.c: New file.
40664         * lib/unistr/u32-next.c: New file.
40665
40666         * modules/unistr/u8-prev: New file.
40667         * modules/unistr/u16-prev: New file.
40668         * modules/unistr/u32-prev: New file.
40669         * lib/unistr/u8-prev.c: New file.
40670         * lib/unistr/u16-prev.c: New file.
40671         * lib/unistr/u32-prev.c: New file.
40672
40673         * modules/unistr/u8-set: New file.
40674         * modules/unistr/u16-set: New file.
40675         * modules/unistr/u32-set: New file.
40676         * lib/unistr/u8-set.c: New file.
40677         * lib/unistr/u16-set.c: New file.
40678         * lib/unistr/u32-set.c: New file.
40679         * lib/unistr/u-set.h: New file.
40680
40681         * modules/unistr/u8-startswith: New file.
40682         * modules/unistr/u16-startswith: New file.
40683         * modules/unistr/u32-startswith: New file.
40684         * lib/unistr/u8-startswith.c: New file.
40685         * lib/unistr/u16-startswith.c: New file.
40686         * lib/unistr/u32-startswith.c: New file.
40687         * lib/unistr/u-startswith.h: New file.
40688
40689         * modules/unistr/u8-stpcpy: New file.
40690         * modules/unistr/u16-stpcpy: New file.
40691         * modules/unistr/u32-stpcpy: New file.
40692         * lib/unistr/u8-stpcpy.c: New file.
40693         * lib/unistr/u16-stpcpy.c: New file.
40694         * lib/unistr/u32-stpcpy.c: New file.
40695         * lib/unistr/u-stpcpy.h: New file.
40696
40697         * modules/unistr/u8-stpncpy: New file.
40698         * modules/unistr/u16-stpncpy: New file.
40699         * modules/unistr/u32-stpncpy: New file.
40700         * lib/unistr/u8-stpncpy.c: New file.
40701         * lib/unistr/u16-stpncpy.c: New file.
40702         * lib/unistr/u32-stpncpy.c: New file.
40703         * lib/unistr/u-stpncpy.h: New file.
40704
40705         * modules/unistr/u8-strcat: New file.
40706         * modules/unistr/u16-strcat: New file.
40707         * modules/unistr/u32-strcat: New file.
40708         * lib/unistr/u8-strcat.c: New file.
40709         * lib/unistr/u16-strcat.c: New file.
40710         * lib/unistr/u32-strcat.c: New file.
40711         * lib/unistr/u-strcat.h: New file.
40712
40713         * modules/unistr/u8-strchr: New file.
40714         * modules/unistr/u16-strchr: New file.
40715         * modules/unistr/u32-strchr: New file.
40716         * lib/unistr/u8-strchr.c: New file.
40717         * lib/unistr/u16-strchr.c: New file.
40718         * lib/unistr/u32-strchr.c: New file.
40719
40720         * modules/unistr/u8-strcmp: New file.
40721         * modules/unistr/u16-strcmp: New file.
40722         * modules/unistr/u32-strcmp: New file.
40723         * lib/unistr/u8-strcmp.c: New file.
40724         * lib/unistr/u16-strcmp.c: New file.
40725         * lib/unistr/u32-strcmp.c: New file.
40726
40727         * modules/unistr/u8-strcpy: New file.
40728         * modules/unistr/u16-strcpy: New file.
40729         * modules/unistr/u32-strcpy: New file.
40730         * lib/unistr/u8-strcpy.c: New file.
40731         * lib/unistr/u16-strcpy.c: New file.
40732         * lib/unistr/u32-strcpy.c: New file.
40733         * lib/unistr/u-strcpy.h: New file.
40734
40735         * modules/unistr/u8-strcspn: New file.
40736         * modules/unistr/u16-strcspn: New file.
40737         * modules/unistr/u32-strcspn: New file.
40738         * lib/unistr/u8-strcspn.c: New file.
40739         * lib/unistr/u16-strcspn.c: New file.
40740         * lib/unistr/u32-strcspn.c: New file.
40741         * lib/unistr/u-strcspn.h: New file.
40742
40743         * modules/unistr/u8-strdup: New file.
40744         * modules/unistr/u16-strdup: New file.
40745         * modules/unistr/u32-strdup: New file.
40746         * lib/unistr/u8-strdup.c: New file.
40747         * lib/unistr/u16-strdup.c: New file.
40748         * lib/unistr/u32-strdup.c: New file.
40749         * lib/unistr/u-strdup.h: New file.
40750
40751         * modules/unistr/u8-strlen: New file.
40752         * modules/unistr/u16-strlen: New file.
40753         * modules/unistr/u32-strlen: New file.
40754         * lib/unistr/u8-strlen.c: New file.
40755         * lib/unistr/u16-strlen.c: New file.
40756         * lib/unistr/u32-strlen.c: New file.
40757         * lib/unistr/u-strlen.h: New file.
40758
40759         * modules/unistr/u8-strmblen: New file.
40760         * modules/unistr/u16-strmblen: New file.
40761         * modules/unistr/u32-strmblen: New file.
40762         * lib/unistr/u8-strmblen.c: New file.
40763         * lib/unistr/u16-strmblen.c: New file.
40764         * lib/unistr/u32-strmblen.c: New file.
40765
40766         * modules/unistr/u8-strmbtouc: New file.
40767         * modules/unistr/u16-strmbtouc: New file.
40768         * modules/unistr/u32-strmbtouc: New file.
40769         * lib/unistr/u8-strmbtouc.c: New file.
40770         * lib/unistr/u16-strmbtouc.c: New file.
40771         * lib/unistr/u32-strmbtouc.c: New file.
40772
40773         * modules/unistr/u8-strncat: New file.
40774         * modules/unistr/u16-strncat: New file.
40775         * modules/unistr/u32-strncat: New file.
40776         * lib/unistr/u8-strncat.c: New file.
40777         * lib/unistr/u16-strncat.c: New file.
40778         * lib/unistr/u32-strncat.c: New file.
40779         * lib/unistr/u-strncat.h: New file.
40780
40781         * modules/unistr/u8-strncmp: New file.
40782         * modules/unistr/u16-strncmp: New file.
40783         * modules/unistr/u32-strncmp: New file.
40784         * lib/unistr/u8-strncmp.c: New file.
40785         * lib/unistr/u16-strncmp.c: New file.
40786         * lib/unistr/u32-strncmp.c: New file.
40787
40788         * modules/unistr/u8-strncpy: New file.
40789         * modules/unistr/u16-strncpy: New file.
40790         * modules/unistr/u32-strncpy: New file.
40791         * lib/unistr/u8-strncpy.c: New file.
40792         * lib/unistr/u16-strncpy.c: New file.
40793         * lib/unistr/u32-strncpy.c: New file.
40794         * lib/unistr/u-strncpy.h: New file.
40795
40796         * modules/unistr/u8-strnlen: New file.
40797         * modules/unistr/u16-strnlen: New file.
40798         * modules/unistr/u32-strnlen: New file.
40799         * lib/unistr/u8-strnlen.c: New file.
40800         * lib/unistr/u16-strnlen.c: New file.
40801         * lib/unistr/u32-strnlen.c: New file.
40802         * lib/unistr/u-strnlen.h: New file.
40803
40804         * modules/unistr/u8-strpbrk: New file.
40805         * modules/unistr/u16-strpbrk: New file.
40806         * modules/unistr/u32-strpbrk: New file.
40807         * lib/unistr/u8-strpbrk.c: New file.
40808         * lib/unistr/u16-strpbrk.c: New file.
40809         * lib/unistr/u32-strpbrk.c: New file.
40810         * lib/unistr/u-strpbrk.h: New file.
40811
40812         * modules/unistr/u8-strrchr: New file.
40813         * modules/unistr/u16-strrchr: New file.
40814         * modules/unistr/u32-strrchr: New file.
40815         * lib/unistr/u8-strrchr.c: New file.
40816         * lib/unistr/u16-strrchr.c: New file.
40817         * lib/unistr/u32-strrchr.c: New file.
40818
40819         * modules/unistr/u8-strspn: New file.
40820         * modules/unistr/u16-strspn: New file.
40821         * modules/unistr/u32-strspn: New file.
40822         * lib/unistr/u8-strspn.c: New file.
40823         * lib/unistr/u16-strspn.c: New file.
40824         * lib/unistr/u32-strspn.c: New file.
40825         * lib/unistr/u-strspn.h: New file.
40826
40827         * modules/unistr/u8-strstr: New file.
40828         * modules/unistr/u16-strstr: New file.
40829         * modules/unistr/u32-strstr: New file.
40830         * lib/unistr/u8-strstr.c: New file.
40831         * lib/unistr/u16-strstr.c: New file.
40832         * lib/unistr/u32-strstr.c: New file.
40833         * lib/unistr/u-strstr.h: New file.
40834
40835         * modules/unistr/u8-strtok: New file.
40836         * modules/unistr/u16-strtok: New file.
40837         * modules/unistr/u32-strtok: New file.
40838         * lib/unistr/u8-strtok.c: New file.
40839         * lib/unistr/u16-strtok.c: New file.
40840         * lib/unistr/u32-strtok.c: New file.
40841         * lib/unistr/u-strtok.h: New file.
40842
40843         * modules/unistr/u8-uctomb: New file.
40844         * modules/unistr/u16-uctomb: New file.
40845         * modules/unistr/u32-uctomb: New file.
40846         * lib/unistr/u8-uctomb.c: New file.
40847         * lib/unistr/u16-uctomb.c: New file.
40848         * lib/unistr/u32-uctomb.c: New file.
40849
40850         * MODULES.html.sh (Unicode string functions): Add the new modules.
40851
40852 2007-01-08  Bruno Haible  <bruno@clisp.org>
40853
40854         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40855         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40856         subdirectories.
40857
40858 2007-01-08  Karl Berry  <karl@gnu.org>
40859
40860         * doc/error.texi: mention that main() fns must set program_name
40861         when progname is used.
40862
40863 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40864
40865         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40866         WCTYPE_H is empty, for the benefit of builds from non-distclean
40867         directories.  Problem reported by Eric Blake in
40868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40869
40870 2007-01-08  Bruno Haible  <bruno@clisp.org>
40871
40872         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40873         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40874         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40875         PROVIDE_CANONICALIZE_FILENAME_MODE.
40876         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40877
40878 2007-01-08  Bruno Haible  <bruno@clisp.org>
40879
40880         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40881         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40882         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40883         * lib/fts.c: Likewise.
40884         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40885
40886 2006-12-25  Bruno Haible  <bruno@clisp.org>
40887
40888         * modules/utf8-ucs4-safe: New file.
40889         * lib/utf8-ucs4-safe.h: New file.
40890         * lib/unistr/utf8-ucs4-safe.c: New file.
40891
40892         * modules/utf16-ucs4-safe: New file.
40893         * lib/utf16-ucs4-safe.h: New file.
40894         * lib/unistr/utf16-ucs4-safe.c: New file.
40895
40896         * MODULES.html.sh (Unicode string functions): Add the new modules.
40897
40898 2007-01-08  Bruno Haible  <bruno@clisp.org>
40899
40900         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40901         (Depends-on): Add unitypes.
40902         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40903         (u8_mbtouc_aux): Move out to separate file.
40904         (u8_mbtouc): Use ucs4_t, uint8_t types.
40905         * lib/unistr/utf8-ucs4.c: New file.
40906
40907         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40908         (Depends-on): Add unitypes.
40909         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40910         (u16_mbtouc_aux): Move out to separate file.
40911         (u16_mbtouc): Use ucs4_t, uint16_t types.
40912         * lib/unistr/utf16-ucs4.c: New file.
40913
40914         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40915         (Depends-on): Add unitypes.
40916         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40917         (u8_uctomb_aux): Move out to separate file.
40918         (u8_uctomb): Use ucs4_t, uint8_t types.
40919         * lib/unistr/ucs4-utf8.c: New file.
40920
40921         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40922         (Depends-on): Add unitypes.
40923         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40924         (u16_uctomb_aux): Move out to separate file.
40925         (u16_uctomb): Use ucs4_t, uint16_t types.
40926         * lib/unistr/ucs4-utf16.c: New file.
40927
40928 2006-12-25  Bruno Haible  <bruno@clisp.org>
40929
40930         * modules/unitypes: New file.
40931         * lib/unitypes.h: New file.
40932         * MODULES.html.sh (func_all_modules): New section "Unicode string
40933         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40934         this section. Add unitypes.
40935
40936 2007-01-08  Bruno Haible  <bruno@clisp.org>
40937
40938         Avoid variable names that conflict with those from libtool.
40939         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40940         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40941         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40942         library_names_spec to acl_library_names_spec, hardcode_* to
40943         acl_hardcode_*.
40944         Reported by Ralf Wildenhues.
40945
40946 2007-01-08  Bruno Haible  <bruno@clisp.org>
40947
40948         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40949         definition.
40950         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40951         definition.
40952         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40953         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40954         definition.
40955         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40956         definition.
40957         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40958         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40959         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40960         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40961         definition.
40962         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40963         definition.
40964         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40965         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40966         GC_USE_<algorithm>.
40967         * lib/gc-libgcrypt.c: Likewise.
40968         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40969         * modules/gc-arctwo (configure.ac): Likewise.
40970         * modules/gc-des (configure.ac): Likewise.
40971         * modules/gc-hmac-md5 (configure.ac): Likewise.
40972         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40973         * modules/gc-md2 (configure.ac): Likewise.
40974         * modules/gc-md4 (configure.ac): Likewise.
40975         * modules/gc-md5 (configure.ac): Likewise.
40976         * modules/gc-random (configure.ac): Likewise.
40977         * modules/gc-rijndael (configure.ac): Likewise.
40978         * modules/gc-sha1 (configure.ac): Likewise.
40979
40980 2007-01-08  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40983         macro definition.
40984         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40985         definition.
40986         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40987         definition.
40988         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40989         * modules/fcntl-safer (configure.ac): Likewise.
40990         * modules/fopen-safer (configure.ac): Likewise.
40991         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40992         GNULIB_FWRITEERROR macro definition.
40993
40994 2007-01-08  Bruno Haible  <bruno@clisp.org>
40995
40996         * m4/gnulib-common.m4: New file.
40997         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40998         (func_get_filelist): Add m4/gnulib-common.m4.
40999
41000 2007-01-08  Bruno Haible  <bruno@clisp.org>
41001
41002         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41003         command.
41004
41005 2007-01-08  Jim Meyering  <jim@meyering.net>
41006
41007         Use a more robust test for a "can't happen" condition.
41008         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41009         narrowed the st_size value.  Presuming the "can't happen" condition
41010         is true, that narrowing could conceivably convert an invalid st_size
41011         value into a valid one.  Instead, use a change based on Matthew
41012         Woehlke's original patch.
41013
41014         Slight readability improvement: use an assert-like macro
41015         in place of literal "abort ()" uses.
41016         * lib/fts.c (fts_assert): Define.
41017         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41018         Use this macro instead of a bare 'abort'.
41019
41020 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41021
41022         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41023         simply work around them.
41024         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41025         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41026         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41027         declaring.
41028         Don't bother to define as macros, since the standard doesn't require it.
41029         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41030         longer worry about IRIX 5.3.
41031         (HAVE_WCTYPE_CTMP_BUG): Remove.
41032
41033 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41034
41035         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41036         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41037         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41038         Problems reported by Georg Schwarz for IRIX 5.3.
41039
41040         * gnulib-tool (autoconf_minversion): Take the maximum version number
41041         found, not the minimum.  Problem reported by James Youngman.
41042
41043 2007-01-03  Karl Berry  <karl@gnu.org>
41044
41045         * doc/error.texi: new file, explaining interaction with progname.
41046         * doc/gnulib.texi: include it.  Update copyright.
41047
41048 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41049
41050         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41051         AC_CANONICAL_HOST, to improve autobuild outputs.
41052
41053 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41054             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41055
41056         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41057         sockets, server sockets, and other file descriptors.  Count errors
41058         to compute the return value.  Reorder the code a bit to be easier
41059         to follow.  Don't set event bits that were not requested (except
41060         POLLERR and POLLHUP).
41061
41062 2007-01-01  Bruno Haible  <bruno@clisp.org>
41063
41064         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41065
41066 2007-01-03  Jim Meyering  <jim@meyering.net>
41067
41068         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41069
41070 2007-01-02  Bruno Haible  <bruno@clisp.org>
41071
41072         * modules/settime (Include): Require timespec.h.
41073         * modules/nanosleep (Include): Likewise.
41074
41075 2007-01-01  Bruno Haible  <bruno@clisp.org>
41076
41077         * gnulib-tool (func_emit_copyright_notice): Bump year.
41078         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41079
41080 2007-01-01  Bruno Haible  <bruno@clisp.org>
41081
41082         Improve support for OpenBSD.
41083         * build-aux/config.rpath (libname_spec): Export.
41084         (library_names_spec): New variable. Export.
41085         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41086         library_names_spec from the config.rpath output. Locate shared library
41087         through the name pattern in library_names_spec.
41088
41089 2007-01-01  Eric Blake  <ebb9@byu.net>
41090
41091         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41092
41093 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41094
41095         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41096         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41097         assume the C locale, and avoid an "eval" that could cause trouble.
41098         Problem with SORT reported by Bob Proulx.
41099
41100         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41101         Define.  Trivial patch from Henning Nielsen Lund, originally
41102         sent to bug-grep@gnu.org today.
41103
41104 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41105
41106         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41107         struct stat.  Problem reported by Henning Nielsen Lund.
41108         * lib/acl.c: Include acl.h first, to check interface.  Don't
41109         bother to include sys/types.h and sys/stat.h again.
41110
41111 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41112
41113         Import the following change from libc; problem reported by
41114         Sven Verdoolaege.
41115
41116         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41117
41118         [BZ #1373]
41119         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41120
41121 2006-12-28  Jim Meyering  <jim@meyering.net>
41122
41123         * build-aux/announce-gen: Do not assume that the package
41124         builds any of tar.gz, tar.bz2, and .xdelta files.
41125         Suggestion from Simon Josefsson.
41126
41127 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41128
41129         * modules/announce-gen: New file.
41130
41131 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41132
41133         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41134         handles its gotchas now.
41135         * lib/mbswidth.c: Likewise.
41136         * lib/wcwidth.h: Likewise.
41137         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41138         and iswcntrl; the wctype module does this stuff now.
41139         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41141         * modules/mbchar (Depends-on): Add wctype.
41142         * modules/mbswidth (Depends-on): Likewise.
41143         * modules/wcwidth (Depends-on): Likewise.
41144
41145 2006-12-27  Eric Blake  <ebb9@byu.net>
41146
41147         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41148         module uses more than what <wctype.h> is required to provide.
41149
41150 2006-12-26  Eric Blake  <ebb9@byu.net>
41151
41152         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41153
41154 2006-12-26  Eric Blake  <ebb9@byu.net>
41155
41156         * modules/absolute-header: New module.
41157         * modules/fcntl (Depends-on): Depend on it.
41158         * modules/inttypes (Depends-on): Likewise.
41159         * modules/stdint (Depends-on): Likewise.
41160         * modules/sys_stat (Depends-on): Likewise.
41161         * modules/wctype (Depends-on): Likewise.
41162         * MODULES.html.sh (Support for building libraries and
41163         executables): Document it.
41164
41165 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41166
41167         * gnulib-tool (SED): Remove, undoing previous change.
41168         The problem was that it broke coreutils on Solaris, because
41169         "sed --posix" leaked into a makefile.
41170         (sed): New alias, if 'alias' and GNU sed.
41171
41172 2006-12-24  Jim Meyering  <jim@meyering.net>
41173
41174         Work around an fchownat bug in glibc-2.4:
41175         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41176         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41177         in spite of the -P option.
41178         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41179         New macros.
41180         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41181         * modules/openat (Files): Add lib/fchownat.c.
41182         * lib/openat.c (fchownat): Don't define here.  Move to...
41183         * lib/fchownat.c: ...this new file.
41184
41185 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41186
41187         Fix bug reported by Bruno Haible in
41188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41189         where quotearg.c didn't compile on Mac OS X 10.2 because it
41190         lacks <wchar.h> and wint_t.
41191         * lib/wctype_.h (__wctype_wint_t): New type.
41192         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41193         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41194         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41195         Arg is now of type __wctype_wint_t, not wint_t.
41196         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41197         substitute HAVE_WINT_T.
41198         * modules/wctype (Files): Add m4/wint_t.m4.
41199         (wctype.h): Substitute HAVE_WINT_T.
41200
41201 2006-12-23  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41204
41205 2006-12-23  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41208         S_ISLNK.
41209         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41210         mingw.
41211
41212 2006-12-22  Bruno Haible  <bruno@clisp.org>
41213
41214         * lib/copy-file.c: Include acl.h.
41215         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41216         Close the file descriptors only after being done with copy_acl.
41217         * modules/copy-file (Depends-on): Add acl.
41218
41219 2006-12-22  Bruno Haible  <bruno@clisp.org>
41220
41221         * gnulib-tool (SED): New variable.
41222         Use $SED instead of sed everywhere.
41223
41224 2006-12-22  Bruno Haible  <bruno@clisp.org>
41225
41226         * modules/no-c++: New file.
41227         * m4/no-c++.m4: New file.
41228         * MODULES.html.sh (Support for building libraries and executables):
41229         Add no-c++.
41230
41231 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41232
41233         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41234         Include <limits.h>, and use its INT_MAX to rewrite the
41235         j loop so that it does not overflow 'int'.  Problem reported by
41236         Ralf Wildenhues in
41237         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41238         Play it safe by shifting left by 1 rather than multiplying by 2,
41239         as GCC is less likely to optimize this away when the value
41240         is signed (when it assumes overflow leads to undefined behavior).
41241         Also, don't assume time_t uses two's complement.
41242
41243 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41244
41245         * MODULES.html.sh: New module wctype.
41246         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41247         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41248         <wctype.h>, since the new wctype module should fix this.
41249         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41250         the wctype module should arrange for it.
41251         * lib/regex_internal.h: Likewise.
41252         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41253         since the wctype module should handle this now.
41254         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41255         * modules/fnmatch (Depends-on): Add wctype.
41256         * modules/quotearg (Depends-on): Likewise.
41257         * modules/regex (Depends-on): Likewise.
41258
41259 2006-12-19  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41262         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41263
41264 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41265
41266         * modules/savewd (Depends-on): Fix dependency on fcntl.
41267
41268 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41271         conforms to C99, rather than relying on the user's environment
41272         setting of STDINT_H.
41273
41274 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41275         and Eric Blake  <ebb9@byu.net>
41276
41277         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41278         This is more consistent with the other defines here.
41279         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41280         Port to z/OS.  Problem reported by Paul Gilmartin.
41281         Change local vars to use gl_ prefix rather than ac_.
41282         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41283         with other defines.
41284         * modules/double-slash-root: New module.
41285         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41286         (Depends-on): Add double-slash-root.
41287         * MODULES.html.sh (File system functions): Mention new module.
41288
41289 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41290
41291         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41292         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41293         This is for the benefit of gzip, which doesn't do i18n.
41294
41295 2006-12-12  Jim Meyering  <jim@meyering.net>
41296
41297         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41298         Reported by Andreas Schwab <schwab@suse.de>.
41299
41300 2006-12-12  Bruno Haible  <bruno@clisp.org>
41301
41302         Merge these changes.
41303         2006-09-05  Bruno Haible  <bruno@clisp.org>
41304         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41305         iconv_alloc succeeded.
41306         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41307         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41308         test for " && dest " at the end - dest is always != NULL there. Call
41309         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41310         with 2xNULL arguments, also to flush the state storage. Handle the
41311         IRIX iconv behaviour. Realloc the final result, to throw away unused
41312         memory.
41313
41314 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41315
41316         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41317         and fchmodat unconditionally, since glibc 2.4 has them.
41318         Problem reported by Arkadiusz Miskiewicz.
41319
41320 2006-12-10  Bruno Haible  <bruno@clisp.org>
41321
41322         * gnulib-tool (func_import): Show the include files only for those
41323         modules that are copied and specified.
41324         Reported by Karl Berry.
41325
41326 2006-12-08  Jim Meyering  <jim@meyering.net>
41327
41328         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41329         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41330
41331         * build-aux/announce-gen: Add two new options, both optional:
41332         --bootstrap-tools=TOOL_LIST
41333               a comma-separated list of tools, e.g.,
41334               autoconf,automake,bison,gnulib
41335         --gnulib-snapshot-date=DATE
41336               if gnulib is in the bootstrap tool list,
41337               then report this as the snapshot date.
41338               If not specified, use the current date/time.
41339               If you specify a date here, be sure it's UTC.
41340
41341 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41342
41343         * tests/test-argp-2.sh: Fix test to match actual output.
41344         (func_compare): Fix sed script to be portable.
41345
41346 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41347
41348         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41349         workaround for this case.  It is not autoconfigured now; offhand
41350         it's hard to see how to autoconfigure it.
41351
41352 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41353
41354         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41355         a directory that is about to be chowned.  Such a directory's
41356         initial file permissions should permit the owner only and this
41357         should not be changed until after the chown, since the group and
41358         other bits would be incorrect if they granted permission before
41359         the chown.
41360
41361         Fix porting problem for iswctype reported by Georg Schwarz in:
41362         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41363         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41364         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41366         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41367
41368 2006-12-03  Jim Meyering  <jim@meyering.net>
41369
41370         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41371         p->fts_statp may not yet be defined.
41372         (fts_read): Instead, set it in the caller, once p->fts_statp is
41373         sure to be defined, and corresponds to a top-level directory.
41374         This bug made du -x fail.  Here's the coreutils test case:
41375         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41376         Reported by Mike Frysinger.
41377
41378 2006-12-01  Jim Meyering  <jim@meyering.net>
41379
41380         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41381         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41382         Reported by Simon Josefsson.
41383
41384 2006-11-30  Jim Meyering  <jim@meyering.net>
41385
41386         * m4/warning.m4: Use the all-permissive copyright notice
41387         recommended by RMS (rather than LGPL).
41388         * m4/vararrays.m4: Likewise.
41389         * m4/flexmember.m4: Likewise.
41390
41391 2006-11-29  Bruno Haible  <bruno@clisp.org>
41392
41393         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41394         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41395         using +=.
41396         Reported by Simon Josefsson <simon@josefsson.org>.
41397
41398 2006-11-28  James Youngman <jay@gnu.org>
41399
41400         * README: Advise users that they might find the bug-gnulib@gnu.org
41401         and autotools-announce@gnu.org mailing lists useful.
41402
41403 2006-11-28  Bruno Haible  <bruno@clisp.org>
41404
41405         * m4/ptrdiff_max.m4: Remove file.
41406
41407 2006-11-21  Bruno Haible  <bruno@clisp.org>
41408
41409         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41410         _AC_COMPUTE_INT.
41411         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41412         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41413         _AC_COMPUTE_INT.
41414         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41415         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41416         _AC_COMPUTE_INT.
41417         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41418
41419 2006-11-28  Jim Meyering  <jim@meyering.net>
41420
41421         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41422         warning from "gcc -Wshadow" about shadowing the builtin.
41423
41424 2006-11-27  Bruno Haible  <bruno@clisp.org>
41425
41426         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41427         _AC_COMPUTE_INT.
41428         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41429
41430 2006-11-27  Bruno Haible  <bruno@clisp.org>
41431             Paul Eggert  <eggert@cs.ucla.edu>
41432
41433         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41434
41435 2006-11-26  Bruno Haible  <bruno@clisp.org>
41436
41437         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41438         noinst_LTLIBRARIES.
41439
41440 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41441             Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41444         if compiling with "gcc -ansi".
41445
41446 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41447
41448         Fix some incompatibilities with gcc -ansi -pedantic.
41449         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41450         if compiling pedantically with GCC, unless it's C99 or later.
41451         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41452         it mishandles gcc -ansi -pedantic as well.
41453         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41454         if gcc -pedantic.
41455         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41456         initializers for struct if -pedantic, unless it's C99 or later.
41457
41458 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41459
41460         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41461         Don't close an fd more than once. Identical atimes indicate
41462         success, not failure.
41463
41464 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41465
41466         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41467
41468 2006-11-23  Jim Meyering  <jim@meyering.net>
41469
41470         * build-aux/announce-gen: New file.  From coreutils.
41471
41472 2006-11-22  Jim Meyering  <jim@meyering.net>
41473
41474         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41475         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41476         (fts_read): Use a temporary to narrow the overused st_size member
41477         before using it in a switch statement.  Reported by Matthew Woehlke.
41478
41479         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41480         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41481
41482 2006-11-20  Bruno Haible  <bruno@clisp.org>
41483
41484         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41485         changequote instead of pairs of brackets.
41486         Reported by Andreas Schwab <schwab@suse.de>.
41487
41488 2006-11-21  Jim Meyering  <jim@meyering.net>
41489
41490         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41491         so as to remain compatible with older compilers.
41492         Patch from Michael Deutschmann.
41493
41494 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41495
41496         * MODULES.html.sh (File system functions): Add openat.
41497
41498         * lib/openat.h (rpl_fstatat): New macro, if
41499         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41500         (fstatat): Define to rpl_fstatat under the same conditions,
41501         unless COMPILING_FSTATAT.
41502         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41503         seems to have the bug.
41504         * lib/fstatat.c: New file.
41505         * modules/openat (Files): Add it.
41506
41507 2006-11-20  Bruno Haible  <bruno@clisp.org>
41508
41509         * Makefile: New file.
41510
41511 2006-11-20  Jim Meyering  <jim@meyering.net>
41512
41513         The beginnings of syntax-related checks for gnulib.
41514         * lib/Makefile: New file.
41515         * lib/t-idcache: New script.  Ensure that the two halves of
41516         idcache.c stay in sync.
41517
41518         * lib/idcache.c: Adjust comments in user- and group- portions to
41519         be more accurate, and to be consistent with one another.
41520
41521 2006-11-20  Jim Meyering  <jim@meyering.net>
41522
41523         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41524         continue using the flexible array member (thus, this module performs
41525         half as many malloc calls), with the addition that...
41526         (getgroup, getuser): Consistently record a non-match via an empty
41527         "name" string, and map an empty string match to a NULL return value.
41528         * modules/idcache (Depends-on): Re-add flexmember.
41529
41530         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41531         (getuidbyname, getgroup, getgidbyname): Likewise.
41532
41533         Use cleaner syntax: NULL rather than 0.
41534         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41535
41536 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41537
41538         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41539         It mishandled the case where the group was missing.
41540         Problem reported by Greg Schafer.
41541         * modules/idcache: Likewise.
41542
41543 2006-11-18  Jim Meyering  <jim@meyering.net>
41544
41545         * check-module (%exempt_header): Add exception for some
41546         conditionally-included headers.
41547
41548         * modules/i-ring (Depends-on): Add verify.
41549         (License): Change to LGPL.
41550
41551 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41552
41553         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41554         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41555         and inttostr.h.  Use snprintf rather than uinttostr, so that
41556         LGPLed code doesn't depend on GPLed.
41557
41558 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41559
41560         * modules/inline (License): Change from GPL to LGPL.
41561
41562 2006-11-17  Jim Meyering  <jim@meyering.net>
41563
41564         * modules/d-type (License): Switch to LGPL.
41565
41566 2006-11-15  Bruno Haible  <bruno@clisp.org>
41567
41568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41569
41570 2006-11-15  Eric Blake  <ebb9@byu.net>
41571
41572         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41573         the module dependency.
41574
41575 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41576             Bruno Haible  <bruno@clisp.org>
41577
41578         * gnulib-tool (func_create_testdir): Add license consistency check.
41579
41580 2006-11-15  Eric Blake  <ebb9@byu.net>
41581
41582         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41583         random "(cached)" in configure output.
41584
41585 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41586
41587         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41588         test for conforming inttypes.h is both announced and cached.
41589
41590         * MODULES.html.sh (seen_modules, seen_files): New variables.
41591         (func_module): Rewrite to use a few less gnulib-tool and sed
41592         invocations.  Avoid a couple of quadratic algorithms for ...
41593         (missed_modules, missed_files): ... these, with ...
41594         (func_append, func_tmpdir): ... these new functions, from
41595         gnulib-tool.  Analogously, install traps for cleanup.
41596
41597         * tests/test-gc.c (main): Remove unused variables.
41598         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41599
41600 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41601
41602         * modules/inttostr (License): Change to LGPL.
41603
41604 2006-11-14  Eric Blake  <ebb9@byu.net>
41605
41606         * modules/tempname (License): Change to LGPL.
41607
41608 2006-11-14  Eric Blake  <ebb9@byu.net>
41609
41610         * doc/functions.texi (Function Portability): *printf functions on
41611         Cygwin now understand all POSIX size specifiers.
41612
41613 2006-11-14  Bruno Haible  <bruno@clisp.org>
41614
41615         * modules/c-ctype (License): Change to LGPL.
41616
41617 2006-11-12  Bruno Haible  <bruno@clisp.org>
41618
41619         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41620         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41621         for GNOME libraries, for which the include files are installed in
41622         subdirectories of $prefix/include.
41623
41624 2006-11-12  Bruno Haible  <bruno@clisp.org>
41625
41626         * m4/lib-link.m4: Require at least autoconf-2.54.
41627         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41628         name to underscores for the --with option.
41629
41630 2006-11-13  Bruno Haible  <bruno@clisp.org>
41631
41632         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41633         the tests directory.
41634         Reported by Ralf Wildenhues.
41635
41636 2006-11-13  Bruno Haible  <bruno@clisp.org>
41637
41638         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41639         (func_emit_initmacro_end): Undo the override here.
41640         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41641         Works around the famous automake error in coreutils.
41642
41643 2006-11-13  Eric Blake  <ebb9@byu.net>
41644
41645         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41646         element, not its node.
41647
41648 2006-11-12  Bruno Haible  <bruno@clisp.org>
41649
41650         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41651         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41652
41653 2006-11-12  Bruno Haible  <bruno@clisp.org>
41654
41655         * gnulib-tool: New option --local-symlink.
41656         (func_usage): Document it.
41657         (lsymbolic): New variable.
41658         (func_import, func_create_testdir): If --symlink was not specified,
41659         test whether --local-symlink was specified and the file comes from
41660         the local_gnulib_dir.
41661
41662 2006-11-12  Bruno Haible  <bruno@clisp.org>
41663
41664         * gnulib-tool (func_ln): New function.
41665         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41666
41667 2006-11-12  Bruno Haible  <bruno@clisp.org>
41668
41669         Finish support for source files in subdirectories.
41670         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41671         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41672         AUTOMAKE_OPTIONS.
41673         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41674
41675 2006-11-12  Bruno Haible  <bruno@clisp.org>
41676
41677         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41678         EXTRA_lib_SOURCES augmentation.
41679         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41680
41681 2006-11-12  Jim Meyering  <jim@meyering.net>
41682
41683         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41684         file descriptors.  This also averts a failure on systems with
41685         native openat support when a traversed directory lacks "x" access.
41686         * lib/fts_.h: Include "i-ring.h"
41687         (struct FTS) [fts_fd_ring]: New member.
41688         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41689         (FCHDIR): Add parentheses.
41690         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41691         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41692         When descending, rather than simply closing the previous
41693         fts_cwd_fd value, push that file descriptor onto the ring.
41694         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41695         (fts_open): Initialize the new fd_ring member.
41696         (fts_close): Clear the ring.
41697         (fts_safe_changedir): When possible, use our new fd_ring to skip
41698         the diropen and fstat and dev/ino comparison that would normally
41699         accompany a virtual `chdir ("..")'.
41700
41701         * modules/fts (Depends-on): Add i-ring.
41702         * modules/i-ring: New module.
41703         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41704         * m4/i-ring.m4: New file.
41705
41706 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41707
41708         * gnulib-tool (func_create_testdir): Fix replacement of
41709         `build-aux' in configure.ac.  Run autotools in gltests
41710         subdirectory.
41711         (func_create_testdir, func_create_megatestdir, test): There is
41712         no need for '--force' in most autotool invocations in a new
41713         tree.  Actually fail the whole test if any of the tools, or the
41714         configure or make stages fail.
41715
41716         Sync from Automake.
41717         * build-aux/gnupload: Revert last change.  Add pointer to upload
41718         instructions of the GNU Maintenance Instructions.
41719         Suggestion by Karl Berry.
41720
41721 2006-11-10  Jim Meyering  <jim@meyering.net>
41722
41723         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41724
41725 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41726
41727         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41728         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41729         (bind_textdomain_codeset) [! ENABLE_NLS]:
41730         Evaluate all the arguments.  That way, callers get compatible behavior
41731         if the arguments have side effects.  Also, it avoids some GCC
41732         diagnostics in some cases; Joel E. Denny reported problems when Bison
41733         was configured with --enable-gcc-warnigs.
41734
41735 2006-11-10  Jim Meyering  <jim@meyering.net>
41736
41737         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41738         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41739         account.
41740
41741 2006-11-10  Jim Meyering  <jim@meyering.net>
41742
41743         * modules/inline: New file/module.
41744         * modules/xalloc (Files): Remove m4/inline.m4.
41745         (Depends-on): Add inline, instead.
41746         * modules/oset: Likewise.
41747         * modules/list: Likewise.
41748
41749 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41750
41751         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41752         Problem reported by Matthew Woehlke.
41753
41754 2006-11-09  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/tempname.c (gen_tempname): Remove variant that invokes
41757         __gen_tempname.
41758         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41759         __gen_tempname.
41760
41761 2006-11-08  Bruno Haible  <bruno@clisp.org>
41762
41763         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41764         to 'yes' instead of 'cross-compiling'.
41765
41766 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41767
41768         * lib/quotearg.h (quotearg_free): New decl.
41769         * lib/quotearg.c (quotearg_free): New function.
41770         (slot0, nslots, slotvec0, slotvec):
41771         Now file-scope so that quotearg_free can get at them.
41772
41773 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41774
41775         Sync from Automake.
41776         * build-aux/gnupload: Add missing 'gnu' to example URL.
41777         Report by Karl Berry.
41778
41779 2006-11-08  Bruno Haible  <bruno@clisp.org>
41780
41781         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41782         Suggested by Paul Eggert.
41783
41784 2006-11-08  Jim Meyering  <jim@meyering.net>
41785
41786         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41787         It's already included if !_LIBC.
41788         (fts_safe_changedir): Add a comment.
41789
41790 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41791
41792         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41793         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41794         Matthew Woehlke.
41795
41796         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41797         definitions up, to avoid colliding with change below.
41798         (static_inline) [HAVE_INLINE]: New macro.
41799         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41800         Provide extern decls when !HAVE_INLINE.  Do not define unless
41801         static_inline is defined, either by us or by xmalloc.c.  Use
41802         static_inline rather than static inline.
41803         (XCALLOC): Optimize sizeof(T) = 1 case.
41804         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41805
41806 2006-11-07  Bruno Haible  <bruno@clisp.org>
41807
41808         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41809         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41810         AC_C_INLINE.
41811         * modules/xalloc (Files): Add m4/inline.m4.
41812
41813 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41814
41815         * README: Fix typo.
41816         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41817         (Miscellanous Notes): ...from this.
41818
41819 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41820
41821         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41822         Mention that offsetof should be used instead of sizeof.
41823         From Bruno Haible.
41824
41825 2006-11-07  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41828
41829 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41830
41831         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41832         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41833         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41834         (gl_tree_add_before, gl_tree_add_after):
41835         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41836         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41837         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41838         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41839         (gl_linked_add_after, gl_linked_add_at): Likewise.
41840         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41841         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41842         (gl_tree_add_before, gl_tree_add_after): Likewise.
41843         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41844         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41845         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41846
41847 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41848
41849         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41850
41851 2006-11-06  Bruno Haible  <bruno@clisp.org>
41852
41853         * m4/inline.m4: New file.
41854         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41855         * modules/list (Files): Add m4/inline.m4.
41856         * modules/oset (Files): Likewise.
41857
41858 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41859
41860         * lib/idcache.c: Include <stddef.h>, for offsetof.
41861         (struct userid.name): Change from char * to a flexible array member.
41862         All uses changed.
41863         * modules/idcache (Depends-on): Add flexmember.
41864
41865         * MODULES.html.sh (Core language properties): New module flexmember.
41866         * modules/flexmember, m4/flexmember.m4: New files.
41867
41868         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41869         inline functions that are identical with the old xnmalloc_inline,
41870         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41871         that we can avoid some unnecessary integer multiplications and
41872         divisions in the common case where the element size is known at
41873         compile time.
41874         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41875         needed.
41876         (xnboundedmalloc): Remove.
41877         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41878         arguments, for consistency with rest of this header.
41879         (xcharalloc): Rewrite using XNMALLOC.
41880         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41881         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41882         versions have been moved to lib/xalloc.h and renamed to be the
41883         non-*_inline versions.
41884         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41885         and xnrealloc functions, since those functions are now inline and
41886         now call us.
41887         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41888         renaming described above.
41889         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41890         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41891         captures the dependency in AC_C_INLINE.
41892
41893         New module canonicalize-lgpl, proposed by Charles Wilson in
41894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41895         with a few small changes afterwards.
41896         * MODULES.html.sh (File system functions): New module
41897         canonicalize-lgpl.
41898         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41899         and canonicalize_file_name.
41900         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41901         * modules/canonicalize-lgpl: New files.
41902
41903 2006-11-05  Bruno Haible  <bruno@clisp.org>
41904
41905         * gnulib-tool (func_import, func_create_testdir): Create directories
41906         also for files in subdirectories of lib/.
41907
41908 2006-11-05  Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41911         ANSI C compliant.
41912
41913 2006-11-03  Bruno Haible  <bruno@clisp.org>
41914
41915         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41916         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41917         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41918         (xnboundedmalloc): New inline function.
41919         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41920         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41921         xmalloc.
41922         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41923         xmalloc.
41924         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41925         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41926         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41927         xmalloc.
41928         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41929         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41930         xmalloc.
41931         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41932         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41933         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41934         xmalloc.
41935         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41936         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41937         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41938         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41939         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41940         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41941         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41942
41943 2006-11-03  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/c-ctype.h [C++]: Define functions without name mangling.
41946         * lib/fwriteerror.h [C++]: Likewise.
41947         * lib/gcd.h [C++]: Likewise.
41948         * lib/linebreak.h [C++]: Likewise.
41949
41950 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41951
41952         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41953         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41954         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41955         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41956         Check for functions and headers just once.
41957         Check for declaration of canonicalize_file_name.
41958         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41959
41960 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41961
41962         * gnulib-tool (func_import): Fix typo in actioncmd.
41963
41964 2006-11-02  Bruno Haible  <bruno@clisp.org>
41965
41966         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41967         newline sequence in the Makefile.am snippet as a space, like "make"
41968         does.
41969         Reported by Roger Persson <perrog@gmail.com>.
41970
41971 2006-11-01  Bruno Haible  <bruno@clisp.org>
41972
41973         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41974         already declared in <string.h>.
41975         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41976
41977 2006-11-01  Bruno Haible  <bruno@clisp.org>
41978
41979         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41980         * lib/strcase.h: Include <string.h>.
41981         (strcasecmp): Define to rpl_strcasecmp here.
41982
41983 2006-11-01  Bruno Haible  <bruno@clisp.org>
41984
41985         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41986
41987 2006-11-01  Eric Blake  <ebb9@byu.net>
41988
41989         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41990
41991         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41992
41993 2006-10-29  Bruno Haible  <bruno@clisp.org>
41994
41995         Make it compile in C++ mode.
41996         * lib/full-write.c (full_rw): Add a cast.
41997
41998 2006-11-01  Bruno Haible  <bruno@clisp.org>
41999
42000         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42001         be POSIX compliant.
42002         Reported by Roger Persson <perrog@gmail.com>.
42003
42004 2006-11-01  Eric Blake  <ebb9@byu.net>
42005
42006         * lib/getopt_.h: Fix comments.
42007
42008 2006-10-31  Eric Blake  <ebb9@byu.net>
42009
42010         * modules/tmpdir (Depends-on): Add sys_stat.
42011         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42012         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42013         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42014         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42015         tempname.
42016
42017 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42018
42019         Avoid some C++ diagnostics reported by Bruno Haible.
42020         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42021         xmalloc.
42022         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42023         (struct slotvec): Move to top level.
42024         (quotearg_n_options): Rewrite to avoid xmalloc.
42025         * lib/xalloc.h (xcharalloc): New function.
42026         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42027         [defined __cplusplus]: Add function template that provides result
42028         type propagation.  This part of the change is from Bruno Haible.
42029
42030 2006-10-29  Bruno Haible  <bruno@clisp.org>
42031
42032         Make it compile in C++ mode.
42033         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42034         * lib/strnlen1.c (strnlen1): Cast memchr result.
42035         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42036         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42037         (create_temp_dir): Rename local variable 'template'.
42038         (compile_csharp_using_sscli): Add cast.
42039         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42040         * lib/findprog.c (find_in_path): Likewise.
42041         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42042         * lib/wait-process.c (register_slave_subprocess): Likewise.
42043
42044 2006-10-22  Bruno Haible  <bruno@clisp.org>
42045
42046         * modules/tsearch: New file.
42047         * lib/tsearch.h: New file.
42048         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42049         * m4/tsearch.m4: New file.
42050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42051
42052 2006-10-29  Eric Blake  <ebb9@byu.net>
42053
42054         * lib/arcfour.c: Assume config.h.
42055         * lib/arctwo.c: Likewise.
42056         * lib/base64.c: Likewise.
42057         * lib/check-version.c: Likewise.
42058         * lib/crc.c: Likewise.
42059         * lib/des.c: Likewise.
42060         * lib/gc-gnulib.c: Likewise.
42061         * lib/gc-libgcrypt.c: Likewise.
42062         * lib/gc-pbkdf2-sha1.c: Likewise.
42063         * lib/getaddrinfo.c: Likewise.
42064         * lib/getdelim.c: Likewise.
42065         * lib/getline.c: Likewise.
42066         * lib/hmac-md5.c: Likewise.
42067         * lib/hmac-sha1.c: Likewise.
42068         * lib/iconvme.c: Likewise.
42069         * lib/md2.c: Likewise.
42070         * lib/md4.c: Likewise.
42071         * lib/memxor.c: Likewise.
42072         * lib/read-file.c: Likewise.
42073         * lib/readline.c: Likewise.
42074         * lib/rijndael-alg-fst.c: Likewise.
42075         * lib/rijndael-api-fst.c: Likewise.
42076         * lib/xgetdomainname.c: Likewise.
42077
42078 2006-10-28  Eric Blake  <ebb9@byu.net>
42079
42080         * lib/xstrndup.c: Assume config.h.
42081
42082 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42083
42084         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42085         stat-macros.h is now for our own macros, whereas stat_h is for
42086         macros in the <sys/stat.h> name space.
42087         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42088         (STAT_MACROS_H): Remove.
42089         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42090         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42091         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42092         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42093         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42094         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42095         Move these macros to ...
42096         * lib/stat_.h: here.  Don't include stat-macros.h.
42097         * lib/canonicalize.c: Don't include stat-macros.h.
42098         * lib/chown.c: Likewise.
42099         * lib/euidaccess.c: Likewise.
42100         * lib/file-type.c: Likewise.
42101         * lib/filemode.c: Likewise.
42102         * lib/glob.c: Likewise.
42103         * lib/isapipe.c: Likewise.
42104         * lib/lchown.c: Likewise.
42105         * lib/lstat.c: Likewise.
42106         * lib/mkdir-p.c: Likewise.
42107         * lib/rmdir.c: Likewise.
42108         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42110         unless mkdir isn't declared, to speed up 'configure'.
42111         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42112         would define all the S_* symbols.
42113         * modules/canonicalize (Depends-on):
42114         Depend on sys_stat, not stat-macros.
42115         * modules/chown: Likewise.
42116         * modules/euidaccess: Likewise.
42117         * modules/filemode: Likewise.
42118         * modules/file-type: Likewise.
42119         * modules/glob: Likewise.
42120         * modules/isapipe: Likewise.
42121         * modules/lchown: Likewise.
42122         * modules/lstat: Likewise.
42123         * modules/mkancesdirs: Likewise.
42124         * modules/rmdir: Likewise.
42125         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42126         * modules/modechange: Likewise.
42127         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42128         (configure.ac): Remove gl_STAT_MACROS.
42129         * modules/sys_stat (Depends-on): Remove stat-macros.
42130
42131 2006-10-27  Bruno Haible  <bruno@clisp.org>
42132
42133         * m4/signed.m4: Remove file.
42134         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42135         invocation.
42136         * modules/vasnprintf (Files): Remove m4/signed.m4.
42137
42138 2006-10-27  Bruno Haible  <bruno@clisp.org>
42139
42140         Update to GNU gettext 0.16.
42141         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42142         m4/inttypes-h.m4, m4/signed.m4.
42143         * m4/gettext.m4: Update to GNU gettext 0.16.
42144         * m4/intl.m4: New file, from GNU gettext.
42145         * m4/intldir.m4: New file, from GNU gettext.
42146         * config/srclist.txt: Update
42147
42148 2006-10-27  Eric Blake  <ebb9@byu.net>
42149
42150         * MODULES.html.sh: Document tempname.
42151         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42152         dependencies.
42153         (Files): Move lib/tempname.c...
42154         * modules/tempname: ...to this new module.
42155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42156         (gl_PREREQ_TEMPNAME): Move...
42157         * m4/tempname.m4: ...to this new file.
42158         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42159         * modules/sys_stat (Depends-on): Add stat-macros.
42160         * lib/stat_.h (includes): Pick up stat macros.
42161         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42162         if stat macros are broken.
42163         * lib/tempname.c (includes): No need to include "stat-macros.h".
42164         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42165         (direxists, __path_search) [!_LIBC]: Don't compile these in
42166         gnulib; the tmpdir module covers that.
42167         * lib/tempname.h: New file.
42168
42169 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42170
42171         * COPYING: Explain how gnulib-tool converts licence headers.
42172         Almost all wording by Eric Blake.
42173
42174 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42175
42176         * lib/mbchar.h (is_basic_table): Make read-only.
42177         * lib/mbchar.c (is_basic_table): Likewise.
42178         Reported by John Darrington.
42179
42180 2006-10-25  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/progname.h (set_program_name): Undefine before defining.
42183
42184 2006-10-25  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42187         false for non-gcc C++ compilers.
42188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42189
42190 2006-10-24  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42193         iconv implementations like Irix iconv.
42194
42195 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42196
42197         * modules/vararrays: New file.
42198         * m4/vararrays.m4: New file, taken from diffutils.
42199         * MODULES.html.sh: New module vararrays.
42200
42201 2006-10-24  Karl Berry  <karl@gnu.org>
42202
42203         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42204         Don't call GNU Unix.
42205
42206 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42207
42208         * users.txt: Add Libtool.
42209
42210         Sync from Libtool:
42211
42212         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42213
42214         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42215         to gnulib's policy of including config.h unconditionally.
42216
42217 2006-10-24  Bruno Haible  <bruno@clisp.org>
42218
42219         * modules/wcwidth (Files): Add m4/wint_t.m4.
42220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42221         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42222
42223 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42224
42225         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42226         to pacify GCC with some -W flags enabled.  Problem reported by
42227         Bruno Haible.
42228
42229 2006-10-24  Jim Meyering  <jim@meyering.net>
42230
42231         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42232         Reported by Karl Berry.
42233
42234 2006-10-23  Bruno Haible  <bruno@clisp.org>
42235
42236         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42237
42238 2006-10-24  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/gl_list.h: Use C comment style, not C++ comment style.
42241
42242 2006-10-23  Eric Blake  <ebb9@byu.net>
42243
42244         * lib/getaddrinfo.c (includes): Add missing include.
42245
42246 2006-10-23  Bruno Haible  <bruno@clisp.org>
42247             Paul Eggert  <eggert@cs.ucla.edu>
42248
42249         Ability to rename obstack_free.
42250         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42251         obstack_free.
42252         (obstack_free): Invoke the __obstack_free macro.
42253         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42254
42255 2006-10-23  Bruno Haible  <bruno@clisp.org>
42256             Paul Eggert  <eggert@cs.ucla.edu>
42257
42258         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42259         __argc, __argv from the declaration. (They are defined as macros on
42260         mingw.)
42261
42262 2006-10-22  Bruno Haible  <bruno@clisp.org>
42263
42264         * doc/gnulib-intro.texi: New file.
42265         * doc/gnulib.texi: Include it.
42266
42267 2006-10-21  Bruno Haible  <bruno@clisp.org>
42268
42269         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42270         "Introduction", "Miscellanous Notes", "Particular Modules".
42271
42272 2006-10-21  Bruno Haible  <bruno@clisp.org>
42273
42274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42275         Change mostlyclean-local rule to avoid sh syntax error from bash
42276         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42277
42278 2006-10-23  Jim Meyering  <jim@meyering.net>
42279
42280         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42281         in place of snprintf.
42282
42283         * modules/inttostr (Files): Add lib/uinttostr.c.
42284         * lib/uinttostr.c (inttostr): New file/function.
42285         * lib/inttostr.h (uinttostr): Declare.
42286         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42287         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42288         Add uinttostr.
42289         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42290
42291 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42292
42293         * lib/canonicalize.c (ELOOP): Define if not already defined.
42294         Problem reported by Bruno Haible in
42295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42296
42297 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42298
42299         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42300         Problem reported by Perry Smith and Ville Laurikari.
42301
42302         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42303         uses.
42304
42305 2006-10-19  Bruno Haible  <bruno@clisp.org>
42306
42307         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42308         for mingw.
42309
42310 2006-10-19  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42313         Needed for mingw.
42314
42315 2006-10-19  Bruno Haible  <bruno@clisp.org>
42316
42317         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42318
42319 2006-10-19  Bruno Haible  <bruno@clisp.org>
42320
42321         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42322         it.
42323
42324 2006-10-19  Bruno Haible  <bruno@clisp.org>
42325
42326         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42327         invocation.
42328
42329 2006-10-19  Bruno Haible  <bruno@clisp.org>
42330
42331         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42332         mountlist by default.
42333
42334 2006-10-16  Bruno Haible  <bruno@clisp.org>
42335
42336         * lib/c-strstr.c: Include c-strstr.h.
42337
42338 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42339
42340         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42341         in a slash.
42342
42343 2006-10-18  Bruno Haible  <bruno@clisp.org>
42344
42345         * lib/lock.h [C++]: Wrap definitions in extern "C".
42346
42347 2006-10-18  Bruno Haible  <bruno@clisp.org>
42348
42349         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42350         gl_LIBOBJS list.
42351
42352 2006-10-18  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42355
42356 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42357
42358         * lib/xstrtol.h: Include gettext.h.
42359         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42360         Problem reported by Eric Blake.
42361         * modules/xstrtol (Depends-on): Add gettext-h.
42362
42363 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42364
42365         * lib/strftime.c (advance): New macro.
42366         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42367         incomplete type, so you can't add 0 to it.  Problem and patch
42368         reported by Eelco Dolstra for dietlibc.
42369
42370 2006-10-18  Jim Meyering  <jim@meyering.net>
42371
42372         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42373         type for a local, and rename it: s/up/user_proc/.
42374
42375 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42376
42377         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42378         READ_UTMP_USER_PROCESS.
42379         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42380
42381 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42382
42383         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42384         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42385
42386 2006-10-17  Eric Blake  <ebb9@byu.net>
42387
42388         * lib/sigprocmask.c (sigprocmask): Fix typo.
42389
42390         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42391
42392         * modules/clean-temp (Makefile.am): Don't add to make output...
42393         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42394         config.h.
42395
42396 2006-10-17  Bruno Haible  <bruno@clisp.org>
42397
42398         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42399         differently if DEFAULT_TEXT_DOMAIN is set.
42400
42401 2006-10-16  Bruno Haible  <bruno@clisp.org>
42402
42403         * lib/clean-temp.c: Include fwriteerror.h.
42404
42405 2006-10-16  Bruno Haible  <bruno@clisp.org>
42406
42407         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42408
42409 2006-10-16  Bruno Haible  <bruno@clisp.org>
42410
42411         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42412         * lib/sigprocmask.h: Include <sys/types.h>.
42413         (sigset_t): Use the system's definition if present.
42414
42415 2006-10-17  Eric Blake  <ebb9@byu.net>
42416
42417         * lib/xvasprintf.c (includes): Assume config.h.
42418         * lib/xasprintf.c (includes): Likewise.
42419
42420 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42421
42422         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42423         at least as wide as intmax_t.
42424
42425 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42426
42427         (Imported from Automake.)
42428         * build-aux/gnupload: Update to version 1.1 of directive file.
42429
42430 2006-10-16  Eric Blake  <ebb9@byu.net>
42431
42432         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42433         match Automake 1.10a.
42434
42435 2006-10-14  Bruno Haible  <bruno@clisp.org>
42436
42437         * modules/sigprocmask: New file.
42438         * lib/sigprocmask.h: New file.
42439         * lib/sigprocmask.c: New file.
42440         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42441         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42442         request sigprocmask.o.
42443         (gl_PREREQ_SIGPROCMASK): New macro.
42444         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42445         (Depends-on): Add sigprocmask.
42446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42447         gt_SIGNALBLOCKING. Test for 'raise' only once.
42448         * lib/fatal-signal.c: Include sigprocmask.h.
42449         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42450         unblock_fatal_signals): Define always.
42451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42452         sigprocmask.
42453
42454 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42455
42456         Sync from Automake.
42457         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42458         which incorrectly sets the mode of an existing destination
42459         directory.  In some cases the unpatched install-sh could do the
42460         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42461         system.  We hope this is rare in practice, but it's clearly worth
42462         fixing.  Problem reported by Alex Unleashed in
42463         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42464         Also, don't bother to check for -m bugs unless we're using -m;
42465         suggested by Stepan Kasal.
42466
42467 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42468
42469         Sync from Automake.
42470         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42471         `-c' flag, so they appear at the same position as in %FASTDEP%
42472         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42473         which ignores unknown options only after the first non-option.
42474         Bug report against M4 by Nelson H. F. Beebe.
42475
42476 2006-10-13  Jim Meyering  <jim@meyering.net>
42477
42478         Fix a bug in yesterday's change.
42479         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42480         p->fts_statp->st_dev would be used uninitialized.
42481         Ensures that we always call fts_stat on the very first entry.
42482         Miklos Szeredi reported that find -xdev stopped working.
42483
42484 2006-10-12  Bruno Haible  <bruno@clisp.org>
42485
42486         * gnulib-tool (func_get_automake_snippet): Append an automatically
42487         computed EXTRA_DIST augmentation.
42488         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42489         * modules/alloca-opt (Makefile.am): Likewise.
42490         * modules/allocsa (Makefile.am): Likewise.
42491         * modules/arcfour (Makefile.am): Likewise.
42492         * modules/arctwo (Makefile.am): Likewise.
42493         * modules/argmatch (Makefile.am): Likewise.
42494         * modules/argz (Makefile.am): Likewise.
42495         * modules/atexit (Makefile.am): Likewise.
42496         * modules/backupfile (Makefile.am): Likewise.
42497         * modules/byteswap (Makefile.am): Likewise.
42498         * modules/c-strtod (Makefile.am): Likewise.
42499         * modules/c-strtold (Makefile.am): Likewise.
42500         * modules/calloc (Makefile.am): Likewise.
42501         * modules/canon-host (Makefile.am): Likewise.
42502         * modules/canonicalize (Makefile.am): Likewise.
42503         * modules/chdir-long (Makefile.am): Likewise.
42504         * modules/chdir-safer (Makefile.am): Likewise.
42505         * modules/check-version (Makefile.am): Likewise.
42506         * modules/chown (Makefile.am): Likewise.
42507         * modules/cloexec (Makefile.am): Likewise.
42508         * modules/close-stream (Makefile.am): Likewise.
42509         * modules/closeout (Makefile.am): Likewise.
42510         * modules/crc (Makefile.am): Likewise.
42511         * modules/csharpexec (Makefile.am): Likewise.
42512         * modules/cycle-check (Makefile.am): Likewise.
42513         * modules/des (Makefile.am): Likewise.
42514         * modules/dev-ino (Makefile.am): Likewise.
42515         * modules/dirfd (Makefile.am): Likewise.
42516         * modules/dirname (Makefile.am): Likewise.
42517         * modules/dup2 (Makefile.am): Likewise.
42518         * modules/eealloc (Makefile.am): Likewise.
42519         * modules/error (Makefile.am): Likewise.
42520         * modules/euidaccess (Makefile.am): Likewise.
42521         * modules/exclude (Makefile.am): Likewise.
42522         * modules/exitfail (Makefile.am): Likewise.
42523         * modules/fcntl-safer (Makefile.am): Likewise.
42524         * modules/fcntl (Makefile.am): Likewise.
42525         * modules/file-type (Makefile.am): Likewise.
42526         * modules/fileblocks (Makefile.am): Likewise.
42527         * modules/filemode (Makefile.am): Likewise.
42528         * modules/filenamecat (Makefile.am): Likewise.
42529         * modules/fnmatch (Makefile.am): Likewise.
42530         * modules/fopen-safer (Makefile.am): Likewise.
42531         * modules/fpending (Makefile.am): Likewise.
42532         * modules/fprintftime (Makefile.am): Likewise.
42533         * modules/free (Makefile.am): Likewise.
42534         * modules/fsusage (Makefile.am): Likewise.
42535         * modules/ftruncate (Makefile.am): Likewise.
42536         * modules/fts (Makefile.am): Likewise.
42537         * modules/gc-arcfour (Makefile.am): Likewise.
42538         * modules/gc-des (Makefile.am): Likewise.
42539         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42540         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42541         * modules/gc-md4 (Makefile.am): Likewise.
42542         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42543         * modules/gc-sha1 (Makefile.am): Likewise.
42544         * modules/gc (Makefile.am): Likewise.
42545         * modules/getaddrinfo (Makefile.am): Likewise.
42546         * modules/getcwd (Makefile.am): Likewise.
42547         * modules/getdelim (Makefile.am): Likewise.
42548         * modules/getdomainname (Makefile.am): Likewise.
42549         * modules/getgroups (Makefile.am): Likewise.
42550         * modules/gethostname (Makefile.am): Likewise.
42551         * modules/gethrxtime (Makefile.am): Likewise.
42552         * modules/getline (Makefile.am): Likewise.
42553         * modules/getloadavg (Makefile.am): Likewise.
42554         * modules/getlogin_r (Makefile.am): Likewise.
42555         * modules/getndelim2 (Makefile.am): Likewise.
42556         * modules/getopt (Makefile.am): Likewise.
42557         * modules/getpagesize (Makefile.am): Likewise.
42558         * modules/getpass-gnu (Makefile.am): Likewise.
42559         * modules/getpass (Makefile.am): Likewise.
42560         * modules/getsubopt (Makefile.am): Likewise.
42561         * modules/gettime (Makefile.am): Likewise.
42562         * modules/gettimeofday (Makefile.am): Likewise.
42563         * modules/getugroups (Makefile.am): Likewise.
42564         * modules/getusershell (Makefile.am): Likewise.
42565         * modules/glob (Makefile.am): Likewise.
42566         * modules/group-member (Makefile.am): Likewise.
42567         * modules/hard-locale (Makefile.am): Likewise.
42568         * modules/hash (Makefile.am): Likewise.
42569         * modules/hmac-md5 (Makefile.am): Likewise.
42570         * modules/hmac-sha1 (Makefile.am): Likewise.
42571         * modules/human (Makefile.am): Likewise.
42572         * modules/idcache (Makefile.am): Likewise.
42573         * modules/imaxabs (Makefile.am): Likewise.
42574         * modules/imaxdiv (Makefile.am): Likewise.
42575         * modules/inet_ntop (Makefile.am): Likewise.
42576         * modules/inet_pton (Makefile.am): Likewise.
42577         * modules/intprops (Makefile.am): Likewise.
42578         * modules/inttostr (Makefile.am): Likewise.
42579         * modules/inttypes (Makefile.am): Likewise.
42580         * modules/isapipe (Makefile.am): Likewise.
42581         * modules/javaversion (Makefile.am): Likewise.
42582         * modules/lchmod (Makefile.am): Likewise.
42583         * modules/lchown (Makefile.am): Likewise.
42584         * modules/localcharset (Makefile.am): Likewise.
42585         * modules/long-options (Makefile.am): Likewise.
42586         * modules/lstat (Makefile.am): Likewise.
42587         * modules/malloc (Makefile.am): Likewise.
42588         * modules/mathl (Makefile.am): Likewise.
42589         * modules/mbchar (Makefile.am): Likewise.
42590         * modules/md2 (Makefile.am): Likewise.
42591         * modules/md4 (Makefile.am): Likewise.
42592         * modules/md5 (Makefile.am): Likewise.
42593         * modules/memcasecmp (Makefile.am): Likewise.
42594         * modules/memchr (Makefile.am): Likewise.
42595         * modules/memcmp (Makefile.am): Likewise.
42596         * modules/memcoll (Makefile.am): Likewise.
42597         * modules/memcpy (Makefile.am): Likewise.
42598         * modules/memmem (Makefile.am): Likewise.
42599         * modules/memmove (Makefile.am): Likewise.
42600         * modules/mempcpy (Makefile.am): Likewise.
42601         * modules/memrchr (Makefile.am): Likewise.
42602         * modules/memset (Makefile.am): Likewise.
42603         * modules/memxor (Makefile.am): Likewise.
42604         * modules/mkancesdirs (Makefile.am): Likewise.
42605         * modules/mkdir-p (Makefile.am): Likewise.
42606         * modules/mkdir (Makefile.am): Likewise.
42607         * modules/mkdtemp (Makefile.am): Likewise.
42608         * modules/mkstemp (Makefile.am): Likewise.
42609         * modules/mktime (Makefile.am): Likewise.
42610         * modules/modechange (Makefile.am): Likewise.
42611         * modules/mountlist (Makefile.am): Likewise.
42612         * modules/nanosleep (Makefile.am): Likewise.
42613         * modules/obstack (Makefile.am): Likewise.
42614         * modules/openat (Makefile.am): Likewise.
42615         * modules/pagealign_alloc (Makefile.am): Likewise.
42616         * modules/pathmax (Makefile.am): Likewise.
42617         * modules/physmem (Makefile.am): Likewise.
42618         * modules/poll (Makefile.am): Likewise.
42619         * modules/posixtm (Makefile.am): Likewise.
42620         * modules/posixver (Makefile.am): Likewise.
42621         * modules/putenv (Makefile.am): Likewise.
42622         * modules/quote (Makefile.am): Likewise.
42623         * modules/quotearg (Makefile.am): Likewise.
42624         * modules/raise (Makefile.am): Likewise.
42625         * modules/read-file (Makefile.am): Likewise.
42626         * modules/readline (Makefile.am): Likewise.
42627         * modules/readlink (Makefile.am): Likewise.
42628         * modules/readtokens (Makefile.am): Likewise.
42629         * modules/readutmp (Makefile.am): Likewise.
42630         * modules/realloc (Makefile.am): Likewise.
42631         * modules/regex (Makefile.am): Likewise.
42632         * modules/rename-dest-slash (Makefile.am): Likewise.
42633         * modules/rename (Makefile.am): Likewise.
42634         * modules/rijndael (Makefile.am): Likewise.
42635         * modules/rmdir (Makefile.am): Likewise.
42636         * modules/rpmatch (Makefile.am): Likewise.
42637         * modules/safe-read (Makefile.am): Likewise.
42638         * modules/safe-write (Makefile.am): Likewise.
42639         * modules/same-inode (Makefile.am): Likewise.
42640         * modules/same (Makefile.am): Likewise.
42641         * modules/save-cwd (Makefile.am): Likewise.
42642         * modules/savedir (Makefile.am): Likewise.
42643         * modules/setenv (Makefile.am): Likewise.
42644         * modules/settime (Makefile.am): Likewise.
42645         * modules/sha1 (Makefile.am): Likewise.
42646         * modules/sig2str (Makefile.am): Likewise.
42647         * modules/snprintf (Makefile.am): Likewise.
42648         * modules/stat-macros (Makefile.am): Likewise.
42649         * modules/stat-time (Makefile.am): Likewise.
42650         * modules/stdbool (Makefile.am): Likewise.
42651         * modules/stdint (Makefile.am): Likewise.
42652         * modules/stdlib-safer (Makefile.am): Likewise.
42653         * modules/stpcpy (Makefile.am): Likewise.
42654         * modules/stpncpy (Makefile.am): Likewise.
42655         * modules/strcase (Makefile.am): Likewise.
42656         * modules/strcasestr (Makefile.am): Likewise.
42657         * modules/strchrnul (Makefile.am): Likewise.
42658         * modules/strcspn (Makefile.am): Likewise.
42659         * modules/strdup (Makefile.am): Likewise.
42660         * modules/strerror (Makefile.am): Likewise.
42661         * modules/strftime (Makefile.am): Likewise.
42662         * modules/strndup (Makefile.am): Likewise.
42663         * modules/strnlen (Makefile.am): Likewise.
42664         * modules/strpbrk (Makefile.am): Likewise.
42665         * modules/strsep (Makefile.am): Likewise.
42666         * modules/strstr (Makefile.am): Likewise.
42667         * modules/strtod (Makefile.am): Likewise.
42668         * modules/strtoimax (Makefile.am): Likewise.
42669         * modules/strtok_r (Makefile.am): Likewise.
42670         * modules/strtol (Makefile.am): Likewise.
42671         * modules/strtoll (Makefile.am): Likewise.
42672         * modules/strtoul (Makefile.am): Likewise.
42673         * modules/strtoull (Makefile.am): Likewise.
42674         * modules/strtoumax (Makefile.am): Likewise.
42675         * modules/strverscmp (Makefile.am): Likewise.
42676         * modules/sys_socket (Makefile.am): Likewise.
42677         * modules/sys_stat (Makefile.am): Likewise.
42678         * modules/sysexits (Makefile.am): Likewise.
42679         * modules/time_r (Makefile.am): Likewise.
42680         * modules/timegm (Makefile.am): Likewise.
42681         * modules/timespec (Makefile.am): Likewise.
42682         * modules/tmpfile-safer (Makefile.am): Likewise.
42683         * modules/trim (Makefile.am): Likewise.
42684         * modules/unistd-safer (Makefile.am): Likewise.
42685         * modules/unlinkdir (Makefile.am): Likewise.
42686         * modules/unlocked-io (Makefile.am): Likewise.
42687         * modules/userspec (Makefile.am): Likewise.
42688         * modules/utime (Makefile.am): Likewise.
42689         * modules/utimecmp (Makefile.am): Likewise.
42690         * modules/utimens (Makefile.am): Likewise.
42691         * modules/vasnprintf (Makefile.am): Likewise.
42692         * modules/vasprintf (Makefile.am): Likewise.
42693         * modules/vsnprintf (Makefile.am): Likewise.
42694         * modules/xalloc (Makefile.am): Likewise.
42695         * modules/xgetcwd (Makefile.am): Likewise.
42696         * modules/xnanosleep (Makefile.am): Likewise.
42697         * modules/xreadlink (Makefile.am): Likewise.
42698         * modules/xstrtod (Makefile.am): Likewise.
42699         * modules/xstrtol (Makefile.am): Likewise.
42700         * modules/xstrtold (Makefile.am): Likewise.
42701         * modules/yesno (Makefile.am): Likewise.
42702         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42703
42704 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42705
42706         * modules/error (Makefile.am): Distribute files through
42707         EXTRA_DIST, not lib_SOURCES.
42708
42709 2006-10-12  Eric Blake  <ebb9@byu.net>
42710
42711         * modules/error (Makefile.am): Distribute files in /lib.
42712         * modules/obstack (Makefile.am): Likewise.
42713
42714 2006-10-12  Bruno Haible  <bruno@clisp.org>
42715
42716         * modules/acl (Makefile.am): Distribute all files in lib/ through
42717         EXTRA_DIST.
42718         * modules/arcfour (Makefile.am): Likewise.
42719         * modules/arctwo (Makefile.am): Likewise.
42720         * modules/argmatch (Makefile.am): Likewise.
42721         * modules/argz (Makefile.am): Likewise.
42722         * modules/atexit (Makefile.am): Likewise.
42723         * modules/backupfile (Makefile.am): Likewise.
42724         * modules/c-strtod (Makefile.am): Likewise.
42725         * modules/c-strtold (Makefile.am): Likewise.
42726         * modules/calloc (Makefile.am): Likewise.
42727         * modules/canon-host (Makefile.am): Likewise.
42728         * modules/canonicalize (Makefile.am): Likewise.
42729         * modules/chdir-long (Makefile.am): Likewise.
42730         * modules/chdir-safer (Makefile.am): Likewise.
42731         * modules/check-version (Makefile.am): Likewise.
42732         * modules/chown (Makefile.am): Likewise.
42733         * modules/cloexec (Makefile.am): Likewise.
42734         * modules/close-stream (Makefile.am): Likewise.
42735         * modules/closeout (Makefile.am): Likewise.
42736         * modules/crc (Makefile.am): Likewise.
42737         * modules/cycle-check (Makefile.am): Likewise.
42738         * modules/des (Makefile.am): Likewise.
42739         * modules/dirfd (Makefile.am): Likewise.
42740         * modules/dirname (Makefile.am): Likewise.
42741         * modules/dup2 (Makefile.am): Likewise.
42742         * modules/euidaccess (Makefile.am): Likewise.
42743         * modules/exclude (Makefile.am): Likewise.
42744         * modules/exitfail (Makefile.am): Likewise.
42745         * modules/fcntl-safer (Makefile.am): Likewise.
42746         * modules/file-type (Makefile.am): Likewise.
42747         * modules/fileblocks (Makefile.am): Likewise.
42748         * modules/filemode (Makefile.am): Likewise.
42749         * modules/filenamecat (Makefile.am): Likewise.
42750         * modules/fnmatch (Makefile.am): Likewise.
42751         * modules/fopen-safer (Makefile.am): Likewise.
42752         * modules/fpending (Makefile.am): Likewise.
42753         * modules/fprintftime (Makefile.am): Likewise.
42754         * modules/free (Makefile.am): Likewise.
42755         * modules/fsusage (Makefile.am): Likewise.
42756         * modules/ftruncate (Makefile.am): Likewise.
42757         * modules/fts (Makefile.am): Likewise.
42758         * modules/gc (Makefile.am): Likewise.
42759         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42760         * modules/getaddrinfo (Makefile.am): Likewise.
42761         * modules/getcwd (Makefile.am): Likewise.
42762         * modules/getdelim (Makefile.am): Likewise.
42763         * modules/getdomainname (Makefile.am): Likewise.
42764         * modules/getgroups (Makefile.am): Likewise.
42765         * modules/gethostname (Makefile.am): Likewise.
42766         * modules/gethrxtime (Makefile.am): Likewise.
42767         * modules/getline (Makefile.am): Likewise.
42768         * modules/getloadavg (Makefile.am): Likewise.
42769         * modules/getlogin_r (Makefile.am): Likewise.
42770         * modules/getopt (Makefile.am): Likewise.
42771         * modules/getpass (Makefile.am): Likewise.
42772         * modules/getpass-gnu (Makefile.am): Likewise.
42773         * modules/getsubopt (Makefile.am): Likewise.
42774         * modules/gettime (Makefile.am): Likewise.
42775         * modules/gettimeofday (Makefile.am): Likewise.
42776         * modules/getugroups (Makefile.am): Likewise.
42777         * modules/getusershell (Makefile.am): Likewise.
42778         * modules/glob (Makefile.am): Likewise.
42779         * modules/group-member (Makefile.am): Likewise.
42780         * modules/hard-locale (Makefile.am): Likewise.
42781         * modules/hash (Makefile.am): Likewise.
42782         * modules/hmac-md5 (Makefile.am): Likewise.
42783         * modules/hmac-sha1 (Makefile.am): Likewise.
42784         * modules/human (Makefile.am): Likewise.
42785         * modules/idcache (Makefile.am): Likewise.
42786         * modules/imaxabs (Makefile.am): Likewise.
42787         * modules/imaxdiv (Makefile.am): Likewise.
42788         * modules/inet_ntop (Makefile.am): Likewise.
42789         * modules/inet_pton (Makefile.am): Likewise.
42790         * modules/inttostr (Makefile.am): Likewise.
42791         * modules/isapipe (Makefile.am): Likewise.
42792         * modules/lchown (Makefile.am): Likewise.
42793         * modules/long-options (Makefile.am): Likewise.
42794         * modules/lstat (Makefile.am): Likewise.
42795         * modules/malloc (Makefile.am): Likewise.
42796         * modules/mathl (Makefile.am): Likewise.
42797         * modules/mbchar (Makefile.am): Likewise.
42798         * modules/md2 (Makefile.am): Likewise.
42799         * modules/md4 (Makefile.am): Likewise.
42800         * modules/md5 (Makefile.am): Likewise.
42801         * modules/memcasecmp (Makefile.am): Likewise.
42802         * modules/memchr (Makefile.am): Likewise.
42803         * modules/memcmp (Makefile.am): Likewise.
42804         * modules/memcoll (Makefile.am): Likewise.
42805         * modules/memcpy (Makefile.am): Likewise.
42806         * modules/memmem (Makefile.am): Likewise.
42807         * modules/memmove (Makefile.am): Likewise.
42808         * modules/mempcpy (Makefile.am): Likewise.
42809         * modules/memrchr (Makefile.am): Likewise.
42810         * modules/memset (Makefile.am): Likewise.
42811         * modules/memxor (Makefile.am): Likewise.
42812         * modules/mkancesdirs (Makefile.am): Likewise.
42813         * modules/mkdir (Makefile.am): Likewise.
42814         * modules/mkdir-p (Makefile.am): Likewise.
42815         * modules/mkdtemp (Makefile.am): Likewise.
42816         * modules/mkstemp (Makefile.am): Likewise.
42817         * modules/mktime (Makefile.am): Likewise.
42818         * modules/modechange (Makefile.am): Likewise.
42819         * modules/mountlist (Makefile.am): Likewise.
42820         * modules/nanosleep (Makefile.am): Likewise.
42821         * modules/openat (Makefile.am): Likewise.
42822         * modules/pagealign_alloc (Makefile.am): Likewise.
42823         * modules/physmem (Makefile.am): Likewise.
42824         * modules/poll (Makefile.am): Likewise.
42825         * modules/posixtm (Makefile.am): Likewise.
42826         * modules/posixver (Makefile.am): Likewise.
42827         * modules/putenv (Makefile.am): Likewise.
42828         * modules/quote (Makefile.am): Likewise.
42829         * modules/quotearg (Makefile.am): Likewise.
42830         * modules/raise (Makefile.am): Likewise.
42831         * modules/read-file (Makefile.am): Likewise.
42832         * modules/readline (Makefile.am): Likewise.
42833         * modules/readlink (Makefile.am): Likewise.
42834         * modules/readtokens (Makefile.am): Likewise.
42835         * modules/readutmp (Makefile.am): Likewise.
42836         * modules/realloc (Makefile.am): Likewise.
42837         * modules/regex (Makefile.am): Likewise.
42838         * modules/rename (Makefile.am): Likewise.
42839         * modules/rename-dest-slash (Makefile.am): Likewise.
42840         * modules/rijndael (Makefile.am): Likewise.
42841         * modules/rmdir (Makefile.am): Likewise.
42842         * modules/rpmatch (Makefile.am): Likewise.
42843         * modules/safe-read (Makefile.am): Likewise.
42844         * modules/safe-write (Makefile.am): Likewise.
42845         * modules/same (Makefile.am): Likewise.
42846         * modules/save-cwd (Makefile.am): Likewise.
42847         * modules/savedir (Makefile.am): Likewise.
42848         * modules/setenv (Makefile.am): Likewise.
42849         * modules/settime (Makefile.am): Likewise.
42850         * modules/sha1 (Makefile.am): Likewise.
42851         * modules/sig2str (Makefile.am): Likewise.
42852         * modules/snprintf (Makefile.am): Likewise.
42853         * modules/stdlib-safer (Makefile.am): Likewise.
42854         * modules/stpcpy (Makefile.am): Likewise.
42855         * modules/stpncpy (Makefile.am): Likewise.
42856         * modules/strcase (Makefile.am): Likewise.
42857         * modules/strcasestr (Makefile.am): Likewise.
42858         * modules/strchrnul (Makefile.am): Likewise.
42859         * modules/strcspn (Makefile.am): Likewise.
42860         * modules/strdup (Makefile.am): Likewise.
42861         * modules/strerror (Makefile.am): Likewise.
42862         * modules/strftime (Makefile.am): Likewise.
42863         * modules/strndup (Makefile.am): Likewise.
42864         * modules/strnlen (Makefile.am): Likewise.
42865         * modules/strpbrk (Makefile.am): Likewise.
42866         * modules/strsep (Makefile.am): Likewise.
42867         * modules/strstr (Makefile.am): Likewise.
42868         * modules/strtod (Makefile.am): Likewise.
42869         * modules/strtoimax (Makefile.am): Likewise.
42870         * modules/strtok_r (Makefile.am): Likewise.
42871         * modules/strtol (Makefile.am): Likewise.
42872         * modules/strtoll (Makefile.am): Likewise.
42873         * modules/strtoul (Makefile.am): Likewise.
42874         * modules/strtoull (Makefile.am): Likewise.
42875         * modules/strtoumax (Makefile.am): Likewise.
42876         * modules/strverscmp (Makefile.am): Likewise.
42877         * modules/time_r (Makefile.am): Likewise.
42878         * modules/timegm (Makefile.am): Likewise.
42879         * modules/tmpfile-safer (Makefile.am): Likewise.
42880         * modules/unistd-safer (Makefile.am): Likewise.
42881         * modules/unlinkdir (Makefile.am): Likewise.
42882         * modules/userspec (Makefile.am): Likewise.
42883         * modules/utime (Makefile.am): Likewise.
42884         * modules/utimecmp (Makefile.am): Likewise.
42885         * modules/utimens (Makefile.am): Likewise.
42886         * modules/vasnprintf (Makefile.am): Likewise.
42887         * modules/vasprintf (Makefile.am): Likewise.
42888         * modules/vsnprintf (Makefile.am): Likewise.
42889         * modules/xalloc (Makefile.am): Likewise.
42890         * modules/xgetcwd (Makefile.am): Likewise.
42891         * modules/xnanosleep (Makefile.am): Likewise.
42892         * modules/xreadlink (Makefile.am): Likewise.
42893         * modules/xstrtod (Makefile.am): Likewise.
42894         * modules/xstrtol (Makefile.am): Likewise.
42895         * modules/xstrtold (Makefile.am): Likewise.
42896         * modules/yesno (Makefile.am): Likewise.
42897
42898 2006-10-12  Jim Meyering  <jim@meyering.net>
42899
42900         * m4/getloadavg.m4: Revert the change below.
42901
42902         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42903         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42904         fail with a symlink, which is what coreutils' ./bootstrap now
42905         creates by default.
42906
42907 2006-10-12  Bruno Haible  <bruno@clisp.org>
42908
42909         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42910         mingw.
42911         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42912         MSVC and mingw explicitly.
42913
42914 2006-10-11  Simon Josefsson  <jas@extundo.com>
42915             Bruno Haible  <bruno@clisp.org>
42916
42917         Add support for multiple gnulib-tool invocations in the scope of a
42918         single configure.ac file.
42919         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42920         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42921         with the same contents as the _LIBADD variable.
42922         (func_emit_initmacro_start, func_emit_initmacro_end,
42923         func_emit_initmacro_done): New functions.
42924         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42925         gl_LIBOBJS and gl_LTLIBOBJS.
42926
42927 2006-10-11  Bruno Haible  <bruno@clisp.org>
42928
42929         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42930         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42931         autoreconf. Instead, invoke autopoint explicitly but move back the
42932         *.m4 files from gnulib.
42933
42934 2006-10-11  Bruno Haible  <bruno@clisp.org>
42935
42936         * gnulib-tool (func_usage): Make module names after --create-testdir
42937         optional.
42938         (func_create_testdir): If no module was specified, use nearly all
42939         modules.
42940
42941 2006-10-12  Jim Meyering  <jim@meyering.net>
42942
42943         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42944         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42945         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42946         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42947         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42948         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42949         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42950         (fts_set_stat_required): New function.
42951         (fts_open): Defer the calls to fts_stat, if possible or requested.
42952         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42953         into fts_stat itself.
42954         (fts_read): Perform any required (deferred) fts_stat call.
42955         (fts_build): Likewise, for the directory we're about to open and read.
42956         In the readdir loop, carefully decide whether each entry will require
42957         an eventual call to fts_stat, using dirent.d_type info if available.
42958         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42959         a command line argument into this function.  Update all callers.
42960         Map a return value of FTS_DOT to FTS_D for a command line argument.
42961         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42962         Thanks to Miklos Szeredi for his tenacity and for the initial
42963         bug report about "find" failing on a FUSE-based file system.
42964
42965         * lib/fts.c (fts_open): Use consistent indentation.
42966
42967 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42968
42969         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42970         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42971         reported by Jim Meyering.  All uses of cache variables renamed
42972         to match Autoconf's.
42973         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42974         the other one.
42975
42976         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42977         Fix misspelling in diagnostic.
42978
42979 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42980
42981         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42982         defined.  Problem reported by Matthew Woehlke.
42983
42984         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42985         Add support for Tandem NonStop R series.
42986         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42987         Use new macro.
42988
42989         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42990         (has_trailing_slash): Omit size arg; all callers changed.
42991         Omit 'inline', since it doesn't help performance and we'd
42992         need to configure it.
42993         Don't count //, ///, etc. as having a trailing slash.
42994         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42995         (rpl_rename_dest_slash): On failure, use rename's errno rather
42996         than (in some cases) an incorrect or junk errno.
42997         Simplify code by removing need to compute length; this does
42998         cause it to make two passes instead of one over the file name,
42999         but it's worth it.
43000
43001         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43002         change, since Autoconf's version may no longer be appropriate now
43003         that we are using CVS Autoconf's version.  Add support for Tandem.
43004
43005 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43006             Bruno Haible  <bruno@clisp.org>
43007
43008         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43009         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43010         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43011         gl_AC_TYPE_LONG_LONG.
43012
43013         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43014         instead of HAVE_LONG_LONG.
43015         * lib/printf-args.c (printf_fetchargs): Likewise.
43016         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43017         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43018         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43019         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43020         gl_AC_TYPE_LONG_LONG.
43021
43022 2006-10-11  Bruno Haible  <bruno@clisp.org>
43023
43024         * m4/longlong.m4: Add comments.
43025         * m4/ulonglong.m4: Likewise.
43026
43027 2006-10-10  Bruno Haible  <bruno@clisp.org>
43028
43029         Make it possible to #define stpcpy, strdup to aliases.
43030         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43031         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43032
43033 2006-10-10  Bruno Haible  <bruno@clisp.org>
43034
43035         Make it possible to #define gcd to an alias.
43036         * lib/gcd.c: Include config.h.
43037
43038 2006-10-10  Bruno Haible  <bruno@clisp.org>
43039
43040         Make it possible to #define c_isascii to an alias.
43041         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43042         defined. Undefine the macros before defining them, to avoid gcc
43043         warnings.
43044         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43045         define NO_C_CTYPE_MACROS early.
43046
43047 2006-10-10  Bruno Haible  <bruno@clisp.org>
43048
43049         Make it possible to #define set_program_name to an alias.
43050         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43051         ENABLE_RELOCATABLE early.
43052
43053 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43054
43055         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43056         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43057         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43058         More generally, don't assume that 64-bit signed int is available
43059         if unsigned int is, and vice versa.
43060         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43061         unsigned symbols, not on their signed counterparts.
43062         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43063         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43064         (UINT64_C, UINTMAX_C):
43065         Likewise.
43066         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43067         unsigned counterparts.
43068         (Have_long_long, Unsigned): New macros.
43069         (Int): Renamed from INT.
43070         (strtoimax): Use the new macros.
43071         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43072         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43073         * modules/inttypes (inttypes.h): Substitute
43074         HAVE_UNSIGNED_LONG_LONG_INT.
43075         * modules/stdint (stdint.h): Likewise.
43076         (Files): Add m4/ulonglong.m4.
43077
43078 2006-10-10  Bruno Haible  <bruno@clisp.org>
43079
43080         Fix a gcc -Wshadow warning.
43081         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43082         to 'bucket'.
43083         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43084         gl_linked_indexof_from_to): Likewise.
43085         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43086         Likewise.
43087         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43088         Likewise.
43089         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43090         Reported by Eric Blake.
43091
43092 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43093
43094         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43095         for NetBSD.  Problem reported by Bruno Haible.
43096
43097 2006-10-09  Jim Meyering  <jim@meyering.net>
43098
43099         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43100         Patch from Bruno Haible.
43101
43102 2006-10-09  Jim Meyering  <jim@meyering.net>
43103
43104         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43105         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43106         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43107
43108 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43109
43110         Don't include <config.h> twice; this doesn't work in some cases,
43111         e.g., when config.h has "#define intmax_t long long int" and
43112         we include <config.h>, <inttypes.h>, <config.h> in that order.
43113         Problem reported by Matthew Woehlke in:
43114         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43115         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43116         * lib/fts-cycle.c: Don't include config.h.
43117         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43118         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43119         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43120         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43121         inttypes.h.
43122         * lib/xstrtoumax.c: Likewise.
43123         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43124         __strtol and the like, so that this module is more like its siblings.
43125         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43126         Remove; no longer needed now that we assume gnulib inttypes.h.
43127
43128 2006-10-08  Bruno Haible  <bruno@clisp.org>
43129
43130         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43131         option.
43132
43133 2006-10-07  Jim Meyering  <jim@meyering.net>
43134
43135         * modules/inttypes (inttypes.h): Revert what seems to have been
43136         an inadvertent part of today's change: use "|", not "/" in the
43137         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43138
43139 2006-10-07  Bruno Haible  <bruno@clisp.org>
43140
43141         * modules/sublist: New file.
43142
43143 2006-10-07  Bruno Haible  <bruno@clisp.org>
43144
43145         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43146         * modules/argz (argz.h): Likewise.
43147         * modules/arpa_inet (arpa/inet.h): Likewise.
43148         * modules/byteswap (byteswap.h): Likewise.
43149         * modules/configmake (configmake.h): Likewise.
43150         * modules/fcntl (fcntl.h): Likewise.
43151         * modules/fnmatch (fnmatch.h): Likewise.
43152         * modules/getopt (getopt.h): Likewise.
43153         * modules/glob (glob.h): Likewise.
43154         * modules/inttypes (inttypes.h): Likewise.
43155         * modules/netinet_in (netinet/in.h): Likewise.
43156         * modules/poll (poll.h): Likewise.
43157         * modules/stdbool (stdbool.h): Likewise.
43158         * modules/stdint (stdint.h): Likewise.
43159         * modules/sys_select (sys/select.h): Likewise.
43160         * modules/sys_socket (sys/socket.h): Likewise.
43161         * modules/sys_stat (sys/stat.h): Likewise.
43162         * modules/sysexits (sysexits.h): Likewise.
43163         * modules/unistd (unistd.h): Likewise.
43164         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43165         Add a "DO NOT EDIT" comment to the generated file.
43166         (func_import): Likewise for gnulib-comp.m4.
43167
43168 2006-10-07  Bruno Haible  <bruno@clisp.org>
43169
43170         * lib/gl_sublist.h: New file.
43171         * lib/gl_sublist.c: New file.
43172
43173 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43174
43175         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43176         name (relative to the original working directory) and the file
43177         name component (relative to the temporary working directory).  All
43178         callers changed.
43179         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43180         * lib/mkdir-p.c (make_dir_parents): Likewise.
43181         * lib/mkdir-p.h (make_dir_parents): Likewise.
43182
43183 2006-10-06  Eric Blake  <ebb9@byu.net>
43184
43185         Define several macros for use by the clean-temp module.
43186         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43187         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43188         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43189
43190         * lib/clean-temp.h (close_stream_temp): New declaration.
43191         * lib/clean-temp.c (includes): Pull in headers according to what
43192         other modules are in use.
43193         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43194
43195 2006-10-06  Bruno Haible  <bruno@clisp.org>
43196
43197         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43198         instead of fopen, fwriteerror.
43199
43200 2006-10-06  Bruno Haible  <bruno@clisp.org>
43201
43202         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43203         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43204         int.
43205         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43206         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43207         Return an error indicator.
43208         Suggested by Eric Blake.
43209
43210 2006-10-06  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43213         Reported by Eric Blake.
43214
43215 2006-10-06  Bruno Haible  <bruno@clisp.org>
43216
43217         * modules/closeout (Description): Mention stderr too.
43218
43219 2006-10-06  Bruno Haible  <bruno@clisp.org>
43220         and Paul Eggert  <eggert@cs.ucla.edu>
43221
43222         * lib/closeout.c (close_stdout): Also close stderr.
43223         * lib/closeout.h: Update comment.
43224
43225 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43226
43227         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43228         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43229         * lib/dirchownmod.c: Include lchown.h.
43230         * lib/lchown.c: Don't include files that lchown.h now includes.
43231         Don't declare chown, since lchown.h now does that.
43232         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43233         (lchown): Define to rpl_chown if lchown is declared but
43234         does not exist.  Declare using a prototype if lchown is not
43235         declared.  Add a copyright notice.
43236         * lib/mkstemp.h: Include <unistd.h>.
43237         * lib/openat.c: Include lchown.h.
43238
43239         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43240         we now test for that separately.
43241         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43242         rather than O_NOFOLLOW, when testing whether it's possible to
43243         avoid a race condition reliably.
43244         * lib/savewd.c (savewd_chdir): Likewise.
43245
43246         Remove macros that are no longer needed now that stdint.h is
43247         reliable.
43248         * lib/fsusage.c (UINTMAX_MAX): Remove.
43249         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43250         * lib/utimecmp.c (SIZE_MAX): Remove.
43251
43252         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43253
43254         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43255         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43256         O_NOATIME works.
43257
43258 2006-10-05  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/gl_list.h (gl_sortedlist_search_from_to,
43261         gl_sortedlist_indexof_from_to): New declarations.
43262         (gl_list_implementation): New fields sortedlist_search_from_to,
43263         sortedlist_indexof_from_to.
43264         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43265         inline functions.
43266         * lib/gl_list.c (gl_sortedlist_search_from_to,
43267         gl_sortedlist_indexof_from_to): New functions.
43268         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43269         function.
43270         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43271         (gl_array_sortedlist_search_from_to): New function.
43272         (gl_array_list_implementation): Update.
43273         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43274         function.
43275         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43276         (gl_carray_sortedlist_search_from_to): New function.
43277         (gl_carray_list_implementation): Update.
43278         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43279         gl_linked_sortedlist_indexof_from_to): New functions.
43280         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43281         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43282         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43283         gl_tree_sortedlist_indexof_from_to): New functions.
43284         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43285         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43286         Update.
43287         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43288         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43289         Update.
43290
43291 2006-10-05  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43294         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43295         (struct gl_list_implementation): Add fields search_from_to,
43296         indexof_from_to. Remove fields search, indexof.
43297         (gl_list_search): Use the search_from_to method.
43298         (gl_list_search_from, gl_list_search_from_to): New functions.
43299         (gl_list_indexof): Use the indexof_from_to method.
43300         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43301         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43302         (gl_list_search_from, gl_list_search_from_to): New functions.
43303         (gl_list_indexof): Use the indexof_from_to method.
43304         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43305         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43306         gl_array_indexof. Add start_index, end_index arguments.
43307         (gl_array_search_from_to): Renamed from gl_array_search. Add
43308         start_index, end_index arguments.
43309         (gl_array_remove, gl_array_list_implementation): Update.
43310         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43311         gl_carray_indexof. Add start_index, end_index arguments.
43312         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43313         start_index, end_index arguments.
43314         (gl_carray_remove, gl_carray_list_implementation): Update.
43315         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43316         gl_linked_search. Add start_index, end_index arguments.
43317         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43318         start_index, end_index arguments.
43319         (gl_linked_remove): Update.
43320         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43321         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43322         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43323         field to 'size_t'.
43324         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43325         gl_tree_search. Add start_index, end_index arguments.
43326         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43327         start_index, end_index arguments.
43328         (gl_tree_remove): Update.
43329         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43330         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43331         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43332         function.
43333         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43334         gl_tree_search. Add start_index, end_index arguments.
43335         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43336         start_index, end_index arguments.
43337         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43338         Update.
43339         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43340
43341 2006-10-05  Bruno Haible  <bruno@clisp.org>
43342
43343         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43344
43345         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43346         fwriteerror_temp): New declarations.
43347         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43348         (descriptors): New variable.
43349         (cleanup): First, close the descriptors.
43350         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43351         fclose_temp, fwriteerror_temp): New functions.
43352
43353 2006-10-04  Jim Meyering  <jim@meyering.net>
43354
43355         * lib/fts.c (fts_open): Tiny comment change.
43356
43357 2006-10-04  Bruno Haible  <bruno@clisp.org>
43358
43359         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43360         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43361         gl_LOCK_BODY.
43362         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43363         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43364         gl_LOCK_EARLY_BODY.
43365         (gl_LOCK): Require gl_LOCK_BODY.
43366
43367 2006-10-04  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43370         (gl_oset_search_atleast): New declaration.
43371         (struct gl_oset_implementation): Add field 'search_atleast'.
43372         (gl_oset_search_atleast): New inline function.
43373         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43374         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43375         (gl_array_oset_implementation): Update.
43376         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43377         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43378         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43379
43380 2006-10-04  Bruno Haible  <bruno@clisp.org>
43381
43382         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43383
43384 2006-10-03  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43387         from gl_avltreehash_list_implementation.
43388
43389 2006-10-03  Bruno Haible  <bruno@clisp.org>
43390
43391         * lib/gl_oset.c (gl_oset_add): Fix return type.
43392
43393 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43394
43395         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43396
43397 2006-10-02  Eric Blake  <ebb9@byu.net>
43398
43399         * modules/strnlen (Depends-on): Add extensions.
43400
43401 2006-10-02  Eric Blake  <ebb9@byu.net>
43402
43403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43404         definition in 2.60+.
43405
43406 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43407
43408         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43409         checks.
43410
43411 2006-10-02  Bruno Haible  <bruno@clisp.org>
43412
43413         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43414         to the AUTOMAKE_OPTIONS.
43415         Reported by Jim Meyering.
43416
43417 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43418
43419         Work around bug in Solaris 10 /proc file system:
43420         /proc/self/fd/NNN/.. isn't the parent directory of
43421         the directory whose file descriptor is NNN.  This needs to
43422         be worked around at run time, not compile time, since a
43423         program might be built on Solaris 8, where things work, and
43424         run on Solaris 10.
43425         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43426         to use the following interface instead:
43427         (OPENAT_BUFFER_SIZE): New macro.
43428         (openat_proc_name): New function.
43429         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43430         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43431         Likewise.
43432         * lib/openat-proc.c: New file.
43433         * modules/openat (Files): Add lib/openat-proc.c.
43434         (Depends-on): Add same-inode, stdbool.
43435         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43436
43437 2006-09-29  Bruno Haible  <bruno@clisp.org>
43438
43439         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43440         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43441         argument. Set stdout_closed before testing for ferror, not after.
43442         (fwriteerror, fwriteerror_no_ebadf): New functions.
43443
43444 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43445
43446         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43447
43448 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43449
43450         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43451         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43452
43453 2006-09-28  Jim Meyering  <jim@meyering.net>
43454
43455         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43456         Include <unistd.h>.
43457
43458 2006-09-28  Bruno Haible  <bruno@clisp.org>
43459
43460         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43461         * modules/linkedhash-list (Depends-on): Likewise.
43462         * modules/rbtreehash-list (Depends-on): Likewise.
43463
43464 2006-09-28  Bruno Haible  <bruno@clisp.org>
43465
43466         * lib/strndup.h: Simplify the redefinition of strndup.
43467         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43468         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43469
43470 2006-09-28  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43473         * lib/gl_linkedhash_list.c: Likewise.
43474         * lib/gl_rbtreehash_list.c: Likewise.
43475
43476 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43477
43478         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43479         getaddrinfo.
43480
43481         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43482         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43483         it causes <stdio_ext.h> to cause a compile-time error.
43484         Problem reported by Nelson H. F. Beebe.
43485         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43486         of HAVE_DECL___PENDING.
43487
43488         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43489         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43490         declaration.
43491
43492 2006-09-27  Jim Meyering  <jim@meyering.net>
43493
43494         This file could end up with a definition for a function
43495         named __strndup, rather than rpl_strndup on a system with
43496         incomplete weak_alias support.
43497         * lib/strndup.c (strndup): Rename from __strndup.
43498         Remove #defines that used to map __strndup to strndup.
43499         Don't use K&R prototypes.
43500         Remove LIBC-related code, since this file is not sync'd with glibc.
43501         * lib/strndup.h: Revamp, accordingly.
43502         * m4/strndup.m4: Modernize.
43503
43504 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43505
43506         * modules/savewd (Depends-on): Add 'raise'.
43507         * lib/savewd.c: Include <signal.h>, for 'raise'.
43508
43509 2006-09-26  Jim Meyering  <jim@meyering.net>
43510
43511         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43512         when we detect Darwin 8.7.0's acl_get_file bug.
43513         Rearrange to perform the new (below) run-test while $LIBS
43514         contains any acl-related library.  Set USE_ACL at the end.
43515         (gl_ACL_GET_FILE): New function.
43516
43517 2006-09-26  Eric Blake  <ebb9@byu.net>
43518
43519         * lib/verror.c: Include <config.h> unconditionally.
43520
43521 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43522
43523         * modules/clock-time (Maintainer): Add self.
43524         * modules/getlogin_r (Depends-on): Add extensions.
43525
43526 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43527
43528         * modules/clock-time: New module.
43529         * modules/nanosleep (Depends-on): Add clock-time.
43530         * modules/gethrxtime (Depends-on): Likewise.
43531         * modules/gettime (Depends-on): Likewise.
43532         * modules/settime (Depends-on): Likewise.
43533
43534         * modules/fts-lgpl: Depend on openat.
43535         * modules/mkancesdirs: Depend on savewd.
43536         * modules/mkdir-p: Likewise.
43537
43538 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43539
43540         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43541
43542         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43543         `gl_have_arbitrary_file_name_length_limit' to
43544         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43545         actually works between configure runs.
43546
43547 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43548             Bruno Haible  <bruno@clisp.org>
43549
43550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43551
43552 2006-09-25  Jim Meyering  <jim@meyering.net>
43553
43554         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43555         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43556
43557 2006-09-25  Eric Blake  <ebb9@byu.net>
43558
43559         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43560         exec's in 2006-09-18 patch when shuffling fds.
43561
43562 2006-09-25  Bruno Haible  <bruno@clisp.org>
43563
43564         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43565         Reported by Jim Meyering.
43566
43567 2006-09-24  Jim Meyering  <jim@meyering.net>
43568
43569         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43570         compare a pointer against a literal "0".  That caused failures with
43571         at least HP-UX's hpcc.
43572
43573 2006-09-22  Simon Josefsson  <jas@extundo.com>
43574
43575         * modules/gc-sha1:
43576         * modules/gc-md4:
43577         * modules/gc-hmac-sha1:
43578         * modules/gc-hmac-md5:
43579         * modules/gc-des:
43580         * modules/gc-arcfour: Distribute more files.
43581
43582 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43583
43584         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43585         (gl_linked_iterator_from_to): Initialize struct completely.
43586         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43587         (gl_tree_iterator_from_to): Likewise
43588         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43589         * lib/gl_array_list.c [lint] (gl_array_iterator)
43590         (gl_array_iterator_from_to): Likewise.
43591         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43592         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43593         (gl_carray_iterator_from_to): Likewise.
43594
43595         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43596         * lib/md4.c (md4_process_block): Remove unused variable.
43597         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43598         parentheses for clarity.
43599
43600 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43601
43602         * modules/bison-i18n (Depends-on): Add gettext.
43603
43604 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43605
43606         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43607         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43608         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43609         also add missing comma that caused broken test.
43610         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43611         stdlib.h, for `abort'.
43612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43613         variables.
43614         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43615         include unistd.h if present, for `rmdir'.
43616         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43617         variables.
43618         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43619         in the process include standard headers for prototypes.
43620         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43621         gets declared on GNU/Linux.
43622         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43623         unistd.h, for `rmdir'.
43624         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43625
43626         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43627         always true.
43628         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43629
43630         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43631
43632 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43633
43634         * gnulib-tool (func_version): Create output all at once.  This
43635         may help avoid triggering unnecessary SIGPIPEs, and at any
43636         rate it doesn't hurt.
43637
43638 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43639             Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43642         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43643         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43644
43645         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43646         (gl_FUNC_VASPRINTF): Invoke it.
43647
43648 2006-09-22  Bruno Haible  <bruno@clisp.org>
43649
43650         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43651         getloadavg.c as first argument.
43652
43653 2006-09-22  Bruno Haible  <bruno@clisp.org>
43654
43655         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43656         at the beginning of the gl_INIT macro.
43657         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43658         gl_GETLOADAVG.
43659
43660 2006-09-22  Bruno Haible  <bruno@clisp.org>
43661
43662         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43663         module.
43664         Suggested by Ralf Wildenhues.
43665
43666 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43667
43668         Import this patch from libc:
43669
43670         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43671
43672         * lib/regex_internal.c (re_string_reconstruct): Handle
43673         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43674         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43675         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43676         re_string_context_at.
43677
43678         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43679         now requires it.
43680         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43681         gl_REGEX now does it for us.
43682         (gl_REGEX): Add test taken from
43683         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43684
43685         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43686         Check that large offsets work.  Modernize Autoconf usages.
43687         Prefer "yes" to mean a good thing rather than a bad.
43688         Don't put "#define mkstemp" in config.h, as this might interfere
43689         with standard system headers that "#define mkstemp mkstemp64".
43690
43691         * modules/mkstemp (Depends-on): Add extensions, so that
43692         mkstemp is visible on some platforms.
43693         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43694         (Include): Change to "mkstemp.h" from <stdlib.h>.
43695         (Files): Add mkstemp.h.
43696
43697         * lib/mkstemp.h: New file, since some standard headers
43698         #define mkstemp.
43699         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43700         Include "mkstemp.h".
43701         Make the _LIBC code resemble glibc original more,
43702         e.g., use K&R style.
43703         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43704         (mkstemp): Remove, since mkstemp.h does this for us.
43705         * lib/stdlib--.h: Include mkstemp.h.
43706
43707         Import this patch from libc:
43708
43709         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43710
43711         * lib/tempname.c (__gen_tempname): Change attempts_min
43712         into a macro.  Use preprocessor to decide how to initialize
43713         attempts [Coverity CID 67].
43714
43715 2006-09-20  Bruno Haible  <bruno@clisp.org>
43716
43717         * lib/mkdtemp.c: Import from libc.
43718         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43719                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43720                 attempts_min into a macro.  Use preprocessor to decide how to
43721                 initialize attempts [Coverity CID 67].
43722         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43723                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43724                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43725
43726 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43727
43728         * gnulib-tool (func_exit): New function, to allow to pass the
43729         exit status portably through the trap.  Use everywhere.
43730         (--help, --version): Signal a write error.
43731         (trap): catch SIGPIPE, for write errors.
43732         Exit at the end of the trap, with the correct exit status.
43733
43734 2006-09-19  Karl Berry  <karl@gnu.org>
43735
43736         * doc/gnulib.texi: note about the license texinfo files.
43737
43738 2006-09-19  Eric Blake  <ebb9@byu.net>
43739
43740         * gnulib-tool: Avoid space-tab.
43741
43742 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43743
43744         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43745         that prevented coreutils 6.1 from building.  Problem reported
43746         by Petter Reinholdtsen.
43747
43748 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43749
43750         * gnulib-tool (avoidlist): Fix typo that broke options like
43751         --avoid=lock that are used by coreutils bootstrap.
43752
43753 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43754
43755         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43756         more systematically.
43757
43758 2006-09-18  Jim Meyering  <jim@meyering.net>
43759
43760         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43761
43762 2006-09-18  Bruno Haible  <bruno@clisp.org>
43763
43764         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43765
43766 2006-09-18  Bruno Haible  <bruno@clisp.org>
43767
43768         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43769         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43770         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43771         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43772         * m4/gettext.m4: Require autoconf >= 2.52.
43773         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43774         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43775         of gl_cv_header_inttypes_h.
43776
43777 2006-09-18  Bruno Haible  <bruno@clisp.org>
43778
43779         * lib/javaversion.c: Include configmake.h.
43780
43781 2006-09-18  Bruno Haible  <bruno@clisp.org>
43782
43783         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43784         avoid that the while loops be executed in a subshell.
43785
43786 2006-09-18  Bruno Haible  <bruno@clisp.org>
43787
43788         * MODULES.html.sh (func_module): Break long lines.
43789         Suggested by Bruce Korb <bkorb@gnu.org>.
43790
43791 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43792
43793         Speed up by a factor of 1.12.
43794         * gnulib-tool (nl): New variable.
43795         (func_import): Rewrite include directive extraction to only read each
43796         directive once.
43797
43798 2006-09-17  Bruno Haible  <bruno@clisp.org>
43799
43800         * modules/javaversion (Makefile.am): Remove DEFS setting.
43801         (Depends-on): Add configmake, for PKGDATADIR definition.
43802
43803 2006-09-17  Bruno Haible  <bruno@clisp.org>
43804
43805         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43806
43807 2006-09-17  Bruno Haible  <bruno@clisp.org>
43808
43809         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43810         (func_modules_transitive_closure, func_modules_add_dummy,
43811         func_modules_to_filelist, func_import, func_create_testdir,
43812         func_create_megatestdir, ...): Use it wherever possible.
43813         Suggested by Ralf Wildenhues.
43814
43815 2006-09-16  Karl Berry  <karl@gnu.org>
43816
43817         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43818         to avoid sectioning errors.
43819         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43820         [ifinfo]: blank line after @center-ed titles.
43821         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43822         Spell FSF address consistently with others.
43823         (These changes approved by rms.)
43824
43825 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43826
43827         Speed up by a factor of 1.61.
43828         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43829         already checked module names again.
43830
43831 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43832
43833         Speed up by a factor of 1.13.
43834         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43835         for new_files, and the input to func_add_or_update.
43836
43837 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43838
43839         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43840         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43841
43842 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43843
43844         * modules/mkancesdirs (Depends-on): Add fcntl.
43845         * modules/savewd: New file.
43846         * MODULES.html.sh (File system functions): Add savewd.
43847
43848         * modules/configmake (Makefile.am): Add support for the
43849         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43850
43851 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43852
43853         * m4/savewd.m4: New file.
43854
43855 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43858         (dirchownmod): New arg FD.  All callers changed.
43859         Use FD rather than opening the directory ourself, as opening is
43860         now the caller's responsibility.
43861         * lib/dirchownmod.h: Likewise.
43862         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43863         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43864         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43865         (test_dir): Remove.
43866         (mkancesdirs): Return length of prefix of FILE that has already
43867         been made, or -2 if there is a child doing the work.  Redo
43868         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43869         ".", and treat ".." specially since it might stray back into
43870         already-created areas.  Use a subprocess if necessary.  New arg
43871         WD; all users changed.  MAKE_DIR function should now return 1
43872         if it creates a directory that is not readable.  Return -2 if
43873         a child process is spun off.
43874         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43875         Adjust signature to match code.
43876         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43877         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43878         all users changed.
43879         * lib/savewd.c, lib/savewd.h: New files.
43880
43881 2006-09-15  Jim Meyering  <jim@meyering.net>
43882
43883         * modules/rename-dest-slash: New module.
43884         * MODULES.html.sh (posix_compat): Add it here.
43885
43886         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43887
43888 2006-09-15  Jim Meyering  <jim@meyering.net>
43889
43890         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43891         file.
43892
43893         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43894
43895 2006-09-15  Jim Meyering  <jim@meyering.net>
43896
43897         * lib/rename-dest-slash.c (has_trailing_slash): Use
43898         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43899         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43900         test before testing whether SRC is a directory.
43901         Suggestions from Bruno Haible.
43902
43903         Avoid a warning about an unused variable.
43904         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43905         into the #ifdef block where it's used.
43906
43907         * lib/rename-dest-slash.c: New file.
43908
43909 2006-09-14  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/allocsa.c: Include <config.h> unconditionally.
43912         * lib/asnprintf.c: Likewise.
43913         * lib/asprintf.c: Likewise.
43914         * lib/c-strcasecmp.c: Likewise.
43915         * lib/c-strcasestr.c: Likewise.
43916         * lib/c-strncasecmp.c: Likewise.
43917         * lib/c-strstr.c: Likewise.
43918         * lib/classpath.c: Likewise.
43919         * lib/clean-temp.c: Likewise.
43920         * lib/concatpath.c: Likewise.
43921         * lib/copy-file.c: Likewise.
43922         * lib/csharpcomp.c: Likewise.
43923         * lib/csharpexec.c: Likewise.
43924         * lib/execute.c: Likewise.
43925         * lib/fatal-signal.c: Likewise.
43926         * lib/findprog.c: Likewise.
43927         * lib/fwriteerror.c: Likewise.
43928         * lib/gl_array_list.c: Likewise.
43929         * lib/gl_array_oset.c: Likewise.
43930         * lib/gl_avltree_list.c: Likewise.
43931         * lib/gl_avltree_oset.c: Likewise.
43932         * lib/gl_avltreehash_list.c: Likewise.
43933         * lib/gl_carray_list.c: Likewise.
43934         * lib/gl_linked_list.c: Likewise.
43935         * lib/gl_linkedhash_list.c: Likewise.
43936         * lib/gl_list.c: Likewise.
43937         * lib/gl_oset.c: Likewise.
43938         * lib/gl_rbtree_list.c: Likewise.
43939         * lib/gl_rbtree_oset.c: Likewise.
43940         * lib/gl_rbtreehash_list.c: Likewise.
43941         * lib/imaxabs.c: Likewise.
43942         * lib/imaxdiv.c: Likewise.
43943         * lib/javacomp.c: Likewise.
43944         * lib/javaexec.c: Likewise.
43945         * lib/javaversion.c: Likewise.
43946         * lib/linebreak.c: Likewise.
43947         * lib/localcharset.c: Likewise.
43948         * lib/lock.c: Likewise.
43949         * lib/mbchar.c: Likewise.
43950         * lib/mbswidth.c: Likewise.
43951         * lib/mkdtemp.c: Likewise.
43952         * lib/pipe.c: Likewise.
43953         * lib/printf-args.c: Likewise.
43954         * lib/printf-parse.c: Likewise.
43955         * lib/progname.c: Likewise.
43956         * lib/progreloc.c: Likewise.
43957         * lib/readlink.c: Likewise.
43958         * lib/sh-quote.c: Likewise.
43959         * lib/stpcpy.c: Likewise.
43960         * lib/stpncpy.c: Likewise.
43961         * lib/strcasecmp.c: Likewise.
43962         * lib/strcasestr.c: Likewise.
43963         * lib/strcspn.c: Likewise.
43964         * lib/striconv.c: Likewise.
43965         * lib/strncasecmp.c: Likewise.
43966         * lib/strnlen1.c: Likewise.
43967         * lib/strstr.c: Likewise.
43968         * lib/strtok_r.c: Likewise.
43969         * lib/tls.c: Likewise.
43970         * lib/tmpdir.c: Likewise.
43971         * lib/unicodeio.c: Likewise.
43972         * lib/unsetenv.c: Likewise.
43973         * lib/vasnprintf.c: Likewise.
43974         * lib/vasprintf.c: Likewise.
43975         * lib/wait-process.c: Likewise.
43976         * lib/xallocsa.c: Likewise.
43977         * lib/xsetenv.c: Likewise.
43978         * lib/xstriconv.c: Likewise.
43979
43980 2006-09-13  Simon Josefsson  <jas@extundo.com>
43981
43982         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43983         that internally, suggested by Ralf Wildenhues
43984         <Ralf.Wildenhues@gmx.de>.
43985
43986 2006-09-13  Simon Josefsson  <jas@extundo.com>
43987
43988         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43989         @LIBOBJS@.
43990         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43991
43992 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43993
43994         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43995         longer worry about uses that don't define HAVE_CONFIG_H.
43996         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43997         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43998         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43999         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44000         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44001         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44002         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44003         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44004         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44005         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44006         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44007         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44008         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44009         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44010         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44011         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44012         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44013         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44014         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44015         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44016         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44017         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44018         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44019         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44020         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44021         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44022         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44023         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44024         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44025         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44026         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44027         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44028         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44029         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44030         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44031         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44032         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44033         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44034         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44035         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44036         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44037         Likewise.
44038
44039 2006-09-13  Eric Blake  <ebb9@byu.net>
44040
44041         * lib/getopt.c: Fix typo in last commit.
44042
44043 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44044
44045         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44046         dgettext.
44047
44048 2006-09-12  Jim Meyering  <jim@meyering.net>
44049
44050         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44051         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44052         Reported by Nelson H. F. Beebe.
44053
44054 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44055
44056         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44057         program_invocation_name and program_invocation_short_name are
44058         initialized.
44059         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44060         and program_invocation_short_name to argp.h, so they are visible
44061         to user programs.
44062         * lib/argp.h: Likewise
44063
44064 2006-09-10  Bruno Haible  <bruno@clisp.org>
44065
44066         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44067         m4/inttypes_h.m4, m4/uintmax_t.m4.
44068
44069 2006-09-10  Bruno Haible  <bruno@clisp.org>
44070
44071         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44072         gl_AC_TYPE_UINTMAX_T.
44073
44074 2006-09-10  Bruno Haible  <bruno@clisp.org>
44075
44076         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44077
44078 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44079
44080         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44081         convention.  Text proposed by Bruno Haible.
44082         (struct argp_option): Document the use of N_() wrappers.
44083
44084         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44085         '\v', and translate the two parts separately, instead of feeding
44086         the whole string to gettext.  This allows to exclude
44087         '\v' from the strings visible to the translator by writing doc
44088         strings as N_("..") "\v" N_("..").
44089
44090 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44091
44092         * config/srclist.txt: Undo latest change; the bug was fixed.
44093
44094 2006-09-09  Bruno Haible  <bruno@clisp.org>
44095
44096         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44097         assignments if building a library without libtool.
44098         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44099         in func_emit_lib_Makefile_am.
44100         (func_import): When building a static library libfoo.a, arrange to
44101         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44102         (func_create_testdir): Likewise.
44103         * modules/gc (configure.ac, Makefile.am): If building statically,
44104         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44105         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44106         * modules/striconv (configure.ac, Makefile.am): Likewise.
44107         Based on a suggestion by Ralf Wildenhues.
44108
44109 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44110
44111         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44112         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44113         Also:
44114
44115         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44116         Add year_2050_test to catch glibc bug 2821
44117         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44118
44119         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44120         Prefer #ifdef to #if.
44121
44122         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44123         Return from 'main' instead of calling 'exit'.
44124
44125 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44126
44127         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44128         returned the maximum time_t value rather than (time_t) -1.
44129         Problem originally reported by William Bardwell
44130         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44131
44132         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44133         Moved to here ...
44134         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44135         ... from here.
44136
44137 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44138
44139         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44140         2821 is fixed.
44141
44142 2006-09-08  Jim Meyering  <jim@meyering.net>
44143
44144         Don't make generated files read-only.  That would bother too many
44145         people.  However, do retain the ability to work when targets are
44146         read-only: remove the destination and temporary files before writing
44147         them (when generated via sed or echo), or by using the -f option for
44148         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44149         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44150         * modules/byteswap, modules/configmake, modules/fcntl:
44151         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44152         * modules/localcharset, modules/netinet_in, modules/poll:
44153         * modules/stdbool, modules/stdint, modules/sys_select:
44154         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44155
44156 2006-09-08  Jim Meyering  <jim@meyering.net>
44157
44158         Avoid new build failure on FreeBSD 6.0.
44159         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44160         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44161         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44162
44163 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44164
44165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44166
44167 2006-09-07  Jim Meyering  <jim@meyering.net>
44168
44169         Fix global typo in last change: use chmod u-w, not chmod u-x.
44170         Spotted by Paul Eggert and Bruce Korb.
44171         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44172         * modules/byteswap, modules/configmake, modules/fcntl:
44173         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44174         * modules/localcharset, modules/netinet_in, modules/poll:
44175         * modules/stdbool, modules/stdint, modules/sys_select:
44176         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44177
44178 2006-09-06  Jim Meyering  <jim@meyering.net>
44179
44180         Make generated files be read-only.
44181         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44182         Ensure that each generated file is now read-only.
44183         * modules/argz: Likewise.
44184         * modules/arpa_inet: Likewise.
44185         * modules/byteswap: Likewise.
44186         * modules/configmake: Likewise.
44187         * modules/fcntl: Likewise.
44188         * modules/fnmatch: Likewise.
44189         * modules/getopt: Likewise.
44190         * modules/glob: Likewise.
44191         * modules/inttypes: Likewise.
44192         * modules/netinet_in: Likewise.
44193         * modules/poll: Likewise.
44194         * modules/stdbool: Likewise.
44195         * modules/stdint: Likewise.
44196         * modules/sys_select: Likewise.
44197         * modules/sys_socket: Likewise.
44198         * modules/sys_stat: Likewise.
44199         * modules/sysexits: Likewise.
44200         * modules/localcharset: Same as above, but continue using temporary
44201         file named "t-$@" (why different?) rather than the "$@-t" used
44202         everywhere else.
44203
44204         * modules/sysexits (Makefile.am): Replace literal occurrences
44205         of "sysexit.h" more readable, and more consistent, "$@".
44206
44207 2006-09-06  Bruno Haible  <bruno@clisp.org>
44208
44209         * modules/striconv: New file.
44210         * modules/xstriconv: New file.
44211         * MODULES.html.sh (Internationalization functions): Add striconv,
44212         xstriconv.
44213
44214 2006-09-06  Bruno Haible  <bruno@clisp.org>
44215
44216         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44217         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44218         not using libtool correctly.
44219
44220 2006-09-06  Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/striconv.h: New file.
44223         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44224         iconvstring.c.
44225         * lib/xstriconv.h: New file.
44226         * lib/xstriconv.c: New file.
44227
44228 2006-09-06  Bruno Haible  <bruno@clisp.org>
44229
44230         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44231         lib_..._LDFLAGS.
44232
44233 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44234
44235         * lib/argz_.h: Sync from Libtool.
44236
44237         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44238                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44239
44240         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44241
44242 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44243
44244         * modules/trim: New file.
44245
44246 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44247
44248         * lib/trim.h: New file.
44249         * lib/trim.c: New file.
44250
44251 2006-09-05  Bruno Haible  <bruno@clisp.org>
44252
44253         * MODULES.html.sh (String handling): Add trim.
44254
44255 2006-09-04  Karl Berry  <karl@gnu.org>
44256
44257         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44258         until next release.
44259
44260 2006-09-03  Bruno Haible  <bruno@clisp.org>
44261
44262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44263         correctly.
44264
44265 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44266
44267         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44268         not gl_GETLOADAVG.  Omit unneeded semicolons.
44269         Problems reported by Ralf Wildenhues in
44270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44271         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44272         at the end, which is the usual gnulib style.
44273
44274         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44275         of doing all the work ourselves.
44276         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44277         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44278
44279 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44280
44281         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44282         Problem reported by Ralf Wildenhues in
44283         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44284
44285         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44286         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44287
44288 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44289
44290         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44291         yesterday's patch by changing test -n to test -z.
44292
44293 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44294
44295         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44296         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44297         the former is now obsolescent.
44298
44299         * modules/chdir-long (Depends-on): Add fcntl.
44300
44301 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44302
44303         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44304         obsolescent, and programs should use gnulib instead.
44305         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44306         but with prefixes changed.
44307
44308 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44309
44310         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44311         or stdbool.h, because they might not exist while configuring.
44312
44313         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44314         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44315         does that for us.
44316         (O_DIRECTORY): Remove.
44317
44318 2006-08-31  Eric Blake  <ebb9@byu.net>
44319
44320         * gnulib-tool: Don't let emacs change spaces to TAB.
44321
44322 2006-08-31  Bruno Haible  <bruno@clisp.org>
44323
44324         * gnulib-tool: When calling func_import more than once, do it in a
44325         subshell.
44326         Reported by Eric Blake <ebb9@byu.net>.
44327
44328 2006-08-31  Bruno Haible  <bruno@clisp.org>
44329
44330         * gnulib-tool (nl): Remove variable.
44331         (sed_transform_lib_file): Use more robust test for config-h module.
44332         (func_import): Fix typo in 2006-08-25 patch.
44333
44334 2006-08-31  Bruno Haible  <bruno@clisp.org>
44335
44336         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44337         specified, augment Makefile.am variables instead of assigning them.
44338
44339 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44340
44341         Work around a bug in both the Linux and SunOS 64-bit kernels:
44342         nanosleep mishandles sleeps for longer than 2**31 seconds.
44343         Problem reported by Frank v Waveren in
44344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44346         Check for nanosleep bug.
44347         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44348
44349 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44350
44351         Work around a bug in both the Linux and SunOS 64-bit kernels:
44352         nanosleep mishandles sleeps for longer than 2**31 seconds.
44353         Problem reported by Frank v Waveren in
44354         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44355         * lib/nanosleep.c (BILLION): New constant.
44356         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44357         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44358         implementation.
44359
44360 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * modules/nanosleep (Depends-on): Add gettime.
44363
44364 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44365         and Simon Josefsson  <jas@extundo.com>
44366         and Oskar Liljeblad  <oskar@osk.mine.nu>
44367
44368         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44369         * gnulib-tool (func_import): New license type 'unmodifiable license
44370         text'.
44371         * modules/fdl: Use it.  Longer description.
44372         * module/gpl, module/lgpl: New files.
44373
44374 2006-08-30  Jim Meyering  <jim@meyering.net>
44375
44376         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44377         shadowing the parameter.
44378
44379 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44380
44381         Sync from Libtool:
44382
44383         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44384
44385         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44386         sharing with gnulib.  Report by Eric Blake.
44387
44388 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44389
44390         * modules/isapipe: New file.
44391         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44392
44393 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44394
44395         * modules/configmake (Makefile.am): Add a comment, and omit
44396         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44397         by Bruno Haible.
44398
44399 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44400
44401         * m4/isapipe.m4: New file.
44402
44403 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44404
44405         * lib/isapipe.c, lib/isapipe.h: New files.
44406
44407 2006-08-29  Jim Meyering  <jim@meyering.net>
44408
44409         * modules/configmake (Makefile.am): Make configmake.h depend on
44410         Makefile.  Otherwise, a stale configmake.h could hang around.
44411
44412 2006-08-29  Eric Blake  <ebb9@byu.net>
44413
44414         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44415         resolution of upstream bug 3044.
44416
44417 2006-08-29  Bruno Haible  <bruno@clisp.org>
44418
44419         * modules/localcharset (Depends-on): Add configmake.
44420         (Makefile.am): Remove setting of LIBDIR through DEFS.
44421
44422 2006-08-29  Bruno Haible  <bruno@clisp.org>
44423
44424         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44425         defined.
44426
44427 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44428
44429         * modules/fcntl: New file.
44430         * modules/chdir-safer (Depends-on): Add fcntl.
44431         * modules/fts: Likewise.
44432         * modules/mkdir-p: Likewise.
44433
44434         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44435         This undoes the most recent change, since we're now addressing the
44436         problem in a different way.
44437
44438         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44439         into output, since the output might be called Makefile.am even
44440         if $makefile_name is something different.
44441         (func_import): Use $makefile_am rather than
44442         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44443         empty.
44444
44445         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44446
44447 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44448
44449         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44450         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44451         recent change to stdint.m4, since we're now addressing the problem in a
44452         different way.
44453
44454 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         * m4/fcntl_h.m4: New file.
44457
44458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * lib/fcntl_.h: New file.
44461         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44462         the fcntl module.
44463         * lib/dirchownmod.c: Likewise.
44464         * lib/fts.c: Likewise.
44465
44466         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44467         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44468         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44469         just before including <inttypes.h>, to avoid circular inclusion.
44470
44471 2006-08-28  Jim Meyering  <jim@meyering.net>
44472
44473         * doc/visibility.texi: Actually read and correct the grammar of the
44474         sentence affected by yesterday's change.
44475
44476 2006-08-28  Eric Blake  <ebb9@byu.net>
44477
44478         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44479         needs wrapper.
44480
44481 2006-08-28  Eric Blake  <ebb9@byu.net>
44482
44483         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44484
44485 2006-08-28  Eric Blake  <ebb9@byu.net>
44486
44487         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44488
44489 2006-08-28  Bruno Haible  <bruno@clisp.org>
44490
44491         * modules/c-strstr: New file, from GNU gettext.
44492         * MODULES.html.sh (String handling): Add c-strstr.
44493
44494 2006-08-28  Bruno Haible  <bruno@clisp.org>
44495
44496         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44497         macros.
44498         Reported by Eric Blake.
44499
44500 2006-08-28  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44503         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44504         * lib/vasprintf.c: Include errno.h, limits.h.
44505         (EOVERFLOW): New fallback definition.
44506         (vasprintf): Test here whether the string length is > INT_MAX.
44507         * lib/vsnprintf.c: Include errno.h, limits.h.
44508         (EOVERFLOW): New fallback definition.
44509         (vsnprintf): Fix bug when generated string was too long for the buffer.
44510         Test here whether the string length is > INT_MAX.
44511
44512 2006-08-28  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/inttypes_.h (SCNX*): Remove definitions.
44515         Reported by Eric Blake.
44516
44517 2006-08-28  Bruno Haible  <bruno@clisp.org>
44518
44519         * lib/c-strstr.h: New file, from GNU gettext.
44520         * lib/c-strstr.c: New file, from GNU gettext.
44521
44522 2006-08-28  Bruno Haible  <bruno@clisp.org>
44523
44524         * gnulib-tool: Reorder some statements.
44525
44526 2006-08-28  Bruno Haible  <bruno@clisp.org>
44527
44528         * gnulib-tool: New option --makefile-name.
44529         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44530         $makefile_name.
44531         (func_import): Write $makefile_name to the cache file, and read it from
44532         there unless explicitly specified. Use $makefile_name as file name
44533         instead of Makefile.am. Adjust the recommendations accordingly.
44534
44535 2006-08-28  Bruno Haible  <bruno@clisp.org>
44536
44537         * gnulib-tool (func_verify_module): Check against misapplying patch.
44538
44539 2006-08-28  Bruno Haible  <bruno@clisp.org>
44540
44541         * gnulib-tool (func_relativize, func_relconcat): New functions.
44542         Give an error if --local-dir is given with --update.
44543         Remove trailing slashes from $local_gnulib_dir.
44544         (func_import): Store the relativized $local_gnulib_dir in
44545         gnulib-cache.m4, and read it from there if not specified explicitly.
44546
44547 2006-08-28  Bruno Haible  <bruno@clisp.org>
44548
44549         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44550         is the current directory. Respect also $local_gnulib_dir.
44551
44552 2006-08-28  Bruno Haible  <bruno@clisp.org>
44553             Simon Josefsson  <jas@extundo.com>
44554
44555         BeOS portability.
44556         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44557
44558 2006-08-27  Jim Meyering  <jim@meyering.net>
44559
44560         * doc/visibility.texi: Remove duplicate word: "pointer".
44561
44562 2006-08-26  Bruno Haible  <bruno@clisp.org>
44563
44564         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44565         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44566         (Makefile.am): Create inttypes.h from inttypes_.h.
44567         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44568
44569         * modules/imaxabs: New file.
44570
44571         * modules/imaxdiv: New file.
44572
44573 2006-08-26  Bruno Haible  <bruno@clisp.org>
44574
44575         * m4/inttypes.m4: New file.
44576         * m4/_inttypes_h.m4: Remove file.
44577         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44578         PRI_MACROS_BROKEN.
44579         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44580
44581         * m4/imaxabs.m4: New file.
44582
44583         * m4/imaxdiv.m4: New file.
44584
44585 2006-08-26  Bruno Haible  <bruno@clisp.org>
44586
44587         * lib/inttypes_.h: New file.
44588         * lib/inttypes.h: Remove file.
44589         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44590
44591         * lib/imaxabs.c: New file.
44592
44593         * lib/imaxdiv.c: New file.
44594
44595 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44596
44597         New config-h module, so that "make" output needn't be cluttered
44598         by -DHAVE_CONFIG_H.
44599         * MODULES.html.sh (Support for building libraries and executables):
44600         Add config-h.
44601         * modules/config-h: New file.
44602         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44603         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44604         the config-h module is used.
44605
44606         New configmake module, so that "make" output needn't be cluttered
44607         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44608         * MODULES.html.sh (Support for building libraries and executables):
44609         Add configmake.
44610         * modules/configmake: New file.
44611
44612 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44613
44614         * m4/config-h.m4: New file.
44615
44616 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44617
44618         * config/srclist.txt: Add elisp-comp.
44619
44620 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44621
44622         * MODULES.html.sh (Support for building libraries and executables):
44623         Add elisp-comp.
44624         * build-aux/elisp-comp: New file.
44625         * modules/elisp-comp: New file.
44626
44627 2006-08-24  Bruno Haible  <bruno@clisp.org>
44628
44629         * gnulib-tool (func_create_testdir): Use non-default values of
44630         sourcebase and m4base.
44631
44632 2006-08-24  Bruno Haible  <bruno@clisp.org>
44633
44634         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44635         HTML structure.
44636
44637 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44638
44639         * modules/openat (Depends-on): Add lchown.
44640
44641 2006-08-23  Bruno Haible  <bruno@clisp.org>
44642
44643         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44644         of gl_LOCK_EARLY instead of gl_LOCK.
44645
44646 2006-08-23  Bruno Haible  <bruno@clisp.org>
44647
44648         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44649         on OSF/1 to no.
44650         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44651
44652 2006-08-23  Bruno Haible  <bruno@clisp.org>
44653
44654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44655         as unusable.
44656
44657         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44658         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44659         (gl_LOCK): New macro.
44660
44661 2006-08-22  Simon Josefsson  <jas@extundo.com>
44662
44663         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44664         to md5 module.
44665
44666 2006-08-22  Simon Josefsson  <jas@extundo.com>
44667
44668         * MODULES.html.sh: Add "Support for maintaining and release
44669         projects".
44670
44671         * build-aux/gnupload: New file, from coreutils.
44672
44673 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44674
44675         Avoid the need for AC_LIBSOURCES in m4 macros.
44676         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44677         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44678         * modules/check-version (EXTRA_DIST): Add check-version.h.
44679         * modules/crc (EXTRA_DIST): Add crc.h.
44680         * modules/des (EXTRA_DIST): Add des.h.
44681         * modules/gc (EXTRA_DIST): Add gc.h.
44682         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44683         * modules/getline (EXTRA_DIST): Add getline.h.
44684         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44685         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44686         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44687         * modules/md2 (EXTRA_DIST): Add md2.h.
44688         * modules/md4 (EXTRA_DIST): Add md4.h.
44689         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44690         * modules/read-file (EXTRA_DIST): Add read-file.h.
44691         * modules/readline (EXTRA_DIST): Add readline.h.
44692         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44693         rijndael-api-fst.h.
44694
44695 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44696
44697         * m4/rijndael.m4 (gl_ARCFOUR):
44698         * m4/arctwo.m4 (gl_ARCTWO):
44699         * m4/check-version.m4 (gl_CHECK_VERSION):
44700         * m4/crc.m4 (gl_CRC):
44701         * m4/des.m4 (gl_DES):
44702         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44703         * m4/gc.m4 (gl_GC):
44704         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44705         * m4/getline.m4 (gl_FUNC_GETLINE):
44706         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44707         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44708         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44709         * m4/md2.m4 (gl_MD2):
44710         * m4/md4.m4 (gl_MD4):
44711         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44712         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44713         * m4/readline.m4 (gl_FUNC_READLINE):
44714         * m4/rijndael.m4 (gl_RIJNDAEL):
44715         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44716         to get the necessary .h files and whatnot.
44717
44718 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44719
44720         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44721         gnulib rather than the other way around.
44722         * config/srclistvars.sh (COREUTILS): Remove.
44723
44724 2006-08-22  Jim Meyering  <jim@meyering.net>
44725
44726         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44727
44728         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44729
44730 2006-08-22  Eric Blake  <ebb9@byu.net>
44731
44732         * modules/regexprops-generic: New file.
44733         * MODULES.html.sh (Support for building documentation): List it.
44734
44735 2006-08-22  Eric Blake  <ebb9@byu.net>
44736
44737         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44738         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44739         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44740         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44741
44742 2006-08-22  Bruno Haible  <bruno@clisp.org>
44743
44744         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44745         and lib_LTLIBRARIES like the other lib_* variables.
44746
44747 2006-08-22  Bruno Haible  <bruno@clisp.org>
44748
44749         * build-aux/x-to-1.in: New file, from GNU gettext.
44750
44751 2006-08-22  Bruno Haible  <bruno@clisp.org>
44752
44753         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44754         <utmpx.h> exists.
44755
44756 2006-08-22  Bruno Haible  <bruno@clisp.org>
44757
44758         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44759         <utmpx.h> exists.
44760
44761 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44762
44763         BeOS portability.
44764         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44765         exist.
44766         Problem reported by Bruno Haible.
44767
44768 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44769
44770         Avoid the need for AC_LIBSOURCES in m4 macros.
44771         * modules/acl (EXTRA_DIST): Add acl.h.
44772         * modules/argmatch (Files): Add m4/argmatch.m4.
44773         (configure.ac): Add gl_ARGMATCH.
44774         (EXTRA_DIST): Renamed from lib_SOURCES, for
44775         consistency with the other modules.  Remove argmatch.c.
44776         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44777         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44778         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44779         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44780         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44781         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44782         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44783         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44784         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44785         * modules/closeout (EXTRA_DIST): Add closeout.h.
44786         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44787         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44788         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44789         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44790         dirname.h; remove basename.c and stripslash.c.
44791         * modules/exclude (EXTRA_DIST): Add exclude.h.
44792         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44793         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44794         * modules/file-type (EXTRA_DIST): Add file-type.h.
44795         * modules/filemode (EXTRA_DIST): Add filemode.h.
44796         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44797         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44798         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44799         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44800         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44801         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44802         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44803         * modules/getdate (EXTRA_DIST): Add getdate.c.
44804         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44805         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44806         * modules/getpass (EXTRA_DIST): Add getpass.h.
44807         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44808         * modules/group-member (EXTRA_DIST): Add group-member.h.
44809         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44810         * modules/hash (EXTRA_DIST): Add hash.h.
44811         * modules/human (EXTRA_DIST): Add human.h.
44812         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44813         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44814         * modules/lchown (EXTRA_DIST): Add lchown.h.
44815         * modules/long-options (EXTRA_DIST): Add long-options.h.
44816         * modules/lstat (EXTRA_DIST): Add lstat.h.
44817         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44818         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44819         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44820         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44821         * modules/memxor (EXTRA_DIST): Add memxor.h.
44822         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44823         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44824         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44825         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44826         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44827         * modules/physmem (EXTRA_DIST): Add physmem.h.
44828         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44829         * modules/posixver (EXTRA_DIST): Add posixver.h.
44830         * modules/quote (EXTRA_DIST): Add quote.h.
44831         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44832         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44833         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44834         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44835         regex_internal.h regexec.c.
44836         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44837         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44838         * modules/same (EXTRA_DIST): Add same.h.
44839         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44840         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44841         * modules/savedir (EXTRA_DIST): Add savedir.h.
44842         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44843         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44844         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44845         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44846         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44847         * modules/strdup (EXTRA_DIST): Add strdup.h.
44848         * modules/strftime (EXTRA_DIST): Add strftime.h.
44849         * modules/strndup (EXTRA_DIST): Add strndup.h.
44850         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44851         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44852         * modules/time_r (EXTRA_DIST): Add time_r.h.
44853         * modules/timespec (EXTRA_DIST): Add timespec.h.
44854         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44855         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44856         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44857         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44858         * modules/userspec (EXTRA_DIST): Add userspec.h.
44859         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44860         * modules/utimens (EXTRA_DIST): Add utimens.h.
44861         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44862         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44863         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44864         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44865         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44866         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44867         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44868         * modules/yesno (EXTRA_DIST): Add yesno.h.
44869
44870 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44871
44872         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44873
44874         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44875         * m4/dev-ino.m4, same-inode.m4: Remove.
44876
44877         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44878         * m4/acl.m4 (AC_FUNC_ACL):
44879         * m4/backupfile.m4 (gl_BACKUPFILE):
44880         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44881         * m4/canon-host.m4 (gl_CANON_HOST):
44882         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44883         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44884         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44885         * m4/cloexec.m4 (gl_CLOEXEC):
44886         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44887         * m4/closeout.m4 (gl_CLOSEOUT):
44888         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44889         * m4/dirname.m4 (gl_DIRNAME):
44890         * m4/exclude.m4 (gl_EXCLUDE):
44891         * m4/exitfail.m4 (gl_EXITFAIL):
44892         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44893         * m4/file-type.m4 (gl_FILE_TYPE):
44894         * m4/filemode.m4 (gl_FILEMODE):
44895         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44896         * m4/fpending.m4 (gl_FUNC_FPENDING):
44897         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44898         * m4/fts.m4 (gl_FUNC_FTS):
44899         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44900         * m4/getdate.m4 (gl_GETDATE):
44901         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44902         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44903         * m4/getpass.m4 (gl_FUNC_GETPASS):
44904         * m4/gettime.m4 (gl_GETTIME):
44905         * m4/getugroups.m4 (gl_GETUGROUPS):
44906         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44907         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44908         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44909         * m4/hash.m4 (gl_HASH):
44910         * m4/idcache.m4 (gl_IDCACHE):
44911         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44912         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44913         * m4/long-options.m4 (gl_LONG_OPTIONS):
44914         * m4/lstat.m4 (gl_FUNC_LSTAT):
44915         * m4/md5.m4 (gl_MD5):
44916         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44917         * m4/memcoll.m4 (gl_MEMCOLL):
44918         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44919         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44920         * m4/memxor.m4 (gl_MEMXOR):
44921         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44922         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44923         * m4/modechange.m4 (gl_MODECHANGE):
44924         * m4/mountlist.m4 (gl_MOUNTLIST):
44925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44926         * m4/openat.m4 (gl_FUNC_OPENAT):
44927         * m4/pathmax.m4 (gl_PATHMAX):
44928         * m4/physmem.m4 (gl_PHYSMEM):
44929         * m4/posixtm.m4 (gl_POSIXTM):
44930         * m4/posixver.m4 (gl_POSIXVER):
44931         * m4/quote.m4 (gl_QUOTE):
44932         * m4/quotearg.m4 (gl_QUOTEARG):
44933         * m4/readtokens.m4 (gl_READTOKENS):
44934         * m4/readutmp.m4 (gl_READUTMP):
44935         * m4/regex.m4 (gl_REGEX):
44936         * m4/safe-read.m4 (gl_SAFE_READ):
44937         * m4/safe-write.m4 (gl_SAFE_WRITE):
44938         * m4/same.m4 (gl_SAME):
44939         * m4/save-cwd.m4 (gl_SAVE_CWD):
44940         * m4/savedir.m4 (gl_SAVEDIR):
44941         * m4/settime.m4 (gl_SETTIME):
44942         * m4/sha1.m4 (gl_SHA1):
44943         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44944         * m4/stat-macros.m4 (gl_STAT_MACROS):
44945         * m4/stat-time.m4 (gl_STAT_TIME):
44946         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44947         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44948         * m4/strdup.m4 (gl_FUNC_STRDUP):
44949         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44950         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44951         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44952         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44953         * m4/time_r.m4 (gl_TIME_R):
44954         * m4/timespec.m4 (gl_TIMESPEC):
44955         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44956         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44957         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44958         * m4/userspec.m4 (gl_USERSPEC):
44959         * m4/utimecmp.m4 (gl_UTIMECMP):
44960         * m4/utimens.m4 (gl_UTIMENS):
44961         * m4/xalloc.m4 (gl_XALLOC):
44962         * m4/xgetcwd.m4 (gl_XGETCWD):
44963         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44964         * m4/xreadlink.m4 (gl_XREADLINK):
44965         * m4/xstrtod.m4 (gl_XSTRTOD):
44966         * m4/yesno.m4 (gl_YESNO):
44967         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44968         to get the necessary .h files and whatnot.
44969
44970 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44971             Bruno Haible  <bruno@clisp.org>
44972
44973         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44974         /bin/sh understanding of '!' conditional negation.
44975
44976 2006-08-21  Jim Meyering  <jim@meyering.net>
44977
44978         * modules/openat (Depends-on): Really alphabetize.
44979
44980         * modules/acl (Depends-on): Add error and quote.
44981
44982         * check-module (find_included_lib_files): Add at-func.c to the
44983         ok-to-include-more-than-once white list.
44984
44985         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44986
44987 2006-08-21  Bruno Haible  <bruno@clisp.org>
44988
44989         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44990         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44991         Reported by Martin Lambers <marlam@marlam.de>.
44992
44993 2006-08-21  Bruno Haible  <bruno@clisp.org>
44994
44995         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44996         specify an installation location, don't emit a noinst_LIBRARIES or
44997         noinst_LTLIBRARIES assignment.
44998
44999 2006-08-21  Bruno Haible  <bruno@clisp.org>
45000
45001         BeOS portability.
45002         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45003         BeOS has mbrtowc() but no <wctype.h>.
45004
45005 2006-08-21  Bruno Haible  <bruno@clisp.org>
45006
45007         BeOS portability.
45008         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45009         exist.
45010
45011 2006-08-21  Bruno Haible  <bruno@clisp.org>
45012
45013         BeOS portability.
45014         * lib/mbchar.h: Include <wctype.h> only if it exists.
45015
45016 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         Remove files that are no longer needed by their respective modules.
45019         * m4/obstack.m4: Remove.
45020         * m4/strerror_r.m4: Remove.
45021         * m4/uint32_t.m4: Remove.
45022         * m4/uintptr_t.m4: Remove.
45023         * m4/ullong_max.m4: Remove.
45024         * m4/xstrtoimax.m4: Remove.
45025         * m4/xstrtoumax.m4: Remove.
45026
45027         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45028         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45029         dependencies now capture this.
45030
45031         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45032         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45033         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45034         * m4/human.m4 (gl_HUMAN): Likewise.
45035         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45036         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45037
45038         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45039
45040         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45041         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45042         stdint.
45043         * m4/human.m4 (gl_HUMAN): Likewise.
45044         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45045         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45046         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45047         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45048         * m4/xstrtol (gl_XSTRTOL): Likewise.
45049
45050         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45051         AC_TYPE_LONG_LONG_INT.
45052         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45053         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45054         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45055         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45056
45057         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45058         on stdbool.
45059
45060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45061         (gl_PREREQ_XSTRTOUL): Remove.
45062
45063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45064
45065         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45066         mode.
45067
45068 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45069
45070         Add and change modules to make it easier for coreutils to use
45071         gnulib-tool.
45072         * modules/backupfile (Files): Remove m4/d-ino.m4.
45073         (Depends-on): Add d-ino.
45074         * modules/cycle-check (Depends-on): Add stdint.
45075         (lib_SOURCES): Add cycle-check.h.
45076         * modules/d-ino: New module.
45077         * modules/d-type: New module.
45078         * modules/error (Files): Remove m4/strerror_r.m4.
45079         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45080         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45081         m4/inttypes_h.m4, m4/uintmax_t.m4.
45082         (Depends-on): Add stdint.
45083         (lib_SOURCES): Add fsusage.h.
45084         * modules/getcwd (Files): Remove d-ino.m4.
45085         (Depends-on): Add d-ino.
45086         * modules/getndelim2 (Depends-on): Add stdint.
45087         * modules/glob (Files): Remove m4/d-type.m4.
45088         (Depends-on): Add d-type.
45089         * modules/host-os: New module.
45090         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45091         m4/inttypes_h.m4, m4/uintmax_t.m4.
45092         * Depends-on: Add stdint.
45093         (lib_SOURCES): Add human.h.
45094         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45095         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45096         m4/uintmax_t.m4, m4/ulonglong.m4.
45097         (Depends-on): Add stdint.
45098         (EXTRA_DIST): Add inttostr.h.
45099         * modules/lchmod: New module.
45100         * modules/link-follow: New module.
45101         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45102         (Depends-on): Add lchmod.
45103         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45104         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45105         (Depends-on): Add stdint.
45106         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45107         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45108         (Depends-on): Add stdint.
45109         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45110         * modules/perl: New module.
45111         * modules/regex (Depends-on): Add stdint.
45112         * modules/rmdir-errno: New module.
45113         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45114         m4/intmax_t.m4.
45115         (Depends-on): Add stdint.
45116         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45117         m4/uintmax_t.m4.
45118         (Depends-on): Add stdint.
45119         * modules/unlink-busy: New module.
45120         * modules/utimecmp (Depends-on): Add stdint.
45121         * modules/uptime: New module.
45122         * modules/winsz-ioctl: New module.
45123         * modules/winsz-termios: New module.
45124         * modules/xnanosleep (Depends-on): Add nanosleep.
45125         * modules/ullong_max: Remove.
45126         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45127         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45128         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45129         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45130         (Depends-on): Add inttypes.
45131         (lib_SOURCES): Add xstrtol.h.
45132         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45133         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45134         * MODULES.html.sh: Move 'assert' into the assert section.
45135         Move 'dummy' into the linking section.
45136         Remove ullong_max.
45137         Add section for compatibility checks for POSIX:2001 functions,
45138         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45139         winsz-ioctl, and winsz-termios into it.
45140         Add lchmod.
45141         Add top-level Misc section and put host-os, perl, and uptime
45142         into it.
45143
45144 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45145
45146         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45147         now assume the stdint module.  Do not include inttypes.h.
45148         * lib/fsusage.h: Likewise.
45149         * lib/getndelim2.c: Likewise.
45150         * lib/human.h: Likewise.
45151         * lib/inttostr.h: Likewise.
45152         * lib/obstack.c: Likewise.
45153         * lib/regex_internal.h: Likewise.
45154         * lib/tempname.c: Likewise.
45155         * lib/utimecmp.c: Likewise.
45156         * lib/xstrtol.h: Likewise.
45157
45158         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45159
45160         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45161         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45162         * lib/xtime.h: Likewise.
45163
45164 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45165
45166         * modules/openat (Files): Add lib/fchmodat.c.
45167         Fixes problem reported by Jay Youngman.
45168
45169 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45170
45171         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45172         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45173
45174 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45175             Bruno Haible  <bruno@clisp.org>
45176
45177         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45178         and is a script that invokes bison. Tighten the code. Add comments.
45179
45180 2006-08-18  Jim Meyering  <jim@meyering.net>
45181
45182         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45183         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45184         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45185         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45186
45187 2006-08-18  Bruno Haible  <bruno@clisp.org>
45188
45189         * modules/bison-i18n: New file.
45190         * MODULES.html.sh (Internationalization functions): Add it.
45191
45192 2006-08-18  Bruno Haible  <bruno@clisp.org>
45193
45194         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45195         sys/statvfs.h. When getmntinfo was found, check its declaration and
45196         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45197
45198 2006-08-18  Bruno Haible  <bruno@clisp.org>
45199
45200         * m4/bison-i18n.m4: New file, from bison.
45201
45202 2006-08-18  Bruno Haible  <bruno@clisp.org>
45203
45204         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45205         (ME_DUMMY): Treat "kernfs" as a dummy.
45206         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45207
45208 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45209
45210         Update from coreutils.
45211
45212         2006-08-15  Jim Meyering  <jim@meyering.net>
45213
45214         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45215
45216         2006-01-17  Jim Meyering  <jim@meyering.net>
45217
45218         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45219
45220         2006-01-11  Jim Meyering  <jim@meyering.net>
45221
45222         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45223         Check for the lchmod function.
45224
45225 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45226
45227         Update from coreutils.
45228
45229         * lib/__fpending.h: Add copyright notice.
45230         * lib/fprintftime.h: Likewise.
45231         * lib/savedir.c: Use (C) in copyright notice.
45232         * lib/savedir.h: Likewise.
45233
45234         2006-08-15  Jim Meyering  <jim@meyering.net>
45235
45236         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45237         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45238         in support of the EXPECTED_ERRNO macro.
45239         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45240         definitions.  Instead, define the appropriate symbols and include
45241         "at-func.c".
45242         * lib/mkdirat.c (mkdirat): Likewise.
45243         * lib/fchmodat.c (fchmodat): Likewise.
45244         (ENOSYS): Remove definition.
45245         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45246         it.  Don't include "unistd--.h" -- it wasn't ever used.
45247
45248         2006-01-17  Jim Meyering  <jim@meyering.net>
45249
45250         Rewrite fts.c not to change the current working directory,
45251         by using openat, fstatat, fdopendir, etc..
45252
45253         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45254         (HAVE_OPENAT_SUPPORT): Define.
45255         [_LIBC] (fchdir): Don't undef or define; no longer used.
45256         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45257         Now, this `function' always succeeds, and consumes its file descriptor
45258         parameter -- so callers must not close such FDs.  Update callers.
45259         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45260         (diropen): Add parameter, SP.  Adjust all callers.
45261         Implement using diropen_fd, rather than open.
45262         (fts_open): Initialize new member, fts_cwd_fd.
45263         Remove fts_rft-setting code.
45264         (fts_close): Close fts_cwd_fd, if necessary.
45265         (__opendir2): Define in terms of opendir or opendirat,
45266         depending on whether the FST_NOCHDIR flag is set.
45267         (fts_build): Since fts_safe_changedir consumes its FD, and since
45268         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45269         and close the dup'd file descriptor upon failure.
45270         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45271         (fts_safe_changedir): Tweak semantics to reflect that this function
45272         now calls cwd_advance_fd and hence consumes its FD argument.
45273         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45274         [struct FTS] (fts_rft): Remove now-unused member.
45275         [struct FTS] (fts_cycle.state): Improve comment.
45276
45277         * lib/openat.c (openat_needs_fchdir): New function.
45278         * lib/openat.h (openat_needs_fchdir): Declare it.
45279
45280 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45281
45282         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45283         Problem and fix reported by Pádraig Brady in
45284         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45285
45286 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45287
45288         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45289
45290 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45291
45292         * lib/memcoll.c (memcoll): Optimize for the common case where the
45293         arguments are bytewise equal.
45294
45295 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45296
45297         * doc/regexprops-generic.texi: Add a copyright notice.
45298
45299 2006-08-15  Bruno Haible  <bruno@clisp.org>
45300
45301         * modules/tmpdir (License): Change to LGPL.
45302
45303 2006-08-15  Bruno Haible  <bruno@clisp.org>
45304
45305         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45306         module.
45307
45308 2006-08-14  Simon Josefsson  <jas@extundo.com>
45309
45310         * config/srclist.txt: Add gnupload.
45311
45312 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45313
45314         Change copyright notice from LGPL 2 to GPL 2, since that's the
45315         standard form used in the gnulib repository.
45316         * tests/test-lock.c: Likewise.
45317         * tests/test-stdint.c: Likewise.
45318         * tests/test-tls.c: Likewise.
45319
45320         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45321         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45322         Add copyright notice.
45323
45324         * check-module: Add copyright notice.  Output a copyright
45325         notice if "--version" is specified.
45326         * modules/COPYING: New file.
45327         * tests/test-getaddrinfo.c: Add copyright notice.
45328         * tests/test-verify.c: Likewise.
45329
45330 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45331
45332         Change copyright notice from LGPL 2 to GPL 2, since that's the
45333         standard form used in the gnulib repository.
45334         * lib/lock.c: LGPL -> GPL.
45335         * lib/lock.h: Likewise.
45336         * lib/strnlen1.c: Likewise.
45337         * lib/strnlen1.h: Likewise.
45338         * lib/tls.c: Likewise.
45339         * lib/tls.h: Likewise.
45340         * lib/tmpdir.c: Likewise.
45341
45342         * lib/TODO: Remove; this belongs only in coreutils.
45343
45344 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45345
45346         Add copyright notices to long-enough files that lack them, since
45347         otherwise the files aren't clearly free.  Use the same notice that
45348         getdate.texi already uses.
45349         * doc/alloca-opt.texi: Add copyright notice.
45350         * doc/alloca.texi: Likewise.
45351         * doc/ctime.texi: Likewise.
45352         * doc/functions.texi: Likewise.
45353         * doc/gcd.texi: Likewise.
45354         * doc/gnulib-tool.texi: Likewise.
45355         * doc/inet_ntoa.texi: Likewise.
45356         * doc/visibility.texi: Likewise.
45357
45358         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45359         * doc/quote.texi: Add copyright notice.
45360
45361         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45362         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45363         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45364         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45365         is now obsolete, and give a pointer to the Sun list.
45366         Add copyright notice.
45367
45368 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45369
45370         * config/srclistvars.sh: Add copyright notice.
45371
45372 2006-08-14  Eric Blake  <ebb9@byu.net>
45373
45374         Import the following change from libc:
45375
45376         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45377
45378         Upstream bug 2997.
45379         * lib/misc/error.c: Add space between program name and message if file
45380         name is missing.
45381
45382 2006-08-12  Karl Berry  <karl@gnu.org>
45383
45384         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45385         remove, these originate in gnulib now.
45386
45387 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45388
45389         * doc/Makefile (standards.info standards.html standards.dvi):
45390         Also depend on make-stds.texi.
45391
45392 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45393
45394         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45395         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45396
45397         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45398         in wchar_t.  Problem reported by Eric Blake.
45399
45400         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45401         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45402         Also, help the compiler to keep LEN in a register.
45403
45404 2006-08-11  Eric Blake  <ebb9@byu.net>
45405
45406         * users.txt: Sort.  Add tar.
45407
45408 2006-08-11  Bruno Haible  <bruno@clisp.org>
45409
45410         * users.txt: New file.
45411
45412 2006-08-11  Bruno Haible  <bruno@clisp.org>
45413
45414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45415         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45416
45417 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45418
45419         * modules/snprintf (Depends-on): Remove minmax.
45420         (Maintainer): Add self and Bruno.
45421
45422 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45423
45424         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45425         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45426         (EOVERFLOW): Define if the system does not.
45427         Do not include "minmax.h"; it wasn't used.
45428         (snprintf): Don't assume size_t promotes to an unsigned type.
45429         Fix bug when generated string was too long for the buffer: the
45430         buffer's contents are supposed to be the initial prefix of the
45431         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45432         exceeds INT_MAX; do the check ourselves.
45433
45434         Import the following changes from libc:
45435
45436         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45437
45438         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45439         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45440         set wc to the byte which couldn't be converted.
45441         (re_string_reconstruct): Don't clear valid_raw_len before calling
45442         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45443         tip_context using re_string_context_at.
45444
45445         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45446
45447         * lib/posix/regex.h: g++ still cannot handled [restrict].
45448
45449         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45450
45451         * lib/posix/regex.h: Remove special handling for VMS.
45452
45453 2006-08-10  Jim Meyering  <jim@meyering.net>
45454
45455         * modules/same-inode: New module.
45456         * modules/dev-ino: New module.
45457         * modules/cycle-check: Depend on these modules, rather than simply
45458         including their .h files.
45459         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45460         required via m4/cycle-check.m4.
45461         * modules/same: Depend on new same-inode module, rather than
45462         including same-inode.h.
45463         * modules/chdir-safer: New file.
45464
45465         * modules/chown (Depends-on): Add stat-macros.
45466
45467 2006-08-10  Jim Meyering  <jim@meyering.net>
45468
45469         * m4/cycle-check.m4: New file.
45470         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45471         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45472
45473 2006-08-10  Eric Blake  <ebb9@byu.net>
45474
45475         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45476         in from original proposal.
45477
45478 2006-08-10  Eric Blake  <ebb9@byu.net>
45479         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45480
45481         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45482         namespace.
45483
45484 2006-08-10  Bruno Haible  <bruno@clisp.org>
45485
45486         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45487         as well.
45488
45489 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45490
45491         Sync from coreutils.
45492
45493         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45494
45495         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45496         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45497
45498 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         * modules/restrict: Remove; no longer needed now that we assume
45501         Autoconf 2.59 or later.
45502         * MODULES.html.sh: Remove 'restrict'.
45503         * modules/argp (Depends-on): Remove 'restrict'.
45504         * modules/base64 (Depends-on): Likewise.
45505         * modules/gc (Depends-on): Likewise.
45506         * modules/getaddrinfo (Depends-on): Likewise.
45507         * modules/glob (Depends-on): Likewise.
45508         * modules/inet_ntop (Depends-on): Likewise.
45509         * modules/inet_pton (Depends-on): Likewise.
45510         * modules/memxor (Depends-on): Likewise.
45511         * modules/regex (Depends-on): Likewise.
45512         * modules/strtok_r (Depends-on): Likewise.
45513         * modules/time_r (Depends-on): Likewise.
45514
45515 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45516
45517         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45518         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45519         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45520         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45521         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45522         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45523         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45524         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45525
45526         Merge from coreutils.
45527         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45528         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45529         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45530         * m4/time_r.m4 (gl_TIME_R): Likewise.
45531
45532 2006-08-09  Karl Berry  <karl@gnu.org>
45533
45534         * config/srclist.txt: no more gettext-tools, per Bruno.
45535
45536 2006-08-08  Eric Blake  <ebb9@byu.net>
45537
45538         * modules/verror: New module.
45539         * MODULES.html.sh: Document it.
45540
45541 2006-08-08  Eric Blake  <ebb9@byu.net>
45542
45543         * lib/verror.h, lib/verror.c: New files.
45544
45545 2006-08-08  Eric Blake  <ebb9@byu.net>
45546
45547         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45548         verror_at_line output complies with GNU Coding Standards even when
45549         file is NULL.
45550
45551 2006-08-07  Bruno Haible  <bruno@clisp.org>
45552
45553         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45554         versions of AIX.
45555         Reported by Ralf Wildenhues.
45556
45557 2006-08-07  Bruno Haible  <bruno@clisp.org>
45558
45559         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45560         in an AC_DEFUN. Needed so that the autoconf snippets can use
45561         AC_REQUIRE.
45562
45563 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45564
45565         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45566         Initialize pkgdata_DATA.
45567         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45568         overriding it.
45569
45570 2006-08-06  Eric Blake  <ebb9@byu.net>
45571
45572         * lib/error.h: Fold in some upstream changes from glibc.
45573         * lib/error.c: Likewise.
45574
45575 2006-08-04  Bruno Haible  <bruno@clisp.org>
45576
45577         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45578         Make the mostlyclean-local rule depend on mostlyclean-generic.
45579         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45580
45581 2006-07-31  Bruno Haible  <bruno@clisp.org>
45582
45583         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45584         <stdlib.h>, <string.h>.
45585
45586 2006-07-30  Bruno Haible  <bruno@clisp.org>
45587
45588         * modules/readlink (License): Change to LGPL.
45589
45590 2006-07-30  Bruno Haible  <bruno@clisp.org>
45591
45592         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45593         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45594         set PKGDATADIR to point to it.
45595
45596 2006-07-30  Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/csharpexec (configure.ac): Comment out macro invocation.
45599         * modules/javaexec (configure.ac): Likewise.
45600         * modules/javacomp-script (configure.ac): Likewise.
45601
45602         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45603
45604 2006-07-30  Bruno Haible  <bruno@clisp.org>
45605
45606         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45607         linked-list.
45608
45609 2006-07-30  Bruno Haible  <bruno@clisp.org>
45610
45611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45612
45613 2006-07-30  Bruno Haible  <bruno@clisp.org>
45614
45615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45616         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45617         get removed.
45618
45619 2006-07-29  Bruno Haible  <bruno@clisp.org>
45620
45621         Make it possible for gnulib-tool to work with locally modified or
45622         augmented gnulib repositories.
45623         * gnulib-tool (func_usage): Document --local-dir option.
45624         (local_gnulib_dir): New variable.
45625         Handle --local-dir option.
45626         (func_lookup_file): New function.
45627         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45628         (func_get_description, func_get_filelist, func_get_description,
45629         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45630         func_get_automake_snippet, func_get_include_directive,
45631         func_get_license, func_get_maintainer): Use func_lookup_file.
45632         (func_import, func_create_testdir): Use func_lookup_file.
45633
45634 2006-07-29  Bruno Haible  <bruno@clisp.org>
45635
45636         * modules/setenv (Depends-on): Add unistd.
45637
45638 2006-07-29  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45641
45642 2006-07-29  Bruno Haible  <bruno@clisp.org>
45643
45644         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45645
45646 2006-07-29  Bruno Haible  <bruno@clisp.org>
45647
45648         * gnulib-tool (import, update): If there is no Makefile.am, look at
45649         aclocal.m4, instead of bailing out.
45650
45651 2006-07-29  Bruno Haible  <bruno@clisp.org>
45652
45653         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45654         Categorize the options by when they are useful.
45655
45656 2006-07-29  Bruno Haible  <bruno@clisp.org>
45657
45658         * gnulib-tool (func_usage): Document option --no-libtool.
45659         Handle option --no-libtool.
45660         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45661         for changed semantics of $libtool variable.
45662         (func_import): Likewise. If libtool is not used, show this through
45663         an option --no-libtool.
45664         (func_create_testdir): Update.
45665
45666 2006-07-29  Bruno Haible  <bruno@clisp.org>
45667
45668         * gnulib-tool (func_import): Extend error message about missing
45669         --doc-base.
45670
45671 2006-07-29  Bruno Haible  <bruno@clisp.org>
45672
45673         * gnulib-tool (func_import): Don't create the $docbase directory if
45674         there is no file to store there.
45675
45676 2006-07-29  Bruno Haible  <bruno@clisp.org>
45677
45678         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45679         relevant, look for configure.ac there, not in the current directory.
45680         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45681
45682 2006-07-29  Bruno Haible  <bruno@clisp.org>
45683
45684         * gnulib-tool (SORT): New variable.
45685         (func_usage): Undocument --assume-autoconf option.
45686         Remove --assume-autoconf option handling.
45687         (autoconf_minversion): Determine from the contents of configure.ac.
45688         (func_import): Remove autoconf_minversion handling.
45689         Suggested by Eric Blake.
45690
45691 2006-07-29  Bruno Haible  <bruno@clisp.org>
45692
45693         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45694
45695 2006-07-29  Bruno Haible  <bruno@clisp.org>
45696
45697         * config/srclist.txt (*setenv.[ch]): Remove rules.
45698
45699 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45700
45701         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45702
45703 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45704
45705         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45706         arpa/inet.h.
45707
45708 2006-07-28  Simon Josefsson  <jas@extundo.com>
45709
45710         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45711         * modules/inet_pton (Depends-on): Likewise.
45712
45713 2006-07-28  Simon Josefsson  <jas@extundo.com>
45714
45715         * m4/netinet_in_h.m4: New file.
45716
45717 2006-07-28  Simon Josefsson  <jas@extundo.com>
45718
45719         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45720         #include's.
45721
45722 2006-07-28  Simon Josefsson  <jas@extundo.com>
45723
45724         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45725         #include's.
45726
45727 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45728
45729         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45730         setgid on directories only if they set these bits.
45731         * lib/modechange.h: Remove obsolete comment about masks.
45732
45733 2006-07-28  Eric Blake  <ebb9@byu.net>
45734
45735         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45736         macro expansion.
45737
45738 2006-07-28  Bruno Haible  <bruno@clisp.org>
45739
45740         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45741
45742 2006-07-28  Bruno Haible  <bruno@clisp.org>
45743
45744         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45745
45746 2006-07-28  Bruno Haible  <bruno@clisp.org>
45747
45748         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45749         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45750         Define fallbacks.
45751         Avoids link error on FreeBSD 4.x.
45752         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45753
45754         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45755         encoding.
45756         * lib/mbswidth.c (iswcntrl): Likewise.
45757
45758 2006-07-27  Bruno Haible  <bruno@clisp.org>
45759
45760         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45761         test.
45762
45763 2006-07-27  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45766         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45767         defined.
45768
45769 2006-07-26  Eric Blake  <ebb9@byu.net>
45770
45771         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45772
45773 2006-07-26  Eric Blake  <ebb9@byu.net>
45774
45775         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45776         like mingw that lack mkstemp.
45777         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45778         avoid compilation warning on mingw.
45779
45780 2006-07-26  Bruno Haible  <bruno@clisp.org>
45781
45782         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45783         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45784         INT_FAST*_MIN, INTPTR_MIN.
45785
45786 2006-07-25  Bruno Haible  <bruno@clisp.org>
45787
45788         * modules/version-etc (Depends-on): Add stdarg.
45789
45790 2006-07-25  Bruno Haible  <bruno@clisp.org>
45791
45792         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45793         complex commands.
45794
45795 2006-07-25  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45798         defined in <stdarg.h> or config.h.
45799
45800 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45801
45802         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45803         (gl_STDIO_SAFER): Remove.
45804
45805 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45806
45807         * MODULES.html.sh (File stream based Input/Output):
45808         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45809         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45810         * modules/fopen-safer, modules/tmpfile-safer: New files.
45811         * modules/stdio-safer: Remove.
45812
45813 2006-07-24  Bruno Haible  <bruno@clisp.org>
45814
45815         * modules/tmpdir: New file.
45816         * MODULES.html.sh (File system functions): Add it.
45817
45818 2006-07-24  Bruno Haible  <bruno@clisp.org>
45819
45820         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45821         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45822
45823 2006-07-24  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/clean-temp: New file.
45826
45827 2006-07-24  Bruno Haible  <bruno@clisp.org>
45828
45829         * m4/tmpdir.m4: New file, from GNU gettext.
45830
45831 2006-07-24  Bruno Haible  <bruno@clisp.org>
45832
45833         * lib/tmpdir.h: New file, from GNU gettext.
45834         * lib/tmpdir.c: New file, from GNU gettext.
45835
45836 2006-07-24  Bruno Haible  <bruno@clisp.org>
45837
45838         * lib/clean-temp.h: New file, from GNU gettext.
45839         * lib/clean-temp.c: New file, from GNU gettext.
45840
45841 2006-07-23  Eric Blake  <ebb9@byu.net>
45842
45843         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45844         (Depends-on): Add binary-io.
45845
45846 2006-07-23  Eric Blake  <ebb9@byu.net>
45847
45848         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45849
45850 2006-07-23  Eric Blake  <ebb9@byu.net>
45851
45852         * lib/tmpfile-safer.c: New file.
45853         * lib/stdio-safer.h (fopen_safer): Add prototype.
45854         * lib/stdio--.h (tmpfile): Make safer.
45855
45856 2006-07-23  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45859         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45860         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45861         gl_linked_remove_at): Use it.
45862
45863 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45864         and Simon Josefsson <jas@extundo.com>
45865
45866         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45867
45868         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45869
45870 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45871
45872         * modules/close-stream: New file.
45873         * modules/closeout (Description): Make it clear that it exits
45874         with a diagnostic on error.
45875         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45876         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45877
45878 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         * m4/close-stream.m4: New file.
45881
45882 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45883
45884         * lib/close-stream.c, lib/close-stream.h: New files.
45885
45886 2006-07-22  Bruno Haible  <bruno@clisp.org>
45887
45888         Merge from GNU gettext 0.15.
45889
45890         2006-05-01  Bruno Haible  <bruno@clisp.org>
45891
45892                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45893
45894         2006-07-22  Bruno Haible  <bruno@clisp.org>
45895
45896                 * modules/javaversion: New file.
45897                 * MODULES.html.sh (Java): Add javaversion.
45898
45899         2006-03-12  Bruno Haible  <bruno@clisp.org>
45900
45901                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45902
45903         2005-12-04  Bruno Haible  <bruno@clisp.org>
45904
45905                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45906                 (untested).
45907
45908         2006-06-21  Bruno Haible  <bruno@clisp.org>
45909
45910                 Avoid warnings from recent versions of mcs.
45911                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45912                 -o, -L, -r any more. Use options documented since mcs-1.0
45913                 instead. Similarly for -g.
45914
45915         2005-12-04  Bruno Haible  <bruno@clisp.org>
45916
45917                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45918                 .resources, not .resource.
45919
45920         2005-07-09  Bruno Haible  <bruno@clisp.org>
45921
45922                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45923                 add a .dll suffix.
45924                 Reported by Mark Junker <mjscod@gmx.de>.
45925
45926         2006-07-22  Bruno Haible  <bruno@clisp.org>
45927
45928                 * modules/gettext: Upgrade to gettext-0.15.
45929                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45930                 m4/visibility.m4.
45931                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45932
45933 2006-07-22  Bruno Haible  <bruno@clisp.org>
45934
45935         Merge from GNU gettext 0.15.
45936
45937         2006-03-25  Bruno Haible  <bruno@clisp.org>
45938
45939                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45940
45941         2006-07-21  Bruno Haible  <bruno@clisp.org>
45942
45943                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45944                 "1.1".
45945
45946         2006-05-09  Bruno Haible  <bruno@clisp.org>
45947
45948                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45949                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45950                 for the conftestver execution.
45951
45952         2006-05-01  Bruno Haible  <bruno@clisp.org>
45953
45954                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45955                 optional target-version argument. Verify that the compiler
45956                 groks source of the specified source-version, or add -source
45957                 option as necessary. Verify that the compiler produces
45958                 bytecode in the specified target-version, or add -target and
45959                 -source options as necessary. Make the result of the test
45960                 available as variable CONF_JAVAC. Also log error output in
45961                 config.log.
45962
45963         2006-03-11  Bruno Haible  <bruno@clisp.org>
45964
45965                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45966
45967         2006-05-09  Bruno Haible  <bruno@clisp.org>
45968
45969                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45970                 CLASSPATH_SEPARATOR to a semicolon.
45971
45972         2006-03-12  Bruno Haible  <bruno@clisp.org>
45973
45974                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45975                 available as variable CONF_JAVA, for subsequent autoconf
45976                 tests. Also log error output in config.log.
45977
45978         2006-07-19  Bruno Haible  <bruno@clisp.org>
45979
45980                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45981                 that getline works on glibc2 systems. Needed to avoid trouble
45982                 in relocatable.c.
45983                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45984
45985         2005-12-04  Bruno Haible  <bruno@clisp.org>
45986
45987                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45988                 launcher (untested).
45989
45990         2005-12-04  Bruno Haible  <bruno@clisp.org>
45991
45992                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45993
45994         2006-07-22  Bruno Haible  <bruno@clisp.org>
45995
45996                 * gettext.m4: Update from GNU gettext-0.15.
45997                 * nls.m4: Likewise.
45998                 * po.m4: Likewise.
45999                 * inttypes-pri.m4: Likewise.
46000                 * inttypes-h.m4: Renamed from inttypes.m4.
46001                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46002
46003 2006-07-22  Bruno Haible  <bruno@clisp.org>
46004
46005         Merge from GNU gettext 0.15.
46006
46007         2005-07-05  Bruno Haible  <bruno@clisp.org>
46008
46009                 * printf-args.c (printf_fetchargs): Work around broken
46010                 definition of wint_t on mingw.
46011
46012         2005-02-12  Bruno Haible  <bruno@clisp.org>
46013
46014                 * xallocsa.h: Add extern "C" for C++.
46015
46016         2006-05-17  Bruno Haible  <bruno@clisp.org>
46017
46018                 Cygwin portability.
46019                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46020
46021         2006-04-30  Bruno Haible  <bruno@clisp.org>
46022
46023                 * progreloc.c: Include <mach-o/dyld.h> if available.
46024                 (find_executable): Use _NSGetExecutablePath when possible.
46025
46026         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46027
46028                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46029                 function.
46030
46031         2005-12-29  Bruno Haible  <bruno@clisp.org>
46032
46033                 * progreloc.c (set_program_name_and_installdir): Fix
46034                 compilation error.
46035
46036         2005-12-04  Bruno Haible  <bruno@clisp.org>
46037
46038                 Cygwin portability.
46039                 * progreloc.c: Include <windows.h> also on Cygwin.
46040                 (find_executable): Add support for Cygwin.
46041                 (set_program_name_and_installdir): Handle also platforms with
46042                 nonempty EXEEXT.
46043
46044         2006-07-11  Bruno Haible  <bruno@clisp.org>
46045
46046                 * javacomp.c: Fix a comment.
46047                 Reported by Jim Meyering.
46048
46049         2006-04-30  Bruno Haible  <bruno@clisp.org>
46050
46051                 * javacomp.h (compile_java_class): Add source_version,
46052                 target_version arguments.
46053                 * javacomp.c: Rewritten to choose only a compiler that
46054                 respects the specified source_version and target_version.
46055
46056         2006-06-27  Bruno Haible  <bruno@clisp.org>
46057
46058                 Assume correct S_ISDIR macro.
46059                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46060
46061         2006-07-22  Bruno Haible  <bruno@clisp.org>
46062
46063                 * javaversion.h: New file, from GNU gettext.
46064                 * javaversion.c: New file, from GNU gettext.
46065                 * javaversion.java: New file, from GNU gettext.
46066                 * javaversion.class: New file, from GNU gettext.
46067
46068         2006-05-17  Bruno Haible  <bruno@clisp.org>
46069
46070                 Cygwin portability.
46071                 * javaexec.c (execute_java_class): Test for jview program
46072                 also on Cygwin.
46073
46074         2006-04-09  Bruno Haible  <bruno@clisp.org>
46075
46076                 * fatal-signal.c: Don't include string.h.
46077                 (at_fatal_signal): Use a copying loop instead of memcpy.
46078
46079         2005-12-04  Bruno Haible  <bruno@clisp.org>
46080
46081                 * csharpexec.c: Add support for 'clix' launcher (untested).
46082                 (execute_csharp_using_sscli): New function.
46083                 (execute_csharp_program): Call it.
46084
46085         2006-06-21  Bruno Haible  <bruno@clisp.org>
46086
46087                 Avoid warnings from recent versions of mcs.
46088                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46089                 -o, -L, -r any more. Use options documented since mcs-1.0
46090                 instead. Similarly for -g.
46091
46092         2005-07-09  Bruno Haible  <bruno@clisp.org>
46093
46094                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46095                 add a .dll suffix.
46096                 Reported by Mark Junker <mjscod@gmx.de>.
46097
46098         2006-06-17  Bruno Haible  <bruno@clisp.org>
46099
46100                 * config.charset: Update for NetBSD 3.0.
46101
46102         2006-05-17  Bruno Haible  <bruno@clisp.org>
46103
46104                 Cygwin portability.
46105                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46106
46107         2006-05-16  Bruno Haible  <bruno@clisp.org>
46108
46109                 * localcharset.c [CYGWIN]: Include <windows.h>.
46110                 (get_charset_aliases): For Cygwin, return the same CPxxx
46111                 aliases list as under WIN32.
46112                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46113                 the environment variables. Fall back to GetACP().
46114
46115         2006-04-05  Bruno Haible  <bruno@clisp.org>
46116
46117                 * config.charset: Update Juan Manuel Guerrero's address.
46118
46119         2005-02-12  Bruno Haible  <bruno@clisp.org>
46120
46121                 * allocsa.h: Add extern "C" for C++.
46122
46123         2005-02-10  Bruno Haible  <bruno@clisp.org>
46124
46125                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46126                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46127
46128         2006-07-22  Bruno Haible  <bruno@clisp.org>
46129
46130                 * gettext.h: Update to GNU gettext-0.15.
46131
46132 2006-07-22  Bruno Haible  <bruno@clisp.org>
46133
46134         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46135         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46136         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46137
46138 2006-07-21  Eric Blake  <ebb9@byu.net>
46139
46140         * modules/stdlib-safer: New file.
46141         * MODULES.html.sh (File stream based Input/Output): Add
46142         stdlib-safer.
46143
46144 2006-07-21  Eric Blake  <ebb9@byu.net>
46145
46146         * lib/stdlib-safer.h: New file from coreutils, required by
46147         stdlib--.h.
46148
46149 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46152
46153 2006-07-20  Bruno Haible  <bruno@clisp.org>
46154
46155         * gnulib-tool: Recognize new option --assume-autoconf.
46156         (autoconf_minversion): New variable.
46157         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46158
46159 2006-07-20  Bruno Haible  <bruno@clisp.org>
46160
46161         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46162
46163 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46164
46165         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46166         Reindent and repaginate.
46167
46168 2006-07-19  Derek Price  <derek@ximbiot.com>
46169
46170         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46171         Correct grammar.
46172
46173 2006-07-17  Bruno Haible  <bruno@clisp.org>
46174
46175         * modules/list: New file.
46176         * modules/array-list: New file.
46177         * modules/carray-list, modules/carray-list-tests: New files.
46178         * modules/linked-list, modules/linked-list-tests: New files.
46179         * modules/avltree-list, modules/avltree-list-tests: New files.
46180         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46181         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46182         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46183         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46184         * modules/oset: New file.
46185         * modules/array-oset: New file.
46186         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46187         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46188         * tests/test-carray_list.c: New file.
46189         * tests/test-linked_list.c: New file.
46190         * tests/test-avltree_list.c: New file.
46191         * tests/test-rbtree_list.c: New file.
46192         * tests/test-linkedhash_list.c: New file.
46193         * tests/test-avltreehash_list.c: New file.
46194         * tests/test-rbtreehash_list.c: New file.
46195         * tests/test-avltree_oset.c: New file.
46196         * tests/test-rbtree_oset.c: New file.
46197         * MODULES.html.sh (Container data structures): New section.
46198
46199 2006-07-17  Bruno Haible  <bruno@clisp.org>
46200
46201         * m4/gl_list.m4: New file.
46202
46203 2006-07-17  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/gl_list.h: New file.
46206         * lib/gl_list.c: New file.
46207         * lib/gl_array_list.h: New file.
46208         * lib/gl_array_list.c: New file.
46209         * lib/gl_carray_list.h: New file.
46210         * lib/gl_carray_list.c: New file.
46211         * lib/gl_linked_list.h: New file.
46212         * lib/gl_linked_list.c: New file.
46213         * lib/gl_anylinked_list1.h: New file.
46214         * lib/gl_anylinked_list2.h: New file.
46215         * lib/gl_avltree_list.h: New file.
46216         * lib/gl_avltree_list.c: New file.
46217         * lib/gl_anyavltree_list1.h: New file.
46218         * lib/gl_anyavltree_list2.h: New file.
46219         * lib/gl_rbtree_list.h: New file.
46220         * lib/gl_rbtree_list.c: New file.
46221         * lib/gl_anyrbtree_list1.h: New file.
46222         * lib/gl_anyrbtree_list2.h: New file.
46223         * lib/gl_anytree_list1.h: New file.
46224         * lib/gl_anytree_list2.h: New file.
46225         * lib/gl_linkedhash_list.h: New file.
46226         * lib/gl_linkedhash_list.c: New file.
46227         * lib/gl_anyhash_list1.h: New file.
46228         * lib/gl_anyhash_list2.h: New file.
46229         * lib/gl_avltreehash_list.h: New file.
46230         * lib/gl_avltreehash_list.c: New file.
46231         * lib/gl_rbtreehash_list.h: New file.
46232         * lib/gl_rbtreehash_list.c: New file.
46233         * lib/gl_anytreehash_list1.h: New file.
46234         * lib/gl_anytreehash_list2.h: New file.
46235
46236         * lib/gl_oset.h: New file.
46237         * lib/gl_oset.c: New file.
46238         * lib/gl_array_oset.h: New file.
46239         * lib/gl_array_oset.c: New file.
46240         * lib/gl_avltree_oset.h: New file.
46241         * lib/gl_avltree_oset.c: New file.
46242         * lib/gl_rbtree_oset.h: New file.
46243         * lib/gl_rbtree_oset.c: New file.
46244         * lib/gl_anytree_oset.h: New file.
46245
46246 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46247
46248         * m4/mkancesdirs.m4: New file.
46249         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46250         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46251         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46252         it.
46253
46254 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46255
46256         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46257         * lib/mkancesdirs.h: New files.
46258         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46259         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46260         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46261         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46262         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46263         callers changed.  Revamp internals significantly, by not
46264         attempting to create directories that are temporarily more
46265         permissive than the final results.  Do not attempt to use
46266         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46267         This removes some race conditions, fixes some bugs, and simplifies
46268         things.  Use new dirchownmod function to do owner and mode changes.
46269         * lib/mkdir-p.h: Likewise.
46270         * lib/modechange.c (octal_to_mode): New function.
46271         (struct mode_change): New member mentioned.
46272         (make_node_op_equals): New arg mentioned.  All callers changed.
46273         (mode_compile): Keep track of which mode bits the user has explicitly
46274         mentioned.
46275         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46276         New arg PMODE_BITS, to keep track of which mode bits the user
46277         mentioned; it treats S_ISUID and S_ISGID speciall.
46278         All callers changed.
46279         * lib/modechange.h: Likewise.
46280
46281 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46282
46283         * MODULES.html.sh: Add mkancestors.
46284         * modules/mkancesdirs: New module.
46285         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46286         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46287         The chdir-safer and afs files are now orphans; I'll remove them
46288         unless someone speaks up.
46289         Add lib/dirchownmod.c, lib/dirchownmod.h.
46290         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46291         Add lchown, mkancesdirs.
46292         (Maintainer): Add self.
46293
46294 2006-07-15  Karl Berry  <karl@gnu.org>
46295
46296         * gnulib-tool: help message wording/arrangement.
46297
46298 2006-07-14  Simon Josefsson  <jas@extundo.com>
46299
46300         * doc/gnulib.texi (Libtool and Windows): New section.
46301
46302 2006-07-12  Simon Josefsson  <jas@extundo.com>
46303
46304         * modules/gendocs (License): Fix license, approved by Karl.
46305
46306 2006-07-12  Eric Blake  <ebb9@byu.net>
46307
46308         * MODULES.html.sh: Add gendocs.
46309
46310 2006-07-11  Eric Blake  <ebb9@byu.net>
46311
46312         * modules/fdl: New module, to install doc/fdl.texi.
46313         * MODULES.html.sh: Add new section for documentation modules.
46314         * gnulib-tool: Avoid space-tab.
46315         (--doc-base): New option, to manage files from doc.
46316
46317 2006-07-11  Eric Blake  <ebb9@byu.net>
46318
46319         * m4/absolute-header.m4: Fix comments to match recent change.
46320
46321 2006-07-11  Eric Blake  <ebb9@byu.net>
46322
46323         * gnulib-tool: List --doc-base before --tests-base.
46324
46325 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46326
46327         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46328
46329 2006-07-11  Bruno Haible  <bruno@clisp.org>
46330
46331         * README: Mention where to put documentation.
46332
46333 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46334
46335         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46336
46337 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46338
46339         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46340         to stdint.m4.
46341
46342 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46343
46344         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46345         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46346         "no/such/file/stdint.h" when there is no such file, so that
46347         the resulting C code can be parsed by dodgy compilers.
46348         Problems reported by Bob Proulx.
46349
46350 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46351
46352         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46353         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46354         macros into the GNU _D_EXACT_NAMLEN.
46355         * lib/savedir.c:  Likewise.
46356         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46357
46358 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46359         and Paul Eggert  <eggert@cs.ucla.edu>
46360
46361         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46362         * m4/savedir.m4:
46363         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46364         macros into the GNU _D_EXACT_NAMLEN.
46365
46366 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46367
46368         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46369         around the absolute name, to work around a problem with the HP-UX
46370         11.23 native C compiler, reported by Bob Proulx.
46371
46372 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46373
46374         * doc/maintain.texi, make-stds.texi: Sync from
46375         <http://savannah.gnu.org/projects/gnustandards>.
46376
46377 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46378
46379         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46380
46381 2006-07-09  Jim Meyering  <jim@meyering.net>
46382
46383         * m4/glob.m4: Remove a doubled word in a comment.
46384
46385 2006-07-09  Jim Meyering  <jim@meyering.net>
46386
46387         * lib/argp-pv.c: Remove a doubled word in a comment.
46388         * lib/check-version.c (check_version): Likewise.
46389         * lib/javacomp.c (compile_java_class): Likewise.
46390
46391 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46392
46393         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46394         for the benefit of people using Autoconf 2.60.  If you want to
46395         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46396         (or m4/onceonly.m4, if pre-2.57) manually.
46397
46398 2006-07-08  Jim Meyering  <jim@meyering.net>
46399
46400         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46401         comment.
46402         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46403         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46404         comment.
46405
46406 2006-07-08  Jim Meyering  <jim@meyering.net>
46407
46408         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46409
46410 2006-07-07  Simon Josefsson  <jas@extundo.com>
46411
46412         * tests/test-crc.c: Change expected crc value, the test vector
46413         were probably computed using the old broken crc.c?
46414
46415 2006-07-06  Simon Josefsson  <jas@extundo.com>
46416
46417         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46418         now the canonical place for the M4 file).
46419
46420         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46421         from the sys_socket dependency now.
46422
46423         * modules/inet_pton (Files): Ditto.
46424
46425         * modules/inet_ntop (Files): Ditto.
46426
46427 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46428
46429         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46430         not gl_PREREQ_GETUSERSHELL.
46431
46432 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46433
46434         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46435         with only one argument, for Autoconf 2.60.
46436         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46437         expand to nothing, so add a shell command to avoid syntax error.
46438         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46439
46440 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46441
46442         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46443
46444 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46445
46446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46447         no longer needed.  Check for isblank decl.
46448         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46449         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46450         of existence.
46451
46452 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46453
46454         * lib/getloadavg.c: Use __VMS, not VMS.
46455         * lib/getopt.c: Likewise.
46456         * lib/getpagesize.h: Likewise.
46457         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46458         and probably does not work.
46459
46460 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46461
46462         * lib/.cppi-disable: Add wcwidth.
46463         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46464         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46465         (ISGRAPH): Remove.  All uses changed to isgraph.
46466         (FOLD) [!defined _LIBC]: Remove special case.
46467         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46468         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46469         HAVE_ISBLANK.
46470         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46471         case.
46472
46473 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46474
46475         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46476         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46477         brackets.  Other minor changes to suppress some compiler
46478         warnings.
46479
46480 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46481         and Paul Eggert  <eggert@cs.ucla.edu>
46482
46483         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46484         of invoking obsolescent AC_HEADER_DIRENT macro.
46485         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46486         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46487         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46489         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46490         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46491         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46492         * m4/readdir.m4: Remove; no longer needed.
46493
46494 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46495         and Paul Eggert  <eggert@cs.ucla.edu>
46496
46497         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46498         Don't worry about this obsolete case any more.
46499         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46500         directories.
46501         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46502         worry about this obsolete case any more.
46503         * lib/fts.c: Likewise.
46504         * lib/getcwd.c: Likewise.
46505         * lib/glob.h: Likewise.
46506         * lib/savedir.c: Likewise.
46507
46508 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46509
46510         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46511         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46512         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46513         needed.
46514         All uses removed.
46515         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46516         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46517         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46518         needed.
46519         * m4/getdate.m4 (gl_GETDATE): Likewise.
46520         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46521         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46522         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46523         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46524         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46525         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46526         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46527         needed.
46528
46529 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46530
46531         * lib/memcasecmp.c: Include <limits.h>.
46532         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46533         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46534         Don't assume isdigit succeeds only on '0' through '9'.
46535
46536 2006-07-05  Eric Blake  <ebb9@byu.net>
46537
46538         * modules/getaddrinfo (Depends-on): Add snprintf.
46539
46540 2006-07-05  Eric Blake  <ebb9@byu.net>
46541
46542         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46543         to avoid 'header present but could not be compiled' on cygwin.
46544
46545 2006-07-05  Eric Blake  <ebb9@byu.net>
46546
46547         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46548         missing from netdb.h.
46549         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46550
46551 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46552
46553         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46554         no longer needed.
46555         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46556         * m4/getdate.m4 (gl_GETDATE): Likewise.
46557         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46558         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46559         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46560         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46561         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46562
46563 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46564
46565         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46566         All uses of is_space replaced by isspace.
46567         * lib/exit.h: Don't talk about STDC_HEADERS.
46568         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46569         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46570         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46571         replaced by isprint etc.
46572         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46573         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46574         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46575         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46576         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46577         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46578
46579 2006-07-05  Bruno Haible  <bruno@clisp.org>
46580
46581         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46582         the function exists, before testing against AIX.
46583         Reported by Martin Lambers <marlam@marlam.de>.
46584
46585 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46586
46587         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46588         From Mark D. Baushke.
46589
46590 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46591
46592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46593         to the absolute name, not just one, to bypass Sun C 5.8's
46594         "warning: #include of /usr/include/... may be non-portable".
46595
46596 2006-07-04  Eric Blake  <ebb9@byu.net>
46597
46598         * modules/dirname-tests: New test module.
46599         * tests/test-dirname.c: New file, replacing dirname.c
46600         TEST_DIRNAME section that was recently deleted.
46601
46602 2006-07-04  Bruno Haible  <bruno@clisp.org>
46603
46604         Assume ANSI C header files and <ctype.h> functions.
46605         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46606         (mbsnwidth): Use isprint, iscntrl instead.
46607
46608 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46609
46610         Merge from coreutils.
46611         * MODULES.html.sh: Add xstrtold.
46612         * modules/xstrtold: New file.
46613         * modules/cycle-check (Files): Add lib/same-inode.h.
46614         * modules/dirname (Files): Add m4/double-slash-root.m4.
46615         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46616         * modules/mkdir-p (Files): Add lib/same-inode.h.
46617         * modules/same (Files): Add lib/same-inode.h.
46618
46619 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46620
46621         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46622         This is to keep the terminology clean; POSIX talks about
46623         "absolute pathnames", not "full pathnames", but the GNU
46624         Coding Standards say to use "path" for something else;
46625         so use "absolute" to keep both sides happy.
46626         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46627         Set gl_absolute_header, not gl_full_header_path.
46628         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46629         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46630         All uses changed.
46631
46632         Merge from coreutils.
46633
46634         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46635
46636         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46637         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46638         want to require the building of c-strtod.o.
46639         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46640         needs -lm directly.
46641         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46642
46643         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46646         --as-needed option if available.  Problem reported by Albert Chin in
46647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46648         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46649         cc merely issues a bunch of annoying warnings for --as-needed
46650         (this problem was reported by Bob Proulx).  Also, try linking with
46651         -lm to detect a bug in binutils 2.16 (this problem was reported
46652         by Ralf Wildenhues).
46653
46654         2006-06-18  Jim Meyering  <jim@meyering.net>
46655
46656         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46657         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46658         macro.
46659         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46660         also check for glibc-2.4's abort-inducing bug.
46661
46662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46663         Low-probability clean-up should be to use rmdir to get rid of
46664         the just-created directory, not unlink.
46665
46666         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46667         configure fail, and request a bug report to inform us about it.
46668         Add a comment that, barring reports to the contrary, in 2007 we'll
46669         assume ftruncate is universally available.
46670
46671         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46672
46673         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46674
46675         2006-03-12  Jim Meyering  <jim@meyering.net>
46676
46677         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46678         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46679         * m4/same.m4 (gl_SAME): Likewise.
46680         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46681
46682         2006-03-11  Eric Blake  <ebb9@byu.net>
46683
46684         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46685         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46686         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46687         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46688
46689 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46690
46691         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46692         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46693         reported by Mark D. Baushke, one in
46694         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46695
46696         Merge from coreutils.
46697
46698         * lib/.cppi-disable: Add stdint_.h.
46699         * lib/.cvsignore: Add stdint.h.
46700
46701         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46702
46703         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46704         both double and long double versions.
46705         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46706         * lib/xstrtold.c: New file.
46707         * lib/xstrtod.h (xstrtold): New decl.
46708
46709         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46710
46711         * lib/filemode.c (setst): Remove.
46712         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46713         (arguably) clearer, and the generated code is a bit smaller on my
46714         Debian GNU/Linux stable x86 host.
46715
46716         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46719         Assume that filemode.h includes sys/types.h and sys/stat.h.
46720         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46721         (ftypelet): Reorder to put common cases first, for efficiency.
46722         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46723         to do 'M'.
46724         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46725         of 10, for compatibility with FreeBSD.  All callers changed.
46726         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46727         types that can't be deduced solely from st_mode.  First arg is now a
46728         const pointer.
46729         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46730         (strmode): Renamed from mode_string.
46731         (filemodestring): New decl.
46732         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46733         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46734         needed.
46735         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46736
46737         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46738
46739         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46740         fsusage.h now does that.  Include fsusage.h first, to test interface.
46741         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46742         at most one method (the old code could have generated decls that
46743         didn't conform to C89, not that this was ever exercised).
46744         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46745
46746         2006-03-19  Jim Meyering  <jim@meyering.net>
46747
46748         Work even in a chroot where d_ino values for entries in "/"
46749         don't match the stat.st_ino values for the same names.
46750         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46751         number, iterate through all entries again, using lstat instead.
46752         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46753         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46754
46755         * lib/getcwd.c (__getcwd): Clarify a comment.
46756         Use memcpy in place of a call to strcpy.
46757
46758         2006-03-12  Jim Meyering  <jim@meyering.net>
46759
46760         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46761         matches that of the current directory (which we're about to chdir ".."
46762         out of), then save the dev-ino of the parent, instead.
46763
46764         * lib/same-inode.h (SAME_INODE): New file/macro.
46765         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46766         Include "same-inode.h", instead.
46767         * lib/same.c: Likewise.
46768         * lib/cycle-check.h: Include "same-inode.h".
46769         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46770         * lib/cycle-check.c (SAME_INODE): Remove definition.
46771         * lib/root-dev-ino.h: Include "same-inode.h".
46772
46773         2006-03-11  Eric Blake  <ebb9@byu.net>
46774
46775         * lib/same.c (same_name): s/base_name/last_component/
46776         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46777         * lib/filenamecat.c (file_name_concat): Likewise.
46778
46779         2006-03-11  Eric Blake  <ebb9@byu.net>,
46780                     Paul Eggert  <eggert@cs.ucla.edu>
46781
46782         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46783         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46784         drive prefix.
46785         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46786         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46787         (last_component): New method.
46788         * lib/dirname.c (dir_len): Determine when drive letters need a
46789         subsequent slash.  Preserve // when it is special.
46790         (dir_name): Don't append dot when drive letter is absolute.
46791         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46792         * lib/basename.c (base_name): New semantics - malloc the result.
46793         Preserve // when it is special.  Preserve relative files that look
46794         like drive letters.
46795         (base_len): Preserve // when it is special.
46796         (last_component): New method, similar to old base_name semantics.
46797         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46798         base_name.  Strip redundant slashes from ///.
46799
46800 2006-07-03  Jim Meyering  <jim@meyering.net>
46801
46802         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46803         macro is used before the first cycle_check call.
46804
46805 2006-07-03  Eric Blake  <ebb9@byu.net>
46806
46807         * modules/dirname (Depends-on): Add xstrndup.
46808
46809 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46812         test cases, so that config.log is a bit easier to follow.
46813
46814 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46815
46816         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46817         both are 64 bits, since this seems to be the tradition, and this
46818         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46819         we ever run into a host that prefers long long to long in this
46820         case, we'll need another configure-time test.  Problem reported by
46821         Jim Meyering.
46822
46823 2006-07-02  Eric Blake  <ebb9@byu.net>
46824
46825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46826
46827 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46828
46829         * modules/inttypes (Depends-on): No longer depends on stdint.
46830         * modules/stdint (Description): Say more about assumptions.
46831         Say that the fast types might differ.  Say macros are used.
46832         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46833         (Makefile.am): Revise list of substituted symbols to match
46834         new stdint.m4.
46835         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46836         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46837         * tests/test-stdint.c (verify_same_types)
46838         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46839         the code conforms to C99/C89.
46840         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46841         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46842
46843 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46844
46845         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46846         but fix a bug, by requiring at least 64 bits.
46847         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46848         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46849         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46850         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46851
46852         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46853         changes.  Make 2.59 a prerequisite.  Check and substitute for
46854         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46855         inttypes.h.  Do not use special include files; just use the
46856         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46857         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46858         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46859         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46860         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46861         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46862         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46863         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46864         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46865         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46866         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46867         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46868         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46869         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46870         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46871         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46872         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46873         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46874         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46875         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46876         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46877         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46878         not check for things that C99 does not require, e.g., int8_t.  If
46879         a test isn't needed unless <stdint.h> isn't working, and is
46880         unlikely to be needed for any other reason, then don't do it
46881         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46882         size_t, since we assume C89 freestanding at least.  Do not check
46883         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46884         the right thing even if the types are not defined.  Instead use:
46885         (gl_STDINT_TYPE_PROPERTIES): New macro.
46886         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46887         testing whether <sys/types.h> clashes, as Autoconf does this for
46888         us now.  All uses removed.
46889         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46890         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46891         (gl_CHECK_TYPE_SAME):
46892         Remove; no longer needed.
46893         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46894         exists, since we'll return 0 anyway in that case.
46895         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46896
46897 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46898
46899         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46900         possible collision with system files.
46901         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46902         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46903         WCHAR_MIN and WCHAR_MAX in this case.
46904         (<stddef.h>): Do not include; no longer needed.
46905         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46906         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46907         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46908         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46909         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46910         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46911         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46912         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46913         !defined(__c99))]: Include in this case too, since it's harmless
46914         now.
46915         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46916         dangerous to do so.
46917         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46918         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46919         (_STDINT_MIN, _STDINT_MAX): New macros.
46920         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46921         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46922         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46923         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46924         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46925         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46926         macros, not typedefs; this simplifies things quite a bit.
46927         Use long int for all types narrower than int64_t.
46928         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46929         Define in terms of long long int or int64_t or long int,
46930         not int64_t or int32_t.  This saves some compile-time testing.
46931         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46932         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46933         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46934         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46935         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46936         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46937         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46938         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46939         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46940         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46941         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46942         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46943         undef any previous version and define our own version, for
46944         simplicity and consistency with the new macros for types.
46945         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46946         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46947         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46948         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46949         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46950         @WINT_T_SUFFIX@ to keep things simple here.
46951         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46952         Simplify by assuming typical 8/16/32/64 host, since we're
46953         already doing that elsewhere anyway.
46954         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46955         and assume long long int is 64 bits if available.  This
46956         speeds up 'configure'.
46957
46958 2006-07-01  Eric Blake  <ebb9@byu.net>
46959
46960         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46961         Reported by Andreas Buening.
46962
46963 2006-07-01  Eric Blake  <ebb9@byu.net>
46964
46965         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46966
46967 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46968
46969         * lib/getaddrinfo.c: fixed typo
46970
46971 2006-06-29  Jim Meyering  <jim@meyering.net>
46972
46973         * modules/strftime (Maintainer): Add my name, since with the
46974         FPRINTFTIME changes strftime.c has forked from glibc.
46975
46976 2006-06-29  Eric Blake  <ebb9@byu.net>
46977
46978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46979
46980 2006-06-29  Eric Blake  <ebb9@byu.net>
46981
46982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46983
46984 2006-06-29  Eric Blake  <ebb9@byu.net>
46985
46986         * lib/stat_.h: New file.
46987
46988 2006-06-29  Eric Blake  <ebb9@byu.net>
46989
46990         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46991         unused static function.
46992
46993 2006-06-29  Eric Blake  <ebb9@byu.net>
46994
46995         * doc/functions.texi (Function Portability): Document missing lstat
46996         on mingw.
46997
46998 2006-06-29  Eric Blake  <ebb9@byu.net>
46999
47000         * MODULES.html.sh: Add sys_stat.
47001         * modules/sys_stat: New module.
47002         * modules/mkstemp (Depends-on): Add sys_stat.
47003
47004 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47005
47006         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47007
47008 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47009
47010         * m4/c-bs-a.m4: Removed.
47011
47012 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47013
47014         * lib/strftime.c: Assume strftime() exists.
47015
47016 2006-06-29  Derek Price  <derek@ximbiot.com>
47017
47018         * modules/c-bs-a: Removed - \a is C89.
47019         * MODULES.html.sh: Remove c-bs-a.
47020
47021 2006-06-29  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/wcwidth (License): Change to LGPL.
47024
47025 2006-06-28  Simon Josefsson  <jas@extundo.com>
47026
47027         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47028         on _WIN32.
47029
47030         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47031         getnameinfo.
47032
47033 2006-06-28  Simon Josefsson  <jas@extundo.com>
47034
47035         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47036
47037 2006-06-28  Simon Josefsson  <jas@extundo.com>
47038
47039         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47040         functions there.  It will succeed on Windows XP, but on Windows
47041         2000 and (presumably) earlier, it will fail, and use the internal
47042         re-implementation.
47043         (use_win32_p): New function.
47044         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47045         Support AI_NUMERICSERV to disable getservbyname.
47046         (getnameinfo): New function, only supports
47047         NI_NUMERICHOST|NI_NUMERICSERV for now.
47048
47049         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47050         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47051         getnameinfo.
47052
47053 2006-06-28  Eric Blake  <ebb9@byu.net>
47054
47055         * modules/wcwidth: New file.
47056         * modules/mbchar (Depends-on): Add wcwidth.
47057         * modules/mbswidth (Depends-on): Add wcwidth.
47058         * MODULES.html.sh: Add wcwidth.
47059
47060 2006-06-28  Eric Blake  <ebb9@byu.net>
47061
47062         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47064
47065 2006-06-28  Eric Blake  <ebb9@byu.net>
47066
47067         * lib/xvasprintf.h: Fix comments.
47068
47069 2006-06-28  Eric Blake  <ebb9@byu.net>
47070
47071         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47072         * lib/mbswidth.c (wcwidth): Move from here...
47073         * lib/wcwidth.h: ...to this new file.
47074
47075 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47076
47077         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47078
47079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47080         it's obsolete.
47081         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47082
47083 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47084
47085         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47086         Autoconf 2.60 says this stuff was obsolete.
47087
47088 2006-06-28  Bruno Haible  <bruno@clisp.org>
47089
47090         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47091
47092 2006-06-28  Bruno Haible  <bruno@clisp.org>
47093
47094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47095         gt_TYPE_WCHAR_T.
47096
47097 2006-06-28  Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47100         declaration for wcwidth.
47101         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47102
47103 2006-06-28  Bruno Haible  <bruno@clisp.org>
47104
47105         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47106         (mkdir): Define using _mkdir.
47107
47108 2006-06-28  Bruno Haible  <bruno@clisp.org>
47109
47110         * lib/getaddrinfo.h: Fix POSIX URL.
47111         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47112         _WIN32.
47113         (use_win32_p): Make static.
47114         (getaddrinfo): Reject service name if it is empty or does not consist
47115         solely of decimal digits, or if its value is > 65535.
47116         (getnameinfo): Remove useless casts.
47117
47118 2006-06-27  Simon Josefsson  <jas@extundo.com>
47119
47120         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47121         Eggert and Martin Lambers.
47122
47123 2006-06-27  Simon Josefsson  <jas@extundo.com>
47124
47125         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47126         Eggert and Martin Lambers.
47127
47128 2006-06-27  Bruno Haible  <bruno@clisp.org>
47129
47130         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47131         result to 0, not to empty.
47132         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47133
47134 2006-06-27  Bruno Haible  <bruno@clisp.org>
47135
47136         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47137
47138 2006-06-26  Simon Josefsson  <jas@extundo.com>
47139
47140         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47141         present.
47142
47143 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47144
47145         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47146         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47147         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47148
47149 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47150
47151         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47152
47153 2006-06-26  Bruno Haible  <bruno@clisp.org>
47154
47155         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47156
47157 2006-06-26  Bruno Haible  <bruno@clisp.org>
47158
47159         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47160
47161 2006-06-26  Bruno Haible  <bruno@clisp.org>
47162
47163         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47164         SGI C compiler in pre-C99 mode.
47165         Suggested by Mark D. Baushke and Larry Jones.
47166
47167 2006-06-26  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47170         WCHAR_MAX.
47171         Reported by Mark D. Baushke and Larry Jones.
47172
47173 2006-06-26  Bruno Haible  <bruno@clisp.org>
47174
47175         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47176         in pre-C99 mode.
47177         Suggested by Mark D. Baushke and Larry Jones.
47178
47179 2006-06-23  Simon Josefsson  <jas@extundo.com>
47180             Bruno Haible  <bruno@clisp.org>
47181
47182         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47183         Emit mostlyclean-local rule.
47184         (func_emit_tests_Makefile_am): Likewise.
47185         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47186
47187 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47188
47189         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47190
47191 2006-06-23  Bruno Haible  <bruno@clisp.org>
47192
47193         * tests/test-stdint.c: Update to match ISO C 99 Technical
47194         Corrigendum 1.
47195
47196 2006-06-23  Bruno Haible  <bruno@clisp.org>
47197
47198         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47199
47200 2006-06-23  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/stdint_.h: Treat IRIX like OpenBSD.
47203
47204 2006-06-23  Bruno Haible  <bruno@clisp.org>
47205
47206         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47207         ISO C 99 Technical Corrigendum 1.
47208
47209 2006-06-22  Simon Josefsson  <jas@extundo.com>
47210
47211         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47212         MinGW.
47213
47214 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47217         needed.  Some compiler complained about some of them.  Problem reported
47218         by Larry Jones in
47219         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47220
47221 2006-06-21  Simon Josefsson  <jas@extundo.com>
47222
47223         * tests/test-getaddrinfo.c: New file.
47224
47225         * modules/getaddrinfo-tests: New file.
47226
47227         * MODULES.html.sh: Add inet_pton.
47228
47229         * modules/inet_pton: New file.
47230
47231 2006-06-21  Simon Josefsson  <jas@extundo.com>
47232
47233         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47234         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47235         of using the (limited) gnulib implementation on Windows XP.
47236
47237         * m4/inet_pton.m4: New file.
47238
47239 2006-06-21  Simon Josefsson  <jas@extundo.com>
47240
47241         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47242         variable.
47243
47244         * lib/socket_.h: Don't define WINVER.
47245
47246         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47247         slightly modified to work in gnulib.
47248
47249 2006-06-21  Simon Josefsson  <jas@extundo.com>
47250
47251         * doc/gnulib.texi (Windows sockets): Add.
47252
47253 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47254
47255         * lib/read-file.c (fread_file): Start with buffer allocation of
47256         0 bytes rather than 1 byte; this simplifies the code.
47257         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47258         code to free buffer and save/restore errno.
47259         (internal_read_file): Remove unused local.
47260
47261 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47262
47263         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47264         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47265         Problem reported by Denis Excoffier in
47266         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47267
47268 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47269
47270         * modules/sys_socket, modules/socklen: Include sys/types since
47271         FreeBSD 4.x's sys/socket.h needs it.
47272
47273 2006-06-19  Simon Josefsson  <jas@extundo.com>
47274
47275         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47276
47277 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47278
47279         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47280
47281 2006-06-19  Bruno Haible  <bruno@clisp.org>
47282
47283         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47284         and FULL_PATH_INTTYPES_H in angle brackets.
47285         Reported by Mark D. Baushke <mdb@gnu.org>.
47286
47287 2006-06-17  Eric Blake  <ebb9@byu.net>
47288
47289         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47290         errno.
47291
47292 2006-06-17  Bruno Haible  <bruno@clisp.org>
47293
47294         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47295         <sys/inttypes.h>.
47296
47297 2006-06-17  Bruno Haible  <bruno@clisp.org>
47298
47299         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47300         whether errno is declared. Assume <errno.h> declares errno.
47301
47302 2006-06-17  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47305
47306 2006-06-17  Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47309         problem on Solaris 2.5.1.
47310
47311 2006-06-16  Eric Blake  <ebb9@byu.net>
47312
47313         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47314         * lib/unicodeio.c [!defined errno]: Likewise.
47315         * lib/strtol.c [!defined errno]: Likewise.
47316         * lib/strtod.c [!defined errno]: Likewise.
47317
47318 2006-06-15  Eric Blake  <ebb9@byu.net>
47319
47320         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47321
47322 2006-06-15  Eric Blake  <ebb9@byu.net>
47323
47324         * config/srclist.txt (ssize_t.m4): Lose sync.
47325
47326 2006-06-15  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/stdint (Files): Include m4/full-header-path.m4,
47329         m4/size_max.m4, m4/wchar_t.m4.
47330         (Makefile.am): Many more substitutions.
47331         * modules/stdint-tests: New file.
47332         * tests/test-stdint.c: New file.
47333
47334 2006-06-15  Bruno Haible  <bruno@clisp.org>
47335
47336         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47337         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47338         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47339         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47340         gl_CHECK_TYPE_SAME): New macros.
47341
47342 2006-06-15  Bruno Haible  <bruno@clisp.org>
47343
47344         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47345
47346 2006-06-15  Bruno Haible  <bruno@clisp.org>
47347
47348         * lib/stdint_.h: Rewritten to be fully auto-configured.
47349         Fixes bug on HP-UX/IA64.
47350
47351 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47352
47353         * lib/getdate.y (__attribute__): Don't define if already defined.
47354         Problem reported by Larry Jones.
47355         * lib/utimens.c (__attribute__): Likewise.
47356
47357 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47360         reported by Andreas Schwab.
47361
47362 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47363             Bruno Haible  <bruno@clisp.org>
47364
47365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47366         check for the declaration of strnlen and a run test that exposes the
47367         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47368         rpl_strndup.
47369
47370 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47371             Bruno Haible  <bruno@clisp.org>
47372
47373         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47374
47375 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47376
47377         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47378         compile test, for Tru64 4.0D.
47379
47380 2006-05-28  Karl Berry  <karl@gnu.org>
47381
47382         * config/srclist.txt (printf-args.c): lose sync.
47383
47384 2006-05-26  Martin Lambers  <marlam@marlam.de>
47385
47386         * lib/getpass.c: Updates the test for the native W32 API, and adds
47387         missing includes, thus fixing compilation warnings.
47388
47389 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47390
47391         * lib/exclude.c (exclude_fnmatch): New function.
47392         (excluded_file_name): Call exclude_fnmatch.
47393         * lib/exclude.h (excluded_file_name): New prototype
47394
47395 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47396
47397         * lib/tempname.c (small_open, large_open): New macros.
47398         (__open, __open64) [!_LIBC]: Remove.
47399         (__gen_tempname): Use small_open and large_open instead of __open
47400         and __open64.  This fixes a portability bug on HP-UX 11.11i
47401         reported by Simon Wing-Tang in
47402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47403
47404 2006-05-24  Bruno Haible  <bruno@clisp.org>
47405
47406         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47407         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47408         Reported by Thorsten Maerz <torte@netztorte.de> via
47409         Aaron Stone <aaron@serendipity.cx>.
47410
47411 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47412
47413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47414         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47415         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47416         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47417         not really conditional on the cache.
47418         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47419
47420 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47421
47422         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47423         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47424         (my_usleep): Don't mishandle maximum value.
47425
47426 2006-05-19  Jim Meyering  <jim@meyering.net>
47427
47428         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47429
47430 2006-05-17  Bruno Haible  <bruno@clisp.org>
47431
47432         Cygwin portability.
47433         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47434
47435 2006-05-17  Bruno Haible  <bruno@clisp.org>
47436
47437         * lib/stdint_.h: Fix recognition of Cygwin.
47438
47439 2006-05-15  Bruno Haible  <bruno@clisp.org>
47440
47441         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47442         on libtool patch by Ralf Wildenhues.
47443
47444 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47445
47446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47447         test for C99 conformance; (bool) 0.5 is an integer constant
47448         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47449         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47450
47451 2006-05-11  Simon Josefsson  <jas@extundo.com>
47452
47453         * m4/xvasprintf.m4: Fix obvious typo.
47454
47455 2006-05-11  Jim Meyering  <jim@meyering.net>
47456
47457         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47458         James Lemley.
47459
47460 2006-05-10  Simon Josefsson  <jas@extundo.com>
47461
47462         * lib/md4.c: Typo fix, update copyright years.
47463         (K1, K2): Don't use L because it turn computations into 64-bit on
47464         64-bit platforms.
47465
47466 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47467
47468         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47469         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47470         unwanted sign propagation, e.g., on hosts with 64-bit int.
47471         There still are some problems with reeelly weird theoretical hosts
47472         (e.g., 33-bit int) but it's not worth worrying about now.
47473         * lib/sha1.c (rol): Likewise.
47474         (K1, K2, K3, K4): Remove unnecessary L suffix.
47475
47476 2006-05-10  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/des.c: Cast to avoid warnings.
47479
47480 2006-05-09  Bruno Haible  <bruno@clisp.org>
47481
47482         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47483         (Depends-on): Depend also on xsize, stdarg.
47484         (configure.ac): Add gl_XVASPRINTF.
47485
47486 2006-05-09  Bruno Haible  <bruno@clisp.org>
47487
47488         * m4/xvasprintf.m4: New file.
47489
47490 2006-05-09  Bruno Haible  <bruno@clisp.org>
47491
47492         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47493         (EOVERFLOW): Define fallback value.
47494         (xstrcat): New function.
47495         (xvasprintf): Recognize the special case of a string concatenation.
47496
47497 2006-05-08  Eric Blake  <ebb9@byu.net>
47498
47499         * gnulib-tool (func_version): Base copyright year on CVS date.
47500         (func_emit_copyright_notice): New function.
47501         (func_emit_lib_Makefile_am): Use it.
47502         (func_emit_tests_Makefile_am): Likewise.
47503         (func_import): Likewise.
47504
47505 2006-05-08  Bruno Haible  <bruno@clisp.org>
47506
47507         * modules/stdarg: New file.
47508         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47509
47510 2006-05-08  Bruno Haible  <bruno@clisp.org>
47511
47512         * m4/stdarg.m4: New file, from GNU gettext.
47513
47514 2006-05-08  Bruno Haible  <bruno@clisp.org>
47515
47516         * config/srclist.txt (build-aux/config.rpath): different from latest
47517         release.
47518
47519 2006-05-08  Bruno Haible  <bruno@clisp.org>
47520
47521         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47522
47523 2006-05-05  Jim Meyering  <jim@meyering.net>
47524
47525         * m4/warning.m4: New file, derived from bison's file by the same name.
47526
47527 2006-05-03  Bruno Haible  <bruno@clisp.org>
47528
47529         * lib/stdint_.h: Shorter URL.
47530         * lib/inttypes.h: Likewise.
47531
47532 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47533
47534         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47535
47536 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         * lib/verify.h: Document the internals better.  Most of this change
47539         was written by Bruno Haible.
47540
47541 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47542
47543         * doc/verify.texi: New file, partly based on a proposal by
47544         Bruno Haible.
47545
47546 2006-05-02  Bruno Haible  <bruno@clisp.org>
47547
47548         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47549         test from here...
47550         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47551
47552 2006-04-29  Bruno Haible  <bruno@clisp.org>
47553
47554         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47555         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47556
47557 2006-04-29  Bruno Haible  <bruno@clisp.org>
47558
47559         * gnulib-tool: Make --update option actually work.
47560
47561 2006-04-29  Bruno Haible  <bruno@clisp.org>
47562
47563         * doc/gcd.texi: New file.
47564         * doc/gnulib.texi: Include it.
47565
47566 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47567
47568         * lib/getdate.y (get_date): When adding relative date, start with the
47569         initial time, not with the result of the first mktime call.
47570
47571 2006-04-25  Bruno Haible  <bruno@clisp.org>
47572
47573         * gnulib-tool (func_import): Output the include directives in three
47574         blocks, sorted separately.
47575         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47576
47577 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47580         to define main with arguments, for C++.  Reported by Eric Blake.
47581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47582         Prefer 'int main ()' to 'int main (void)', for C++.
47583         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47584         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47585         for 'main', for C99 and C++.
47586
47587 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47588
47589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47590         Don't assume that exit status -1 is valid.
47591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47592         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47593         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47594         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47595         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47596         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47597         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47598         functions can be used without declaring them, or that you can
47599         exit with status -1.
47600         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47601
47602 2006-04-24  Karl Berry  <karl@gnu.org>
47603
47604         * config/srclist.txt (longdouble.m4): sync lost.
47605
47606 2006-04-24  Eric Blake  <ebb9@byu.net>
47607
47608         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47609
47610 2006-04-24  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47613         poll() implementation in AIX.
47614         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47615
47616 2006-04-24  Bruno Haible  <bruno@clisp.org>
47617
47618         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47619         assigned exactly once.
47620
47621 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47622             Bruno Haible  <bruno@clisp.org>
47623
47624         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47625         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47626         for AM_CPPFLAGS.
47627
47628 2006-04-23  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/copy-file: Depend on unistd.
47631         * modules/execute: Likewise.
47632         * modules/fatal-signal: Likewise.
47633         * modules/findprog: Likewise.
47634         * modules/mkdtemp : Likewise.
47635         * modules/pipe: Likewise.
47636         * modules/wait-process: Likewise.
47637
47638 2006-04-23  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47641         condition was already detected.
47642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47643
47644 2006-04-23  Bruno Haible  <bruno@clisp.org>
47645
47646         * lib/copy-file.c: Include <unistd.h> unconditionally.
47647         * lib/execute.c: Likewise.
47648         * lib/fatal-signal.c: Likewise.
47649         * lib/findprog.c: Likewise.
47650         * lib/mkdtemp.c: Likewise.
47651         * lib/pipe.h: Likewise.
47652         * lib/pipe.c: Likewise.
47653         * lib/wait-process.h: Likewise.
47654
47655 2006-04-23  Bruno Haible  <bruno@clisp.org>
47656
47657         * gnulib-tool (func_usage): Fix --import description. Document
47658         --update.
47659         (func_import): Create temporary file in a temporary directory, if
47660         --dry-run is specified. Silence errors from 'grep' when there are no
47661         m4 files in $m4dir.
47662         (func_create_testdir): Silence errors from 'grep' when there are no
47663         m4 files in $m4dir.
47664         Reported by Karl Berry <karl@freefriends.org>.
47665
47666 2006-04-20  Bruno Haible  <bruno@clisp.org>
47667
47668         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47669         one argument, so that the code will be portable to Autoconf 2.60.
47670         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47671         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47672         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47673
47674 2006-04-19  Derek Price  <derek@ximbiot.com>
47675             Eric Blake  <ebb9@byu.net>
47676
47677         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47678         rather than "/full/path.h".  Update comment to match.  Shorten &
47679         generalize m4_translit call via AS_TR_CPP.
47680
47681 2006-04-19  Derek Price  <derek@ximbiot.com>
47682             Eric Blake  <ebb9@byu.net>
47683
47684         * lib/inttypes.h: Correct grammar in comment.
47685
47686 2006-04-18  Derek Price  <derek@ximbiot.com>
47687             Paul Eggert  <eggert@cs.ucla.edu>
47688
47689         * modules/inttypes: New file.
47690         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47691
47692 2006-04-18  Derek Price  <derek@ximbiot.com>
47693             Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47696         New files.
47697
47698 2006-04-18  Derek Price  <derek@ximbiot.com>
47699             Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         * lib/inttypes.h: New file.
47702         * lib/strtoimax.c: Assume <inttypes.h>.
47703
47704 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47705
47706         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47707         isn't mounted.  Problem reported by Kir Kolyshkin.
47708
47709 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47710
47711         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47712         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47713         Derek R. Price.
47714         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47715         implementation.
47716
47717 2006-04-12  Eric Blake  <ebb9@byu.net>
47718
47719         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47720         is now done automatically by the corresponding Autoconf macro.
47721
47722 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47723
47724         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47725         time_r.h.
47726
47727 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47728
47729         Merge regex changes from libc, removing some of our
47730         POSIX-conformance changes that were rejected and redoing them in a
47731         less-intrusive way.
47732
47733         * lib/regcomp.c (re_compile_internal, init_dfa):
47734         Length arg is now size_t, not Idx.  All uses changed.
47735         (peek_token): Forward decl now says internal_function.
47736         (__re_error_msgid, __re_error_msgid_idx):
47737         Now static rather than extern with attribute_hidden.
47738         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47739         For some reason libc prefers K&R style defns for external functions.
47740         (regerror) [!defined _LIBC]: Likewise.
47741         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47742         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47743         (build_range_exp, build_collating_symbol):
47744         Use K&R-style defn.
47745         (re_compile_fastmap): Use '\0' to memset, not 0.
47746         (utf8_sb_map): Make the calculations more obvious.
47747         (init_dfa, parse_bracket_exp, build_charclass_op):
47748         Call calloc and cast result, as glibc does.
47749         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47750         (build_range_exp, build_collating_symbol):
47751         Now internal functions.
47752
47753         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47754
47755         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47756         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47757         Don't depend on VMS; depend on __VMS instead, for POSIX
47758         namespace cleanness.
47759         (regoff_t): Define to ssize_t, not long int.
47760
47761         Remove the REG_ macros named below.  Instead, make the old names
47762         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47763         __USE_GNU_REGEX.
47764         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47765         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47766         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47767         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47768         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47769         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47770         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47771         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47772         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47773         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47774         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47775         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47776         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47777         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47778         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47779         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47780         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47781         (REG_NREGS):
47782         Remove.  All uses replaced by the old RE_* names.
47783         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47784         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47785         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47786         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47787         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47788         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47789         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47790         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47791         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47792         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47793         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47794         Don't bother having these macros be independent of each others'
47795         values, since they no longer exist in the POSIX name space.
47796
47797         Rename the following member names back to their old names,
47798         unless !__USE_GNU_REGEX.  All uses changed back.
47799         (buffer): Renamed from re_buffer.
47800         (allocated): Renamed from re_allocated.
47801         (used): Renamed from re_used.
47802         (syntax): Renamed from re_syntax.
47803         (fastmap): Renamed from re_fastmap.
47804         (translate): Renamed from re_translate.
47805         (can_be_null): Renamed from re_can_be_null.
47806         (regs_allocated): Renamed from re_regs_allocated.
47807         (fastmap_accurate): Renamed from re_fastmap_accurate.
47808         (no_sub): Renamed from re_no_sub.
47809         (not_bol): Renamed from re_not_bol.
47810         (not_eol): Renamed from re_not_eol.
47811         (newline_anchor): Renamed from re_newline_anchor.
47812         (num_regs): Renamed from rm_num_regs.
47813         (start): Renamed from rm_start.
47814         (end): Renamed from rm_end.
47815
47816         (free_state): Move up a bit.
47817
47818         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47819         #define to be empty.
47820         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47821         when that is what is intended.
47822         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47823         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47824         (MAX): New macro.
47825         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47826         All uses changed back to re_malloc, etc.  It's now the caller's
47827         responsibility to check for overflow; all callers changed.
47828         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47829         (re_x2nrealloc): Remove.
47830         (free_state): Remove decl.
47831
47832         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47833         (re_set_registers, re_exec):
47834         Use K&R-style defn.
47835
47836         2006-01-31  Roland McGrath  <roland@redhat.com>
47837
47838         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47839         Reported by Mike Frysinger <vapier@gentoo.org>.
47840
47841         2006-01-15  Andreas Jaeger  <aj@suse.de>
47842
47843         [BZ #1950]
47844         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47845         build_wcs_upper_buffer change.
47846         (build_wcs_upper_buffer): Change return type.
47847
47848         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47849
47850         * lib/regex_internal.h: Include <stdint.h> if available.
47851
47852         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47853
47854         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47855
47856         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47857
47858         * lib/regcomp.c: Adjust for changed secondary hash function.
47859
47860         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47861
47862         * lib/regex.h: Pretty printing.
47863         Clean up namespace a bit.
47864
47865         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47866
47867         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47868         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47869
47870         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47871                     Ulrich Drepper  <drepper@redhat.com>
47872
47873         [BZ #1302]
47874         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47875         changed.
47876         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47877
47878         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47879
47880         [BZ #281]
47881         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47882         * lib/regcomp.c: Remove unnecessary uses of
47883         unsigned RE_TRANSLATE_TYPE.
47884         * lib/regex_internal.h: Likewise.
47885         * lib/regex_internal.c: Likewise.
47886         * lib/regexec.c: Likewise.
47887         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47888
47889         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47890
47891         * lib/regexec.c (find_recover_state): Remove unnecessary
47892         initialization.
47893         (transit_state_bkref): Make DFA a const pointer.
47894         (get_subexp): Likewise.
47895         (check_arrival): Likewise.
47896         (update_cur_sifted_state): Likewise.
47897         (re_search_internal): Likewise.
47898         (prune_impossible_nodes): Likewise.
47899         (acquire_init_state_context): Likewise.
47900         (proceed_next_node): Likewise.
47901         (set_regs): Likewise.
47902         (free_fail_stack_return): Likewise.
47903         (check_arrival_expand_ecl): Mark DFA parameter as const.
47904         (check_arrival_expand_ecl_sub): Likewise.
47905         (check_subexp_limits): Likewise.
47906         (sub_epsilon_src_nodes):  Likewise.
47907         (add_epsilon_src_nodes):  Likewise.
47908         (merge_state_array): Likewise.
47909         (update_regs): Likewise.
47910         (build_trtable): Likewise.
47911         (sift_states_backward): Mark MCTX parameter as const.
47912         (build_sifted_states): Likewise.
47913         (update_cur_sifted_state): Likewise.
47914         (sift_states_mkref): Likewise.
47915         (check_arrival_expand_ecl): Mark eclosure as const.
47916         (check_dst_limits_calc_pos_1): Likewise.
47917         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47918         pointer.
47919
47920         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47921
47922         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47923         (transit_state_sb): Likewise.
47924         (transit_state_mb): Likewise.
47925         (sift_states_iter_mb): Likewise.
47926         (check_arrival_add_next_nodes): Likewise.
47927         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47928         [_LIBC] (re_search_2_stub): Use mempcpy.
47929
47930         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47931         mbrtowc for very simple UTF-8 case.
47932
47933         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47934         a pointer-to-const.
47935         (re_acquire_state_context): Likewise.
47936         * lib/regex_internal.h: Adjust prototypes.
47937
47938         * lib/regex.c: Prevent using C++ compilers.
47939
47940         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47941         (re_acquire_state_context): Likewise.
47942
47943 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47944
47945         * modules/regex (Depends-on): Add ssize_t.
47946
47947 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47948
47949         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47950         translation table.
47951
47952 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47953
47954         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47955
47956 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47957             Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47960         <sys/types.h> and <inttypes.h>.
47961
47962 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47963
47964         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47965         `__error_t_defined', so argp.h will not typedef the former.
47966
47967 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47970         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47971         glibc names.  Even if glibc is changed to conform to POSIX, the
47972         traditional names will be available anyway, since regex depends on
47973         the extensions module.  Also, fix a longstanding typo in the
47974         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47975         reported by Emanuele Giaquinta.  Also, change sense of cached
47976         variable, so that the message makes sense.
47977
47978 2006-03-24  Simon Josefsson  <jas@extundo.com>
47979
47980         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47981         including some doc fixes.
47982         (base64_encode_alloc): Fix +1 bug on allocation failures.
47983
47984 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47985
47986         * lib/base64.c (base64_encode): Do not read past end of array with
47987         unsanitized input on systems with CHAR_BIT > 8.
47988
47989 2006-03-24  Eric Blake  <ebb9@byu.net>
47990
47991         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47992
47993 2006-03-22  Karl Berry  <karl@gnu.org>
47994
47995         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47996         * config/srclistvars.sh (COREUTILS): new var.
47997
47998 2006-03-17  Jim Meyering  <jim@meyering.net>
47999
48000         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48001         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48002
48003 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48004
48005         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48006         no longer needs it.  Instead, check that regoff_t is as least
48007         as wide as ptrdiff_t.
48008
48009         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48010         so that our regex.h stays compatible with the installed regex.
48011         This is helpful for installers who configure --without-included-regex.
48012         Problem reported by Emanuele Giaquinta.
48013
48014 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48015
48016         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48017         Typedef to long int, not to off_, as POSIX will likely change
48018         in that direction.
48019
48020 2006-03-15  Eric Blake  <ebb9@byu.net>
48021
48022         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48023
48024 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48025
48026         * lib/argp-help.c (validate_uparams): Fix typo
48027         * lib/argp-parse.c (argp_default_options): Consistently begin help
48028         messages with a lowercase letter.
48029
48030 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48031
48032         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48033         overrun buffers and shouldn't be used (much as gets shouldn't be
48034         used).
48035         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48036
48037 2006-03-08  Simon Josefsson  <jas@extundo.com>
48038
48039         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48040         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48041
48042 2006-03-08  Simon Josefsson  <jas@extundo.com>
48043
48044         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48045         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48046
48047 2006-03-08  Simon Josefsson  <jas@extundo.com>
48048
48049         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48050         signal that configure disabled the device.
48051
48052 2006-03-08  Simon Josefsson  <jas@extundo.com>
48053
48054         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48055         languages.
48056
48057 2006-03-07  Simon Josefsson  <jas@extundo.com>
48058
48059         * modules/getopt (Depends-on): Add unistd.
48060
48061         * modules/unistd: New file.
48062
48063 2006-03-07  Simon Josefsson  <jas@extundo.com>
48064
48065         * modules/gc-random: New file.
48066
48067 2006-03-07  Simon Josefsson  <jas@extundo.com>
48068
48069         * m4/unistd_h.m4: New file.
48070
48071 2006-03-07  Simon Josefsson  <jas@extundo.com>
48072
48073         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48074         test to be side-effect free by storing the result in the cache
48075         variable gl_cv_lib_readline, and moving the assignment of
48076         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48077         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48078
48079 2006-03-07  Simon Josefsson  <jas@extundo.com>
48080
48081         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48082         error on missing devices (the functions will return an error).
48083
48084         * m4/gc.m4: Move random stuff to gc-random.m4
48085
48086 2006-03-07  Simon Josefsson  <jas@extundo.com>
48087
48088         * lib/unistd_.h: New file.
48089
48090 2006-03-07  Simon Josefsson  <jas@extundo.com>
48091
48092         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48093
48094 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48095
48096         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48097         Problem reported by Juan Manuel Guerrero.
48098
48099 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48102         the unistd module.
48103         * lib/getlogin_r.c: Likewise.
48104         * lib/getlogin_r.h: Likewise.
48105         * lib/glob.c: Likewise.
48106         * lib/pagealign_alloc.c: Likewise.
48107         * lib/unistd_.h: Remove; no longer needed.
48108
48109 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48112         Add unistd.
48113         * modules/c-stack (Depends-on): Add unistd.
48114         * modules/getlogin_r: Likewise.
48115         * modules/glob: Likewise.
48116         * modules/pagealign_alloc: Likewise.
48117         * modules/unistd (Files): Remove lib/unistd_.h.
48118         (EXTRA_DIST): Remove.
48119         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48120         need unistd_.h.
48121         (MOSTLYCLEANFILES): Remove unistd.h-t.
48122
48123 2006-03-03  Simon Josefsson  <jas@extundo.com>
48124
48125         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48126
48127 2006-03-03  Simon Josefsson  <jas@extundo.com>
48128
48129         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48130         libidn and bison.
48131
48132 2006-03-03  Simon Josefsson  <jas@extundo.com>
48133
48134         * build-aux/maint.mk: Add indent target.
48135
48136 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48137
48138         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48139         our replacement poll.h in any case, to avoid a differing
48140         declaration from a system header.  Seen on AIX.
48141
48142 2006-03-01  Simon Josefsson  <jas@extundo.com>
48143
48144         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48145         <kasal@ucw.cz>.
48146
48147 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48148
48149         * modules/gettime (Depends-on): Add extensions module.
48150         * modules/nanosleep (Depends-on): Likewise.
48151         * modules/settime (Depends-on): Likewise.
48152
48153 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48154
48155         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48156         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48157         pedantically.
48158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48159         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48160
48161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48162         not "==".  Reported by Ralf Wildenhues.
48163
48164 2006-03-01  Karl Berry  <karl@gnu.org>
48165
48166         * doc/Copyright/request-*: new files, synced from gnuorg.
48167
48168 2006-03-01  Karl Berry  <karl@gnu.org>
48169
48170         * config/srclist.txt (Copyright/*): new entries.
48171
48172 2006-02-28  Simon Josefsson  <jas@extundo.com>
48173
48174         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48175
48176 2006-02-27  Simon Josefsson  <jas@extundo.com>
48177
48178         * lib/base64.h: Indent #define's.  From Jim Meyering
48179         <jim@meyering.net>.
48180
48181 2006-02-27  Jim Meyering  <jim@meyering.net>
48182
48183         Revert the change of 2006-02-24, so these files can continue
48184         to be sync'd from gettext.
48185         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48186         of `config.h'.
48187
48188 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48189
48190         * modules/intprops: New file.
48191         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48192         Add intprops.
48193         * modules/getloadavg (Files): Remove lib/intprops.h.
48194         (Depends-on): Add intprops.
48195         * modules/human: Likewise.
48196         * modules/inttostr: Likewise.
48197         * modules/openat: Likewise.
48198         * modules/sig2str: Likewise.
48199         * modules/userspec: Likewise.
48200         * modules/utimecmp: Likewise.
48201         * modules/xnanosleep: Likewise.
48202         * modules/xstrtol: Likewise.
48203
48204 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48205
48206         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48207         * modules/lock-tests (TESTS): Use $(EXEEXT).
48208         * modules/tls-tests: Likewise.
48209         * modules/argp-tests: Likewise.
48210         (check_PROGRAMS): New var, replacing...
48211         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48212
48213 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48214
48215         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48216         `config.h'.
48217
48218 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48221
48222 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48223
48224         Sync from coreutils.
48225         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48226         gl_CHDIR_SAFER.
48227
48228 2006-02-22  Jim Meyering  <jim@meyering.net>
48229
48230         Sync from coreutils.
48231         * m4/chdir-safer.m4: New file.
48232
48233 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48234
48235         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48236         AT_FDCWD exceeds INT_MAX.
48237         * lib/openat.h (AT_FDCWD): Likewise.
48238
48239 2006-02-17  Eric Blake  <address@hidden>
48240
48241         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48242
48243 2006-02-16  Simon Josefsson  <jas@extundo.com>
48244
48245         * modules/getaddrinfo (Depends-on): Add sys_socket.
48246
48247 2006-02-15  Simon Josefsson  <jas@extundo.com>
48248
48249         * build-aux/maint.mk: Add dsyntax-check rule.
48250
48251 2006-02-15  Eric Blake  <ebb9@byu.net>
48252
48253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48254         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48255         'present but cannot compile' warnings on cygwin.
48256         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48257         use ws2tcpip.h if sys/socket.h works.
48258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48259         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48260
48261 2006-02-14  Simon Josefsson  <jas@extundo.com>
48262
48263         * modules/maintainer-makefile (Files): Rename.
48264
48265         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48266         and (the local) Makefile.cfg to maint-cfg.mk.
48267
48268         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48269         to the latter.
48270
48271         * modules/maintainer-makefile: New module.
48272
48273         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48274         severaly stripped to make it possible to build it up from scratch
48275         with reliable tests.
48276
48277         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48278         fixes to permit overriding the default actions when configure and
48279         makefile are not available.
48280
48281 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         Sync from coreutils.
48284         * modules/lstat (Depends-on): Don't depend on xalloc.
48285         (License): Change from GPL to LGPL, since this is now simply a
48286         replacement for a libc function.
48287
48288 2006-02-14  Jim Meyering  <jim@meyering.net>
48289
48290         Sync from coreutils.
48291
48292         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48293         failure on deficient systems, and simplify gnulib lgpl dependencies.
48294         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48295         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48296
48297         * lib/xalloc-die.c: Remove unused definition of N_.
48298
48299 2006-02-14  Jim Meyering  <jim@meyering.net>
48300
48301         Sync from coreutils.
48302         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48303         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48304         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48305         double-quote uses of that variable, to accommodate the rare case in
48306         which getmntent is available in none of the libraries checked.  This
48307         happens at least on FreeBSD 5.0.
48308
48309 2006-02-13  Simon Josefsson  <jas@extundo.com>
48310
48311         * gnulib-tool (Usage): Fix --import, from
48312         karl@freefriends.org (Karl Berry).
48313
48314 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48315
48316         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48317
48318 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48319
48320         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48321         "autoupdate" on 2005-12-12.
48322
48323 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48324
48325         * modules/closeout (Depends-on): Remove atexit.
48326
48327 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48328
48329         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48330         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48331
48332 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48333
48334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48335         __EXTENSIONS__ if this causes compilation to fail.  Problem
48336         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48337         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48338
48339 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48340
48341         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48342         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48344         All uses changed.
48345
48346 2006-01-26  Simon Josefsson  <jas@extundo.com>
48347
48348         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48349         prototype is visible on mingw32.
48350
48351         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48352         for mingw32.
48353
48354         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48355         mingw32).
48356
48357 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48360         attempt to open for write; this always fails, at least on POSIX
48361         hosts.  This reinstates the 2006-01-09 change, which was
48362         inadvertently removed.
48363
48364 2006-01-26  Bruno Haible  <bruno@clisp.org>
48365
48366         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48367         Reported by Paul Eggert.
48368
48369 2006-01-26  Bruno Haible  <bruno@clisp.org>
48370             Paul Eggert  <eggert@cs.ucla.edu>
48371
48372         * lib/stdbool_.h (_Bool)
48373         [(! (defined __cplusplus || defined __BEOS__)
48374           && !defined __GNUC__
48375           && !(defined __HP_cc || defined __xlc__
48376                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48377                || defined __sgi))]:
48378         #define to signed char in these cases too; this simplifies
48379         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48380         etc., separately) and makes it more conservative.
48381
48382 2006-01-25  Simon Josefsson  <jas@extundo.com>
48383
48384         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48385         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48386         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48387
48388 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48389
48390         * lib/argp-namefrob.h: Bugfix. Remove stray #
48391
48392 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48395         so that we test the test.
48396         Check for yet another HP-UX cc bug involving *bool |= bool.
48397
48398 2006-01-25  Karl Berry  <karl@gnu.org>
48399
48400         * config/srclist.txt (vasnprintf.c): sync lost.
48401
48402 2006-01-25  Jim Meyering  <jim@meyering.net>
48403
48404         Sync from the stable (b5) branch of coreutils:
48405
48406         * lib/fts.c (fts_children): Don't let close() clobber errno from
48407         failed fchdir().
48408
48409         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48410         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48411         a dangling symlink.  That can also happen at least for ELOOP.
48412         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48413         FYI, this bug predates the inclusion of fts.c in coreutils.
48414
48415         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48416         in their own block, so pre-c99 compilers don't object.
48417
48418         Avoid the double-free (first in fts_read, second in fts_close) that
48419         would occur when an `active' directory is made inaccessible (e.g.,
48420         via chmod a-x) during a traversal.
48421         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48422         before returning.  Reproduce this failure by
48423         mkdir -p a/b; cd a; chmod a-x . b
48424         Reported by Stavros Passas.
48425
48426 2006-01-25  Jim Meyering  <jim@meyering.net>
48427
48428         * lib/fileblocks.c: Remove more useless parentheses.
48429         * lib/readutmp.h: Likewise.
48430
48431 2006-01-25  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48434         warnings.
48435         Reported by Paul Eggert.
48436
48437 2006-01-25  Bruno Haible  <bruno@clisp.org>
48438
48439         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48440         rid of a trap command. For Solaris sh.
48441         Reported by Mark D. Baushke <mdb@gnu.org>.
48442
48443 2006-01-24  Simon Josefsson  <jas@extundo.com>
48444
48445         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48446         Bruno.
48447
48448 2006-01-24  Karl Berry  <karl@gnu.org>
48449
48450         * config/srclist.txt (argp-namefrob.h): sync lost.
48451
48452 2006-01-24  Jim Meyering  <jim@meyering.net>
48453
48454         * modules/openat (Files): Add lib/intprops.h.
48455         From Mark D. Baushke.
48456
48457 2006-01-24  Jim Meyering  <jim@meyering.net>
48458
48459         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48460         Reported by Mark D. Baushke.
48461
48462 2006-01-24  Jim Meyering  <jim@meyering.net>
48463
48464         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48465
48466 2006-01-24  Bruno Haible  <bruno@clisp.org>
48467
48468         * modules/strnlen (Maintainer): Change from glibc to all.
48469
48470 2006-01-24  Bruno Haible  <bruno@clisp.org>
48471
48472         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48473         Patch by Paul Eggert.
48474
48475 2006-01-24  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48478         already has it.
48479         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48480         2005-11-26.
48481
48482         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48483         'signed char' to avoid problems with the built-in _Bool type.
48484         Reported by Paul Eggert on 2005-11-26.
48485
48486 2006-01-24  Bruno Haible  <bruno@clisp.org>
48487
48488         * gnulib-tool (func_import): Avoid constructing complicated sed
48489         expressions inside backquote.
48490         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48491
48492 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48493
48494         These changes imported from libc.
48495         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48496         test and two separate function calls.
48497         * lib/strndup.c (__strndup): Add libc_hidden_def.
48498
48499 2006-01-23  Simon Josefsson  <jas@extundo.com>
48500
48501         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48502         Remove the test_*_SOURCES variable: automake infers it by default.
48503         * modules/tls-tests: Likewise.
48504
48505 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48506
48507         Work around porting bugs reported by Dieter in
48508         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48509         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48510         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48511         Include "getopt.h" first, to check interface.
48512         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48513         !HAVE_DECL_GETENV.
48514         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48515         (__strndup): Revert to K&R-style function dfns, the glibc style.
48516         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48517         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48518         Include strnlen.h first, to get prototype properly.
48519         (strnlen): Renamed from __strnlen.
48520         Remove weak alias.
48521
48522 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48523
48524         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48525
48526 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48527
48528         * config/srclist.txt: Adjust to reflect glibc reorganization.
48529         This affects only comments.
48530
48531 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48532
48533          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48534          Reported by Bruce Korb <bkorb@gnu.org>.
48535
48536 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48537
48538         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48539         to pacify gcc -Wswitch-default.
48540
48541 2006-01-22  Bruno Haible  <bruno@clisp.org>
48542
48543         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48544         temporary buffer for sprintf, take into account the precision also
48545         for 'd', 'i', 'u', 'o', 'x', 'X'.
48546
48547 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48548
48549         * modules/argp-tests: New module
48550         * tests/test-argp.c: New file
48551         * tests/test-argp-2.sh: New file
48552
48553 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48554
48555         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48556         (__argp_base_name): Removed
48557         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48558         typo.
48559         (__argp_base_name): Provide macro definition or extern declaration
48560         depending on the configuration
48561
48562 2006-01-20  Simon Josefsson  <jas@extundo.com>
48563
48564         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48565
48566 2006-01-20  Simon Josefsson  <jas@extundo.com>
48567
48568         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48569
48570 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48573         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48574         Suggested by Bruno Haible.
48575
48576 2006-01-20  Karl Berry  <karl@gnu.org>
48577
48578         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48579         until changes propagate, I guess.
48580
48581 2006-01-19  Simon Josefsson  <jas@extundo.com>
48582
48583         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48584
48585 2006-01-19  Simon Josefsson  <jas@extundo.com>
48586
48587         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48588
48589 2006-01-19  Simon Josefsson  <jas@extundo.com>
48590
48591         * gnulib-tool: Set check_PROGRAMS.
48592
48593         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48594         modules/des-tests, modules/gc-arcfour-tests,
48595         modules/gc-arctwo-tests, modules/gc-des-tests,
48596         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48597         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48598         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48599         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48600         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48601         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48602         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48603         test_*_SOURCES.
48604
48605 2006-01-18  Simon Josefsson  <jas@extundo.com>
48606
48607         * modules/socklen (Depends-on): Depend on sys_socket.
48608
48609 2006-01-18  Simon Josefsson  <jas@extundo.com>
48610
48611         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48612         modules/des-tests, modules/gc-arcfour-tests,
48613         modules/gc-arctwo-tests, modules/gc-des-tests,
48614         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48615         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48616         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48617         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48618         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48619         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48620         $(EXEEXT) to automake TESTS variable, for mingw32.
48621
48622 2006-01-17  Simon Josefsson  <jas@extundo.com>
48623
48624         * modules/socklen (Include): Need sys/socket.h.
48625
48626 2006-01-17  Bruno Haible  <bruno@clisp.org>
48627
48628         * modules/ssize_t (Include): Add <sys/types.h>.
48629
48630 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48631
48632         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48633         it's not portable and it doesn't work with cross-compiles.
48634         Problem reported by Bruno Haible.  Fix missing-$ typo in
48635         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48636         -zignore from being used with Sun's C compiler.
48637
48638 2006-01-12  Simon Josefsson  <jas@extundo.com>
48639
48640         * lib/base64.c: Fix warning, reported by Bruno Haible
48641         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48642
48643 2006-01-12  Bruno Haible  <bruno@clisp.org>
48644
48645         * modules/ldd: New file.
48646         * build-aux/ldd.sh.in: New file.
48647         * MODULES.html.sh (Support for building libraries and executables): Add
48648         ldd.
48649
48650 2006-01-12  Bruno Haible  <bruno@clisp.org>
48651
48652         * m4/ldd.m4: New file.
48653
48654 2006-01-12  Bruno Haible  <bruno@clisp.org>
48655
48656         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48657         endless loop while replacing $auxdir with build-aux.
48658
48659 2006-01-11  Simon Josefsson  <jas@extundo.com>
48660
48661         * lib/stdint_.h (SIZE_MAX): Add missing (.
48662
48663 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48664
48665         Sync from coreutils.
48666         * lib/md5.c: Fix commentary typos.
48667         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48668         * lib/md5.h (__attribute__): Remove; unused.
48669         * lib/sha1.c: Fix commentary to match md5 better.
48670         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48671         so that we don't need to worry about alignment.  All uses changed.
48672         This merges the 2005-10-28 md5 change into sha1.
48673
48674 2006-01-11  Jim Meyering  <jim@meyering.net>
48675
48676         Sync from coreutils.
48677         * lib/md5.c (OP): Fix spacing.
48678
48679 2006-01-11  Bruno Haible  <bruno@clisp.org>
48680
48681         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48682         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48683         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48684
48685 2006-01-11  Bruno Haible  <bruno@clisp.org>
48686
48687         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48688         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48689         the "early" section as well.
48690
48691 2006-01-11  Bruno Haible  <bruno@clisp.org>
48692
48693         Avoid "ar: no archive members specified" error on MacOS X.
48694         * gnulib-tool (func_modules_add_dummy): New function.
48695         (func_import, func_create_testdir): Invoke it.
48696
48697 2006-01-11  Bruno Haible  <bruno@clisp.org>
48698
48699         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48700         with $auxdir in AC_CONFIG_FILES statements.
48701
48702 2006-01-11  Bruno Haible  <bruno@clisp.org>
48703
48704         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48705         Initialize also noinst_HEADERS to empty.
48706
48707 2006-01-11  Bruno Haible  <bruno@clisp.org>
48708
48709         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48710         variables.
48711         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48712         autoreconf.
48713
48714 2006-01-11  Bruno Haible  <bruno@clisp.org>
48715
48716         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48717         overridable by the user.
48718         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48719
48720 2006-01-10  Simon Josefsson  <jas@extundo.com>
48721
48722         * modules/sys_socket: New file.
48723
48724 2006-01-10  Simon Josefsson  <jas@extundo.com>
48725
48726         * m4/sys_socket_h.m4: New file.
48727
48728 2006-01-10  Simon Josefsson  <jas@extundo.com>
48729
48730         * lib/socket_.h: New file.
48731
48732 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48733
48734         * modules/readutmp (Maintainer): Add myself.
48735
48736 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48737
48738         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48739         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48740         People who are still concerned with buggy memcmp implementations
48741         can invoke gl_FUNC_MEMCMP themselves.
48742
48743 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48744
48745         * lib/regex_internal.h (BITSET_WORD_BITS):
48746         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48747         preprocessor mishandles large unsigned values as if they were signed.
48748         Problem reported by Claudio Fontana in
48749         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48750
48751 2006-01-10  Jim Meyering  <jim@meyering.net>
48752
48753         Avoid the double-free (first in fts_read, second in fts_close) that
48754         would occur when an `active' directory is made inaccessible (e.g.,
48755         via chmod a-x) during a traversal.
48756         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48757         before returning.  Reproduce this failure by
48758         mkdir -p a/b; cd a; chmod a-x . b
48759         Reported by Stavros Passas.
48760
48761         Sync from coreutils.
48762         * lib/sha1.c: Tweak grammar in a comment.
48763
48764 2006-01-10  Jim Meyering  <jim@meyering.net>
48765
48766         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48767         Patch by Joerg Sonnenberger.
48768
48769 2006-01-10  Bruno Haible  <bruno@clisp.org>
48770
48771         * modules/readutmp: Depend on module free.
48772         * modules/strtok_r: Depend on module restrict.
48773
48774 2006-01-10  Bruno Haible  <bruno@clisp.org>
48775
48776         * modules/gettext (configure.ac): Add an invocation of
48777         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48778
48779 2006-01-10  Bruno Haible  <bruno@clisp.org>
48780
48781         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48782         Reported by Werner Lemberg <wl@gnu.org>.
48783
48784 2006-01-10  Bruno Haible  <bruno@clisp.org>
48785
48786         * lib/localcharset.c: Update from GNU gettext.
48787
48788 2006-01-10  Bruno Haible  <bruno@clisp.org>
48789
48790         * lib/argp.h (__const): Remove macro. Use const instead.
48791         * lib/argp-fmtstream.h (__const): Likewise.
48792         * lib/glob_.h (__const): Remove macro.
48793         * lib/glob-libc.h: Use const instead of __const.
48794
48795 2006-01-10  Bruno Haible  <bruno@clisp.org>
48796
48797         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48798         variable.
48799         Needed to avoid an automake error regarding the 'gettext' module.
48800
48801 2006-01-09  Simon Josefsson  <jas@extundo.com>
48802
48803         * modules/inet_ntop (Depends-on): Add restrict.
48804
48805 2006-01-09  Simon Josefsson  <jas@extundo.com>
48806
48807         * modules/gc-rijndael-tests (License): Put under LGPL.
48808
48809         * modules/gc-des-tests (License): Likewise.
48810
48811         * modules/gc-arcfour-tests (License): Likewise.
48812
48813         * modules/gc-arctwo-tests (License): Likewise.
48814
48815         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48816
48817         * modules/gc-hmac-sha1-tests (Files): Likewise.
48818
48819         * modules/gc-hmac-md5-tests (License): Likewise.
48820
48821         * modules/gc-sha1-tests (License): Likewise.
48822
48823         * modules/gc-md5-tests (License): Likewise.
48824
48825         * modules/gc-md4-tests (License): Likewise.
48826
48827         * modules/gc-md2-tests (License): Likewise.
48828
48829         * modules/gc-tests (License): Likewise.
48830
48831         * modules/des-tests (License): Likewise.
48832
48833         * modules/md4-tests (License): Likewise.
48834
48835         * modules/md2-tests (License): Likewise.
48836
48837 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48838
48839         Sync from coreutils:
48840
48841         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48842         * modules/lib-ignore: New file.
48843         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48844         chdir-safer.m4, lchmod.m4.
48845         * modules/openat: Add mkdirat.c, openat-priv.h.
48846
48847 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         Sync from coreutils.
48850         * m4/lib-ignore.m4: New file.
48851         * m4/lchmod.m4: New file.
48852
48853 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48854
48855         Sync from coreutils.
48856         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48857         for write access: POSIX says that must fail.
48858         * lib/fts.c (diropen): Likewise.
48859         * lib/save-cwd.c (save_cwd): Likewise.
48860         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48861         well, for minor improvements on hosts that lack O_DIRECTORY.
48862         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48863         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48864         Fall back on chown if open failed with EACCES.
48865
48866         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48867         Report an error at compile-time if only a 1-second nominal clock
48868         resolution is found.
48869
48870         * lib/lchmod.h: New file.
48871         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48872         (make_dir_parents): Use lchown rather than chown, and
48873         lchmod rather than chmod.
48874
48875         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48876         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48877         "proc" reported by n0dalus.
48878
48879         * lib/mountlist.c: Include <limits.h>.
48880         (dev_from_mount_options)
48881         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48882         New function.  It no longer assumes "dev=" has the System V meaning
48883         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48884         (read_file_system_list)
48885         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48886         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48887         dev= in that case.
48888
48889         * lib/posixtm.h (PDS_PRE_2000): New macro.
48890         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48891         allow_century.  All usages changed.  Reject dates outside the range
48892         1969-1999 if PDS_PRE_2000 is used.
48893
48894 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48895
48896         Sync from coreutils.
48897         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48898         (Time of day items): Mention the possibility of leap seconds.
48899         Problem reported by Dr. David Alan Gilbert.
48900
48901 2006-01-09  Jim Meyering  <jim@meyering.net>
48902
48903         Sync from coreutils.
48904
48905         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48906
48907         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48908
48909         * lib/modechange.c (mode_compile): Reject an invalid mode string
48910         that starts with an octal digit.  From Andreas Gruenbacher.
48911
48912         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48913         and dup to open_safer and dup_safer, respectively.
48914         (openat_permissive): Fix typo in comment.
48915
48916         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48917         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48918         (_): Remove; no longer needed.
48919         (openat): Renamed from rpl_openat; no need for rpl_openat
48920         since openat.h renames openat for us.
48921         Replace most of the body with a call to openat_permissive,
48922         to avoid duplicate code.
48923         Port to (probably hypothetical) environments were mode_t is
48924         wider than int.
48925         (openat_permissive): Require mode arg, so that we can check
48926         types better.  Put it just after flags.  Change cwd failure
48927         indicator from pointer-to-bool to pointer-to-errno-value.
48928         All callers changed.
48929         Invoke openat_save_fail and/or openat_restore_fail if
48930         cwd_errno is null, so that openat can call us.
48931         (openat_permissive, fdopendir, fstatat, unlinkat):
48932         Simplify errno handling to avoid some duplicate code,
48933         as it's OK to set errno on success.
48934         * lib/openat.h: Revamp code so that function macros depend on
48935         __OPENAT_PREFIX only, not also on AT_FDCWD.
48936         (openat_ro): Remove.  Caller changed to use openat_permissive.
48937         (openat_permissive): Now a macro, if not a function.
48938         (openat_restore_fail, openat_save_fail): Now always functions,
48939         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48940
48941         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48942         and openat.c.
48943         * lib/mkdirat.c: Include openat-priv.h.
48944         Remove definitions of macros defined therein.
48945         * lib/openat.c: Likewise.
48946
48947         * lib/mkdirat.c (mkdirat): New file and function.
48948         * lib/openat.h (mkdirat): Declare.
48949
48950         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48951
48952         * lib/openat.h (openat_permissive): Declare.
48953         (openat_ro): Define.
48954
48955         * lib/openat.c (EXPECTED_ERRNO): New macro.
48956         (openat_permissive): New function -- used in remove.c rewrite.
48957         (all functions): Set errno just before returning, only if there
48958         was an actual failure.
48959         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48960
48961         Emulate openat-family functions using Linux's procfs, if possible.
48962         Idea and some code based on Ulrich Drepper's glibc changes.
48963
48964         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48965         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48966         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48967         before falling back on save_cwd and restore_cwd.
48968         (fdopendir, fstatat, unlinkat): Likewise.
48969
48970         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48971         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48972
48973         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48974         as second argument to va_arg.  Otherwise, some versions of gcc
48975         warn that `if this code is reached, the program will abort'.
48976
48977 2006-01-09  Jim Meyering  <jim@meyering.net>
48978
48979         Sync from coreutils.
48980         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48981         Require openat-priv.h.
48982
48983 2006-01-09  Bruno Haible  <bruno@clisp.org>
48984
48985         * modules/strnlen (Include): Use strnlen.h.
48986
48987 2006-01-09  Bruno Haible  <bruno@clisp.org>
48988
48989         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48990
48991 2006-01-09  Bruno Haible  <bruno@clisp.org>
48992
48993         * lib/sysexit_.h (EX_OK): New macro.
48994         Suggested by Martin Lambers <marlam@marlam.de>.
48995
48996 2006-01-09  Bruno Haible  <bruno@clisp.org>
48997
48998         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48999         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49000
49001 2006-01-09  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49004         numbers.
49005
49006 2006-01-09  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49009         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49010         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49011         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49012
49013 2006-01-09  Bruno Haible  <bruno@clisp.org>
49014
49015         * build-aux/javacomp.sh.in: New file, moved from lib/.
49016         * modules/javacomp-script (Files): Update.
49017         (configure.ac): Add AC_CONFIG_FILES invocation.
49018         (EXTRA_DIST): Remove variable.
49019
49020         * build-aux/javaexec.sh.in: New file, moved from lib/.
49021         * modules/javaexec (Files): Update.
49022         (configure.ac): Add AC_CONFIG_FILES invocation.
49023         (EXTRA_DIST): Remove javaexec.sh.in.
49024
49025         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49026         * modules/csharpcomp-script (Files): Update.
49027         (configure.ac): Add AC_CONFIG_FILES invocation.
49028         (EXTRA_DIST): Remove variable.
49029
49030         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49031         * modules/csharpexec (Files): Update.
49032         (configure.ac): Add AC_CONFIG_FILES invocation.
49033         (EXTRA_DIST): Remove csharpexec.sh.in.
49034
49035 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49036
49037         Sync from coreutils.
49038
49039         Add POSIX ACL support
49040         * lib/acl.h (copy_acl, set_acl): Add declarations.
49041         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49042         systems other than Linux.
49043         (chmod_or_fchmod): New function: use fchmod when possible,
49044         and chmod otherwise.
49045         (file_has_acl): Add a POSIX ACL implementation, with a
49046         Linux-specific subcase.
49047         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49048         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49049         acls are unsupported.
49050         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49051         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49052         are unsupported.
49053
49054 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49055
49056         Sync from coreutils.
49057         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49058
49059 2006-01-07  Bruno Haible  <bruno@clisp.org>
49060
49061         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49062         gl_EARLY.
49063
49064 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49065
49066         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49067         Problem reported for Mingw by Mark Junker.
49068
49069 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49070
49071         * README: Gnulib normally doesn't generate a tarball.
49072
49073 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49076         long int, not int, for nanosecond counts, so that people who are
49077         used to POSIX struct timespec won't be surprised.  Reported by Jim
49078         Meyering.
49079
49080 2005-12-28  Bruno Haible  <bruno@clisp.org>
49081
49082         * build-aux/config.rpath: Update from GNU gettext.
49083
49084 2005-12-16  Jim Meyering  <jim@meyering.net>
49085
49086         * modules/fprintftime: New module.
49087         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49088
49089 2005-12-16  Jim Meyering  <jim@meyering.net>
49090
49091         * m4/fprintftime.m4: New file.
49092
49093 2005-12-16  Jim Meyering  <jim@meyering.net>
49094
49095         * lib/fprintftime.c, lib/fprintftime.h: New files.
49096
49097 2005-12-15  Simon Josefsson  <jas@extundo.com>
49098
49099         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49100         new m4/socklen.m4.
49101
49102 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49103
49104         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49105         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49106
49107 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49108
49109         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49110         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49111         struct uparams is valid. Fall back to the default values if it is
49112         not.
49113
49114 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49115
49116         * modules/argp (Files): Add argp-pin.c
49117         (Depends-on): dirname
49118         (lib_SOURCES): Add argp-pin.c
49119
49120 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49121
49122         * m4/argp.m4:  Check if program_invocation_name and
49123         program_invocation_short_name are declared and define appropriate
49124         macros if they are not.
49125
49126 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49127
49128         * lib/argp-help.c (__argp_base_name): New function
49129         (__argp_short_program_name): Rewrite using __argp_base_name
49130         * lib/argp-namefrob.h: Define program_invocation_name and
49131         program_invocation_short_name if requested
49132         (__argp_base_name): Add prototype
49133         * lib/argp-parse.c (argp_def): Use gettext wrappers
49134         (argp_default_parser): Use __argp_base_name
49135         * lib/argp-pin.c: New file. Defines program_invocation_name and
49136         program_invocation_short_name on systems that lack them.
49137
49138 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49139
49140         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49141         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49142         porting problem reported by Georg Schwarz in
49143         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49144
49145 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49148         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49149         porting problem reported by Georg Schwarz in
49150         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49151
49152 2005-12-05  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49155         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49156         Reported by Mark Junker <mjscod@gmx.de>.
49157
49158 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49159
49160         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49161         Use implementation from Albert Chin, with some
49162         comments/corrections by Stepan Kasal and myself.
49163
49164 2005-12-02  Bruno Haible  <bruno@clisp.org>
49165
49166         * gnulib-tool (func_import): Accept GPLed build tool modules when
49167         --lgpl is given.
49168         * modules/csharpcomp-script: New file.
49169         * modules/csharpcomp: Depend on it.
49170         * modules/javacomp-script: New file.
49171         * modules/javacomp: Depend on it.
49172         Suggested by Simon Josefsson.
49173
49174 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49177         statement, to work around an HP-UX 10.20 compiler bug reported by
49178         Peter O'Gorman.
49179
49180 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         * modules/savedir (Depends-on): Add openat.
49183
49184 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49185
49186         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49187         (uintmax_t) [defined uintmax_t]: Do not declare.
49188         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49189         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49190         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49191         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49192         sake of portability to weird hosts that C allows (though we don't
49193         know of any practical examples).
49194
49195         * lib/savedir.h (fdsavedir): New decl.
49196         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49197         contains most of the former guts of savedir.
49198         (savedir): Use savedirstream.
49199         Include "openat.h".
49200
49201 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49202
49203         * modules/obstack (Files): Add m4/ulonglong.m4.
49204         Problem reported by Davide Angelocola.
49205
49206 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49207
49208         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49209         coreutils no longer futzes with rounding modes.
49210
49211 2005-11-14  Jim Meyering  <jim@meyering.net>
49212
49213         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49214         replacement of mkstemp.
49215
49216 2005-11-10  Simon Josefsson  <jas@extundo.com>
49217
49218         * lib/readline.c: Remove EOL.
49219
49220 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49221
49222         * modules/gethrxtime (Depends-on): Add gettime.
49223
49224 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49225
49226         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49227         or gettimeofday; no longer needed.
49228
49229 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49230
49231         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49232         time business.
49233         (gethrxtime) [! (HAVE_NANOUPTIME
49234         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49235         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49236         our own approximation.
49237
49238 2005-11-08  Eric Blake  <ebb9@byu.net>
49239
49240         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49241
49242 2005-11-08  Eric Blake  <ebb9@byu.net>
49243
49244         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49245
49246 2005-11-04  Bruno Haible  <bruno@clisp.org>
49247
49248         * gnulib-tool: Implement --update mode.
49249
49250 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49251
49252         Fix porting problem reported by Theodoros V. Kalamatianos.
49253         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49254         Don't assume that futimes failing means we must fail.
49255
49256 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49257
49258         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49259         variables to suggest the intended function of the PATH_MAX check.
49260
49261 2005-10-30  Kean Johnston  <jkj@sco.com>
49262
49263         Trivial changes to support SCO systems.
49264         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49265         as PATH_MAX.
49266         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49267         where __ptr is null when no I/O is pending.
49268
49269 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49270
49271         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49272         leave errno alone.  Problem reported by Dmitry V. Levin.
49273
49274 2005-10-28  Simon Josefsson  <jas@extundo.com>
49275
49276         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49277         Test more.
49278
49279         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49280
49281         * modules/md2, modules/md2-tests: New files.
49282
49283 2005-10-28  Simon Josefsson  <jas@extundo.com>
49284
49285         * m4/inet_ntop.m4: More tests.
49286
49287         * m4/gc-md2.m4, md2.m4: New file.
49288
49289 2005-10-28  Simon Josefsson  <jas@extundo.com>
49290
49291         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49292         "restrict" keywords, as per POSIX.  Protect the function
49293         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49294         Don't use K&R prototypes.  Check the sprintf return values.
49295         Re-define EAFNOSUPPORT if not present.  Indent.
49296
49297         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49298         suggested by Bruno Haible <bruno@clisp.org>.
49299
49300         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49301
49302         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49303
49304         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49305         libgcrypt).
49306
49307         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49308
49309         * lib/md2.h, lib/md2.c: New files.
49310
49311 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49312
49313         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49314         errno alone.  Problem reported by Frederic Jolliton.
49315
49316 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49317
49318         * modules/verify (License): Change from GPL to LGPL.  This is a
49319         tiny module and there are apparently near-equivalents that are
49320         under the BSD license.
49321
49322 2005-10-24  Simon Josefsson  <jas@extundo.com>
49323
49324         * modules/sha1: Relicense to LGPL.
49325
49326 2005-10-24  Simon Josefsson  <jas@extundo.com>
49327
49328         * lib/md4.h: Shrink buffer size, now that we changed the type.
49329
49330 2005-10-23  Simon Josefsson  <jas@extundo.com>
49331
49332         * gnulib-tool (func_import): Fix --tests-base.
49333
49334 2005-10-22  Simon Josefsson  <jas@extundo.com>
49335
49336         * modules/arcfour (Depends-on): Need stdint.
49337
49338 2005-10-22  Simon Josefsson  <jas@extundo.com>
49339
49340         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49341         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49342
49343 2005-10-22  Simon Josefsson  <jas@extundo.com>
49344
49345         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49346         suggested by Bruno Haible <bruno@clisp.org>.
49347
49348 2005-10-22  Simon Josefsson  <jas@extundo.com>
49349
49350         * lib/crc.h: Include stddef.h, for size_t.
49351
49352 2005-10-22  Simon Josefsson  <jas@extundo.com>
49353
49354         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49355         arcfour_context struct (simplify test vector testing in GNU
49356         Shishi).
49357
49358 2005-10-21  Simon Josefsson  <jas@extundo.com>
49359
49360         * modules/des, modules/des-tests: New files.
49361
49362         * modules/gc-des, modules/gc-des-tests: New files.
49363
49364         * tests/test-des.c, tests/test-gc-des.c: New file.
49365
49366 2005-10-21  Simon Josefsson  <jas@extundo.com>
49367
49368         * modules/arctwo, modules/arctwo-tests: New files.
49369
49370         * tests/test-arctwo.c: New file.
49371
49372         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49373
49374         * tests/test-gc-arctwo.c: New file.
49375
49376 2005-10-21  Simon Josefsson  <jas@extundo.com>
49377
49378         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49379         Bruno Haible <bruno@clisp.org>.
49380
49381         * m4/gc-des.m4: New file.
49382
49383 2005-10-21  Simon Josefsson  <jas@extundo.com>
49384
49385         * m4/arctwo.m4: New file.
49386
49387         * m4/gc-arctwo.m4: New file.
49388
49389 2005-10-21  Simon Josefsson  <jas@extundo.com>
49390
49391         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49392         block.
49393
49394 2005-10-21  Simon Josefsson  <jas@extundo.com>
49395
49396         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49397         <bruno@clisp.org>.
49398
49399         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49400
49401         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49402         Bruno Haible <bruno@clisp.org>.
49403
49404         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49405         <bruno@clisp.org>.
49406
49407 2005-10-21  Simon Josefsson  <jas@extundo.com>
49408
49409         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49410
49411 2005-10-21  Simon Josefsson  <jas@extundo.com>
49412
49413         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49414
49415 2005-10-21  Simon Josefsson  <jas@extundo.com>
49416
49417         * lib/des.h, lib/des.c: New files.
49418
49419         * lib/gc-gnulib.c: Support DES.c
49420
49421 2005-10-21  Simon Josefsson  <jas@extundo.com>
49422
49423         * lib/arctwo.h, lib/arctwo.c: New files.
49424
49425         * lib/gc-gnulib.c: Support ARCTWO.
49426
49427 2005-10-21  Simon Josefsson  <jas@extundo.com>
49428
49429         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49430         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49431
49432 2005-10-21  Simon Josefsson  <jas@extundo.com>
49433
49434         * gnulib-tool (func_import, func_create_testdir): Define automake
49435         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49436         Makefile.am snippet),
49437         suggested by Bruno Haible <bruno@clisp.org>.
49438
49439         * modules/gc (Makefile.am): Use it.
49440
49441 2005-10-21  Bruno Haible  <bruno@clisp.org>
49442
49443         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49444         patch.
49445
49446 2005-10-19  Simon Josefsson  <jas@extundo.com>
49447
49448         * tests/test-gc-rijndael.c: New file.
49449
49450         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49451
49452 2005-10-19  Simon Josefsson  <jas@extundo.com>
49453
49454         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49455         interface too.
49456
49457 2005-10-19  Simon Josefsson  <jas@extundo.com>
49458
49459         * tests/test-gc-arcfour.c: New file.
49460
49461         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49462
49463 2005-10-19  Simon Josefsson  <jas@extundo.com>
49464
49465         * modules/gc-md4, modules/gc-md4-tests: New file.
49466
49467         * tests/test-gc-md4.c: New file.
49468
49469 2005-10-19  Simon Josefsson  <jas@extundo.com>
49470
49471         * m4/gc-md4.m4: New file.
49472
49473 2005-10-19  Simon Josefsson  <jas@extundo.com>
49474
49475         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49476         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49477         <kasal@ucw.cz>.
49478
49479 2005-10-19  Simon Josefsson  <jas@extundo.com>
49480
49481         * m4/gc-arcfour.m4: New file.
49482
49483         * m4/gc-rijndael.m4: New file.
49484
49485 2005-10-19  Simon Josefsson  <jas@extundo.com>
49486
49487         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49488
49489 2005-10-19  Simon Josefsson  <jas@extundo.com>
49490
49491         * lib/gc-gnulib.c: Support ARCFOUR.
49492
49493 2005-10-19  Simon Josefsson  <jas@extundo.com>
49494
49495         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49496         support.
49497
49498         * lib/gc.h: Add ECB enum type.
49499
49500         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49501
49502 2005-10-18  Simon Josefsson  <jas@extundo.com>
49503
49504         * tests/test-md5.c: New file.
49505
49506         * modules/md5-tests: New file.
49507
49508 2005-10-18  Simon Josefsson  <jas@extundo.com>
49509
49510         * tests/test-md4.c: New file.
49511
49512         * modules/md4, modules/md4-tests: New files.
49513
49514 2005-10-18  Simon Josefsson  <jas@extundo.com>
49515
49516         * m4/md4.m4: New file.
49517
49518 2005-10-18  Simon Josefsson  <jas@extundo.com>
49519
49520         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49521
49522 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49523
49524         * gnulib-tool (func_create_testdir): Omit the second check whether
49525         BUILT_SOURCES in nonempty.
49526
49527 2005-10-17  Simon Josefsson  <jas@extundo.com>
49528
49529         * tests/test-rijndael.c: New file.
49530
49531 2005-10-17  Simon Josefsson  <jas@extundo.com>
49532
49533         * modules/sha1: Depend on stdint instead of md5.
49534
49535         * modules/md5: Depend on stdint, remove uint32_t.
49536
49537 2005-10-17  Simon Josefsson  <jas@extundo.com>
49538
49539         * modules/gc-sha1-tests: New file.
49540
49541         * tests/test-gc-sha1.c: New file.
49542
49543 2005-10-17  Simon Josefsson  <jas@extundo.com>
49544
49545         * m4/md5.m4: Remove call to uint32_t.m4.
49546
49547 2005-10-17  Simon Josefsson  <jas@extundo.com>
49548
49549         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49550
49551         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49552         md5.h.
49553
49554         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49555
49556         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49557
49558 2005-10-17  Simon Josefsson  <jas@extundo.com>
49559
49560         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49561
49562 2005-10-17  Simon Josefsson  <jas@extundo.com>
49563
49564         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49565
49566 2005-10-17  Simon Josefsson  <jas@extundo.com>
49567
49568         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49569
49570         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49571
49572 2005-10-17  Bruno Haible  <bruno@clisp.org>
49573
49574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49575         that it can also be used in a test.
49576
49577 2005-10-16  Bruno Haible  <bruno@clisp.org>
49578
49579         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49580         TESTS_ENVIRONMENT, so that individual tests can augment it.
49581
49582         * gnulib-tool (func_create_testdir): Use an intermediate target for
49583         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49584         macros, like $(ALLOCA_H), which cannot be passed through the command
49585         line.
49586
49587 2005-10-15  Simon Josefsson  <jas@extundo.com>
49588
49589         * modules/rijndael-tests: New file.
49590
49591         * modules/rijndael: New file.
49592
49593 2005-10-15  Simon Josefsson  <jas@extundo.com>
49594
49595         * m4/rijndael.m4: New file.
49596
49597 2005-10-15  Simon Josefsson  <jas@extundo.com>
49598
49599         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49600
49601         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49602
49603 2005-10-14  Simon Josefsson  <jas@extundo.com>
49604
49605         * tests/test-arcfour.c: New file.
49606
49607         * modules/arcfour, modules/arcfour-tests: New files.
49608
49609 2005-10-14  Simon Josefsson  <jas@extundo.com>
49610
49611         * m4/arcfour.m4: New file.
49612
49613 2005-10-14  Simon Josefsson  <jas@extundo.com>
49614
49615         * lib/arcfour.h, lib/arcfour.c: New files.
49616
49617 2005-10-14  Roland McGrath  <roland@redhat.com>
49618
49619         Import from libc.  [BZ #1331]
49620         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49621         macro argument.
49622         Reported by Matej Vela <vela@debian.org>.
49623
49624 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49627         include <wchar.h>; no longer needed.
49628
49629 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49630
49631         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49632
49633 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49634         and  Ulrich Drepper  <drepper@redhat.com>
49635
49636         Import from libc.
49637         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49638         instead of inline stream orientation test and two separate
49639         function calls.  Pay no attention to USE_IN_LIBIO.
49640
49641 2005-10-13  Simon Josefsson  <jas@extundo.com>
49642
49643         * modules/gc-hmac-md5-tests: New file.
49644
49645         * tests/test-gc-hmac-sha1.c: New file.
49646
49647         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49648
49649         * modules/gc-hmac-md5-tests: New file.
49650
49651         * tests/test-gc-md5.c: New file.
49652
49653         * modules/gc-md5-tests: New file.
49654
49655 2005-10-13  Simon Josefsson  <jas@extundo.com>
49656
49657         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49658         Move memory allocation outside of loop.
49659
49660 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49661
49662         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49663         intermediate directory is in a read-only file system.  Problem
49664         reported by Eric Blake.
49665
49666 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49667
49668         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49669
49670 2005-10-12  Simon Josefsson  <jas@extundo.com>
49671
49672         * tests/test-hmac-sha1.c: New file.
49673
49674         * modules/hmac-sha1-tests: New file.
49675
49676         * modules/hmac-sha1: New file.
49677
49678 2005-10-12  Simon Josefsson  <jas@extundo.com>
49679
49680         * modules/gc-sha1: New file.
49681
49682 2005-10-12  Simon Josefsson  <jas@extundo.com>
49683
49684         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49685
49686         * tests/test-gc-pbkdf2-sha1.c: New file.
49687
49688 2005-10-12  Simon Josefsson  <jas@extundo.com>
49689
49690         * modules/gc-md5, modules/gc-hmac-md5: New files.
49691
49692         * modules/gc (Files): Remove md5, memxor and hmac files.
49693
49694 2005-10-12  Simon Josefsson  <jas@extundo.com>
49695
49696         * m4/gc-pbkdf2-sha1.m4: New file.
49697
49698         * m4/gc-hmac-sha1.m4: New file.
49699
49700         * m4/gc-sha1: New file.
49701
49702         * m4/hmac-sha1.m4: New file.
49703
49704 2005-10-12  Simon Josefsson  <jas@extundo.com>
49705
49706         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49707
49708         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49709
49710 2005-10-12  Simon Josefsson  <jas@extundo.com>
49711
49712         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49713         suggested by Bruno Haible <bruno@clisp.org>.
49714
49715 2005-10-12  Simon Josefsson  <jas@extundo.com>
49716
49717         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49718
49719 2005-10-12  Simon Josefsson  <jas@extundo.com>
49720
49721         * lib/gc-pbkdf2-sha1.c: New file.
49722
49723         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49724
49725 2005-10-12  Simon Josefsson  <jas@extundo.com>
49726
49727         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49728
49729         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49730
49731 2005-10-12  Simon Josefsson  <jas@extundo.com>
49732
49733         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49734         GC_USE_HMAC_MD5, respectively.
49735
49736         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49737         (gc_md5): Fix typo.
49738
49739         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49740
49741         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49742
49743         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49744
49745 2005-10-12  Bruno Haible  <bruno@clisp.org>
49746
49747         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49748         Reported by Stepan Kasal <kasal@ucw.cz>.
49749
49750 2005-10-11  Simon Josefsson  <jas@extundo.com>
49751
49752         * tests/test-crc.c: New file.
49753
49754         * modules/crc, modules/crc-tests: New files.
49755
49756 2005-10-11  Simon Josefsson  <jas@extundo.com>
49757
49758         * m4/crc.m4: New file.
49759
49760 2005-10-11  Simon Josefsson  <jas@extundo.com>
49761
49762         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49763
49764         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49765
49766         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49767
49768 2005-10-11  Simon Josefsson  <jas@extundo.com>
49769
49770         * lib/crc.h, lib/crc.c: New files.
49771
49772         * lib/gc.h (gc_hash_buffer): Add doc.
49773
49774 2005-10-11  Bruno Haible  <bruno@clisp.org>
49775
49776         * modules/c-strcasestr: New file.
49777         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49778
49779 2005-10-11  Bruno Haible  <bruno@clisp.org>
49780
49781         * modules/c-strcase: New file.
49782         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49783
49784 2005-10-11  Bruno Haible  <bruno@clisp.org>
49785
49786         * lib/strcasecmp.c: Include limits.h.
49787         (strcasecmp): Avoid integer overflow on exotic platforms.
49788         * lib/strncasecmp.c: Include limits.h.
49789         (strncasecmp): Avoid integer overflow on exotic platforms.
49790         Reported by Paul Eggert.
49791
49792 2005-10-11  Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/c-strcasestr.h: New file, from GNU gettext.
49795         * lib/c-strcasestr.c: New file, from GNU gettext.
49796
49797 2005-10-11  Bruno Haible  <bruno@clisp.org>
49798
49799         * lib/c-strcase.h: New file, from GNU gettext.
49800         * lib/c-strcasecmp.c: New file, from GNU gettext.
49801         * lib/c-strncasecmp.c: New file, from GNU gettext.
49802
49803 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * modules/mempcpy (License): GPL -> LGPL.
49806         * modules/strchrnul (License): Likewise.
49807         * modules/sysexits (License): Likewise.
49808
49809 2005-10-08  Simon Josefsson  <jas@extundo.com>
49810
49811         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49812
49813 2005-10-07  Simon Josefsson  <jas@extundo.com>
49814
49815         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49816
49817 2005-10-06  Simon Josefsson  <jas@extundo.com>
49818
49819         * tests/test-hmac-md5.c: New file.
49820
49821         * modules/hmac-md5-tests: New file.
49822
49823         * modules/hmac-md5: New file.
49824
49825 2005-10-06  Simon Josefsson  <jas@extundo.com>
49826
49827         * m4/hmac-md5.m4: New file.
49828
49829         * m4/memxor.m4: Require gl_C_RESTRICT.
49830
49831 2005-10-06  Simon Josefsson  <jas@extundo.com>
49832
49833         * lib/memxor.c (memxor): Avoid casts and warnings.
49834
49835 2005-10-06  Simon Josefsson  <jas@extundo.com>
49836
49837         * lib/hmac-md5.c: New file.
49838
49839         * lib/hmac.h: New file.
49840
49841 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49842
49843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49844         promotes to int, not unsigned int, to catch the AIX 5.3
49845         compiler bug.
49846
49847 2005-10-05  Simon Josefsson  <jas@extundo.com>
49848
49849         * modules/memxor: New file.
49850
49851         * modules/iconv (Files): Move config.rpath to havelib, it is used
49852         there.
49853
49854         * modules/havelib (Files): Add config.rpath.
49855
49856 2005-10-05  Simon Josefsson  <jas@extundo.com>
49857
49858         * m4/memxor.m4: New file.
49859
49860 2005-10-05  Simon Josefsson  <jas@extundo.com>
49861
49862         * lib/memxor.c (memxor): Fix compiler error.
49863
49864         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49865         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49866
49867         * lib/memxor.h, lib/memxor.c: New files.
49868
49869         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49870         we assume all systems have it, suggested by Jim Meyering
49871         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49872         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49873         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49874         same reasons.
49875
49876 2005-10-05  Simon Josefsson  <jas@extundo.com>
49877
49878         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49879
49880 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49881
49882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49883         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49884         needed, since the source code now assumes these .h files.
49885
49886 2005-10-05  Derek Price  <derek@ximbiot.com>
49887
49888         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49889
49890 2005-10-05  Bruno Haible  <bruno@clisp.org>
49891
49892         * modules/stdint (License): Change to LGPL.
49893
49894 2005-10-04  Simon Josefsson  <jas@extundo.com>
49895
49896         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49897         D. Baushke" <mdb@gnu.org>.
49898
49899 2005-10-04  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/verify.h (verify_true): Provide alternative definition for C++.
49902
49903 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49904
49905         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49906         (SSIZE_MAX): New macro, if not already defined.
49907         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49908         than 2 GiB.
49909
49910 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         Sync from coreutils.
49913         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49914         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49915         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49916         ULLONG_MAX doesn't work with 2.7.2.1.
49917
49918 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49919
49920         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49921         From Ben Pfaff.
49922
49923         * modules/exclude (Depends-on): Depend on verify.
49924         * modules/strtoimax (Depends-on): Likewise.
49925         * modules/utimecmp (Depends-on): Likewise.
49926
49927 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         * lib/exclude.c: Include verify.h.
49930         (verify): Remove.  All callers changed to use verify.h's version.
49931         * lib/strtoimax.c: Likewise.
49932         * lib/utimecmp.c: Likewis.e
49933
49934         Sync from coreutils.
49935         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49936         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49937         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49938         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49939         bother returning ENOSYS if settimeofday or stime fails; just let
49940         them return whatever errno they want to return.
49941         * lib/utimens.c: Include unistd.h, for dup2.
49942         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49943         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49944
49945 2005-10-02  Jim Meyering  <jim@meyering.net>
49946
49947         Sync from coreutils.
49948         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49949         from glibc-2.2.5 that fails for read-only files.
49950
49951 2005-10-02  Jim Meyering  <jim@meyering.net>
49952
49953         Sync from coreutils.
49954         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49955         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49956         `#if HAVE_CONFIG_H'.
49957         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49958         Remove AT_FDCWD test.
49959         Do not consume the fd unless successful.
49960         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49961         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49962         block, so that we don't even try to compile it if settimeofday is
49963         available.  This works around a compilation failure on OSF1 V5.1,
49964         due to stime requiring a `long int*' while tv_sec is `int'.
49965
49966 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49967
49968         Sync from coreutils.
49969         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49970         against `yes', rather than just testing for nonempty.
49971
49972 2005-10-01  Simon Josefsson  <jas@extundo.com>
49973
49974         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49975         and Darwin.
49976
49977         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49978         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49979         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49980         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49981         Check if struct addrinfo is declared.
49982
49983 2005-10-01  Simon Josefsson  <jas@extundo.com>
49984
49985         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49986         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49987         AI_* and EAI_* definitions.  Protect function declarations.
49988
49989 2005-10-01  Jim Meyering  <jim@meyering.net>
49990
49991         Sync from coreutils.
49992
49993         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49994         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49995         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49997         in the inet and nsl libraries.  Required on Solaris 5.7.
49998
49999 2005-10-01  Jim Meyering  <jim@meyering.net>
50000
50001         Sync from coreutils.
50002         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50003         in the inet and nsl libraries.  Required on Solaris 5.7.
50004
50005 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50006
50007         * lib/getdelim.c (getdelim): Remove unused variables.
50008
50009 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50010
50011         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50012         so that the code works even with ancient cpp.  Portability problem
50013         with GCC 2.7.2.1 reported by Thomas M.Ott.
50014
50015 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50016
50017         * modules/regex (Depends-on): Add strcase.
50018
50019         * modules/gethostname (Licence): Change from GPL to LGPL, since
50020         gethostname.c is a trivial implementation of a standard library
50021         function.
50022         * modules/poll (License): Change from GPL to LGPL, since it's
50023         derived from LGPL code.
50024
50025 2005-09-27  Jim Meyering  <jim@meyering.net>
50026
50027         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50028         HAVE_CONFIG_H.
50029
50030         * lib/intprops.h (signed_type_or_expr__): Define.
50031         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50032         for unsigned types.
50033
50034 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * lib/verify.h (verify_expr): Remove, replacing with:
50037         (verify_true): New macro that returns true instead of void.
50038         (verify_type__): Remove.
50039         (verify): Use verify_true rather than verify_type__.
50040
50041 2005-09-26  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50044         is necessary.
50045         (lib_SOURCES): Remove mbchar.c.
50046         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50047         (Files): Add m4/mbrtowc.m4.
50048         * modules/mbiter: Likewise.
50049         * modules/mbuiter: Likewise.
50050
50051 2005-09-26  Bruno Haible  <bruno@clisp.org>
50052
50053         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50054         compile mbchar.c if they are not both present.
50055         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50056         * m4/mbiter.m4 (gl_MBITER): Likewise.
50057         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50058         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50059         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50060
50061 2005-09-25  Jim Meyering  <jim@meyering.net>
50062
50063         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50064         also uses socklen_t.
50065
50066 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50067
50068         * lib/utimens.c (ENOSYS): Define if not already defined.
50069         (futimens): Support having a null PATH if the file descriptor
50070         is nonnegative.
50071
50072         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50073         Remove.
50074         (__attribute): Define to empty unless GCC 3.1 or later.
50075         This works around a core dump on OpenBSD 3.4, which has GCC
50076         2.95.3, which dumps core when given __attribute__(()).  It also
50077         simplifies other tests, since we really don't want to bother with
50078         worrying about which ancient version of GCC supported what.
50079         Original problem reported by Yoann Vandoorselaere, with part of
50080         the fix suggested by Derek Price.
50081
50082 2005-09-24  Jim Meyering  <jim@meyering.net>
50083
50084         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50085         so we can once again use a positive bitfield width of 1 -- now we
50086         don't have to explain why we were using a bitfield width of 2.
50087
50088 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50089
50090         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50091         and similarly for the other external symbols.  Problem reported
50092         by James Gallager.
50093
50094         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50095         bug reported by Jim Meyering.
50096
50097         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50098         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50099         not needed, since socklen is a prerequisite module.
50100
50101 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50102
50103         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50104         Problem reported by Eric Blake.
50105         (getaddrinfo): Initialize se so that it's not garbage.
50106         Redo internal storage allocation so that it doesn't make unportable
50107         assumptions about alignment.
50108         Fix a memory leak.
50109
50110         * lib/utimens.c (futimens): Use futimesat if available.
50111         Prefer it to futimes since it doesn't have the futimes bug.
50112
50113         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50114         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50115         Instead, declare a function that returns a pointer to an array,
50116         and use verify_type__ to declare the size of the array.
50117         Problem and germ of a solution reported by Bruno Haible.
50118         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50119         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50120
50121 2005-09-23  Jim Meyering  <jim@meyering.net>
50122
50123         Sync from coreutils.
50124         Correct build failure (socklen_t not defined) on at least
50125         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50126         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50127
50128 2005-09-23  Jim Meyering  <jim@meyering.net>
50129
50130         * modules/getaddrinfo (Depends-on): Add socklen.
50131
50132 2005-09-23  Bruno Haible  <bruno@clisp.org>
50133
50134         * tests/test-verify.c: New file.
50135
50136 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50137
50138         Sync from coreutils.
50139
50140         * modules/argmatch (Depends-on): Add verify.
50141         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50142         unistd-safer.
50143         * modules/save-cwd (Depends-on): Likewise.
50144
50145         * modules/openat (Files): Add lib/openat-die.c.
50146         (Depends-on): Remove error, exitfail.
50147         Add dirname.
50148
50149         * modules/verify: New file.
50150         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50151         with "verify" module.
50152
50153 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         Sync from coreutils.
50156
50157         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50158         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50159         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50160         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50161         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50162         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50163         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50164         Don't bother checking for string.h, stdlib.h, unistd.h.
50165         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50166         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50167         module's job.
50168         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50169         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50170
50171         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50172         (gl_GETDATE): Use it.
50173
50174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50175
50176 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         Sync from coreutils.
50179
50180         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50181         stat-time.h.
50182         * lib/argmatch.h: Include verify.h
50183         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50184         (ARGMATCH_ASSERT): Remove; unused.
50185         * lib/canonicalize.c: Assume STDC_HEADERS.
50186         * lib/exclude.c: Include "strcase.h".
50187         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50188         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50189         and stdio-safer.h.
50190         (getusershell): Call fopen, not fopen_safer.
50191         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50192         Do not include unistd-safer.h.
50193         (save_cwd): Don't call fd_safer; no longer needed
50194         now that we include fcntl--.h.
50195
50196         * lib/getdate.y (relative_time): New type.
50197         (RELATIVE_TIME_0): New constant.
50198         (parser_control): Use relative_time instead of doing it ourselves.
50199         (%union): Add new relative_time rel member.
50200         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50201         Now typeless.
50202         (relunit, relunit_snumber): Now of type rel.
50203         (zone, rel, relunit, get_date): Adjust to above changes.
50204
50205         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50206         Do not include unistd-safer.h.
50207         (getloadavg): Don't call fd_safer; no longer needed
50208         now that we include fcntl--.h.
50209
50210         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50211         (make_dir_parents): Treat ENOSYS like EEXIST.
50212
50213         Improve quality of diagnostics on restore_cwd failure.
50214         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50215         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50216         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50217         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50218         each time through the loop.  Do not diagnose restore_cwd failure;
50219         that is the caller's job (and perhaps the caller does not care).
50220
50221         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50222         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50223         If the file already exists but is not a directory, don't bother
50224         to try to make its parents.
50225         Close potential file descriptor leak if we can't chdir("/") (!).
50226         Don't always return true if chdir($PWD) fails; return true only
50227         if the requested action was done successfully (except for the
50228         chdir($PWD)).
50229         Don't log final directory unless we actually made it.
50230         Refactor to avoid duplicate code to fix up permissions.
50231         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50232
50233         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50234         to make it a bit faster and (I hope) clearer.
50235         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50236         Fix bug in formats like %2N.
50237
50238         * lib/verify.h: New file.
50239
50240 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         Sync from coreutils.
50243         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50244
50245 2005-09-22  Jim Meyering  <jim@meyering.net>
50246
50247         Sync from coreutils.
50248
50249         * m4/lstat.m4 (gl_FUNC_LSTAT):
50250         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50251         Remove obsolete comment.
50252         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50253         * m4/xstrtod.m4: Likewise.
50254
50255         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50256
50257 2005-09-22  Jim Meyering  <jim@meyering.net>
50258
50259         Sync from coreutils.
50260
50261         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50262
50263         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50264         the .tm_year member, since otherwise gcc-4.0 would now warn about
50265         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50266
50267         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50268         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50269
50270         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50271         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50272         when run in a time zone for which daylight savings time is in effect
50273         for the starting date.
50274
50275         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50276         stop us from restricting permissions of just-created absolute-named
50277         directories.
50278         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50279         to restore initial working directory.
50280         * lib/mkdir-p.c (make_dir_parents): New parameter:
50281         different_working_dir, to tell caller if/when we change the working
50282         directory and are unable to return to the initial one.
50283         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50284         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50285         `return false'.  This fixes a bug introduced on 2004-07-30.
50286
50287         * lib/openat.c (fdopendir): Be sure to close the supplied
50288         file descriptor before returning.  This makes our replacement
50289         implementation a little closer to Solaris's, where fdopendir
50290         ties the file descriptor to the returned DIR* pointer.
50291         * lib/openat.c (unlinkat): New function.
50292         * lib/openat.h (unlinkat): Add prototype.
50293         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50294         (openat_restore_fail): Rename from openat_restore_die.
50295         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50296
50297         Provide an alternative to exiting immediately upon save_cwd or
50298         restore_cwd failure.  Now, an application can arrange e.g.,
50299         to perform a longjump in that case.
50300         * lib/openat.c: Include dirname.h.
50301         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50302         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50303         and openat_restore_die rather than calling error directly.
50304         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50305
50306         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50307         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50308         define.
50309
50310         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50311         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50312                             int utc, int nanoseconds);
50313         Background:
50314         date should not have to allocate a megabyte of virtual memory to
50315         handle a format argument like +%1048575T.  When implemented with
50316         strftime, it must allocate such a buffer, use strftime to fill it
50317         in, print it, then free it.
50318         With fprintftime, it simply prints everything and exits.
50319         With no need for memory allocation, that's one fewer way to fail.
50320         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50321         optional field width, not before, so we accept %9:z, not %:9z.
50322         (my_strftime): Be sure to use L_('x') for literals.
50323
50324         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50325         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50326         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50327         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50328         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50329         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50330         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50331         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50332         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50333         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50334         * lib/xgethostname.c, lib/xreadlink.c:
50335         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50336
50337         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50338         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50339         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50340         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50341         and don't include <sys/file.h>).
50342
50343 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50344
50345         Sync from coreutils.
50346
50347         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50348         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50349         [!LDAV_DONE]: Avoid unused variable warning.
50350
50351 2005-09-21  Bruno Haible  <bruno@clisp.org>
50352
50353         * lib/unicodeio.h (unicode_to_mb): New declaration.
50354
50355 2005-09-20  Derek Price  <derek@ximbiot.com>
50356
50357         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50358         getaddrinfo.h.
50359
50360 2005-09-20  Bruno Haible  <bruno@clisp.org>
50361
50362         * gnulib-tool: Remove trailing slashes from the values specified for
50363         --source-base, --m4-base, --tests-base, --aux-dir.
50364         Suggested by Simon Josefsson <jas@extundo.com>.
50365
50366 2005-09-20  Bruno Haible  <bruno@clisp.org>
50367
50368         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50369         func_modules_to_filelist, func_import, func_create_testdir): Make all
50370         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50371         change when gnulib-tool is invoked in a different locale.
50372
50373 2005-09-19  Simon Josefsson  <jas@extundo.com>
50374
50375         * m4/socklen.m4: Fix typo.
50376
50377 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50378
50379         Use a consistent style for including <config.h>.
50380         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50381         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50382         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50383         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50384         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50385         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50386         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50387         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50388         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50389         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50390         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50391         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50392         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50393         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50394         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50395         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50396         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50397         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50398         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50399         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50400         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50401         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50402         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50403         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50404         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50405         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50406         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50407         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50408         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50409         lib/xstrtoumax.c, lib/yesno.c:
50410         Standardize inclusion of config.h.
50411         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50412         lib/inttostr.h:  Removed inclusion of config.h from header files.
50413         * lib/inttostr.c:  Adjusted in-tree users.
50414         * lib/timespec.h: Remove superfluous warning to include config.h.
50415         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50416         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50417         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50418         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50419         config.h with HAVE_CONFIG_H.
50420
50421 2005-09-19  Jim Meyering  <jim@meyering.net>
50422
50423         * modules/pathmax (License): Change to LGPL.
50424
50425 2005-09-19  Derek Price  <derek@ximbiot.com>
50426
50427         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50428
50429 2005-09-19  Bruno Haible  <bruno@clisp.org>
50430
50431         * gnulib-tool (import): Provide default for --tests-base.
50432
50433 2005-09-19  Bruno Haible  <bruno@clisp.org>
50434
50435         * doc/quote.texi: New file, extracted from gnulib.texi.
50436         * doc/ctime.texi: New file, extracted from gnulib.texi.
50437         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50438         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50439         * doc/gnulib.texi: Include them.
50440
50441 2005-09-18  Bruno Haible  <bruno@clisp.org>
50442
50443         Portability fix.
50444         * gnulib-tool (func_readlink): New function.
50445         (func_ln_if_changed): Use it.
50446
50447 2005-09-18  Bruno Haible  <bruno@clisp.org>
50448
50449         * gnulib-tool: Support --with-tests also with --import.
50450         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50451         (func_import): Use variables $testsbase and $inctests. Emit a
50452         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50453         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50454         SUBDIRS += $testsdir.
50455         (func_create_testdir): Update.
50456
50457 2005-09-18  Bruno Haible  <bruno@clisp.org>
50458
50459         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50460         instead of $dry_run.
50461         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50462         (func_ln_if_changed): Don't handle dry-run here.
50463         (func_import): In dry-run mode, detect more precisely which actions
50464         would be performed, and don't use "...ing" verbs.
50465
50466 2005-09-18  Bruno Haible  <bruno@clisp.org>
50467
50468         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50469         (func_import): Use join on two temporary files instead of three nested
50470         loops, in order to determine which files are new or old.
50471
50472 2005-09-18  Bruno Haible  <bruno@clisp.org>
50473
50474         * gnulib-tool (func_import): Comment out code that spits out the
50475         new files with --dry-run.
50476
50477 2005-09-18  Bruno Haible  <bruno@clisp.org>
50478
50479         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50480
50481 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         * lib/stat-time.h: New file.
50484         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50485         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50486         in a different way.
50487         (timespec_cmp): New function.
50488         * lib/utimecmp.c: Include stat-time.h.
50489         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50490         members exist, not on the obsolescent ST_MTIM_NSEC.
50491         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50492
50493 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50494
50495         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50496
50497 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50498
50499         * MODULES.html.sh (File system functions): Add stat-time.
50500         * modules/stat-time: New file.
50501         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50502         is now done in a different way, by the stat-time module.
50503         * modules/utimecmp (Depends-on): Add stat-time.
50504
50505 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50506
50507         * m4/st_mtim.m4: Remove.  Superseded by...
50508         * m4/stat-time.m4: New file.
50509         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50510         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50511
50512 2005-09-15  Derek Price  <derek@ximbiot.com>
50513
50514         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50515
50516 2005-09-15  Derek Price  <derek@ximbiot.com>
50517
50518         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50519         * lib/regex_internal.c: Ditto, using this...
50520         (__GNUC_PREREQ): ...new macro.
50521         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50522         using...
50523         (__GNUC_PREREQ): ...this new macro.
50524
50525         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50526
50527 2005-09-15  Derek Price  <derek@ximbiot.com>
50528             Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50531         changes, consolidating in...
50532         * lib/regex_internal.h: ...this file.
50533
50534 2005-09-13  Jim Meyering  <jim@meyering.net>
50535
50536         * lib/canon-host.c: Filter through gnu indent and reword comments
50537         slightly.
50538         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50539
50540 2005-09-13  Derek Price  <derek@ximbiot.com>
50541
50542         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50543         failure.
50544         Reported by Jim Meyering  <jim@meyering.net>.
50545
50546 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50547
50548         * lib/base64.c: Typo.
50549         (base64_encode): Put b64str in initialized data section.
50550
50551 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50552
50553         Merge glibc and coreutils changes into gnulib, plus a few
50554         extra fixes.
50555         * lib/md5.c: Use #error rather than a string.
50556         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50557         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50558         (__attribute__): Define to empty for non recent-GCC.
50559         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50560         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50561         Renamed from their non-__ counterparts, with new macros replacing
50562         them if not _LIBC.  Add __THROW attribute.
50563         (rol): Remove.
50564         (struct md5_ctx): Align buffer if using GCC.
50565         * lib/sha1.h (struct sha1_ctx): Likewise.
50566         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50567         The old name was backwards.
50568         (NOTSWAP): Remove; not used.
50569         (rol): New macro, moved here from md5.h.
50570         (sha1_process_block): Remove a FIXME that doesn't make sense.
50571
50572 2005-09-12  Derek Price  <derek@ximbiot.com>
50573
50574         Return usable errors from canon-host.
50575         * lib/canon-host.h: New file.
50576         * lib/canon-host.c (canon_host): Wrap...
50577         (canon_host_r): ...this new function, which now relies exclusively on
50578         getaddrinfo.
50579         (ch_strerror): New function.
50580         (last_cherror): New global.
50581         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50582         interface.
50583         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50584         void *.
50585         (freeaddrinfo): Free ai->ai_canonname when set.
50586
50587 2005-09-12  Derek Price  <derek@ximbiot.com>
50588
50589         Make canon-host require getaddrinfo.
50590         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50591         AC_LIBSOURCE canon-host.h.  Call...
50592         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50593         gl_GETADDRINFO.
50594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50595
50596 2005-09-12  Derek Price  <derek@ximbiot.com>
50597
50598         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50599         LGPL.
50600         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50601
50602 2005-09-12  Derek Price  <derek@ximbiot.com>
50603
50604         * lib/gai_strerror.c: Include config.h when available.  Include
50605         getaddrinfo.h before other headers to test interface.
50606         Reported by Larry Jones <lawrence.jones@ugs.com>.
50607
50608 2005-09-12  Derek Price  <derek@ximbiot.com>
50609             Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         * modules/glob (Files): Add glob-libc.h.
50612
50613 2005-09-12  Derek Price  <derek@ximbiot.com>
50614             Paul Eggert  <eggert@cs.ucla.edu>
50615
50616         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50617         glob_.h, glob-libc.h.
50618         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50619
50620 2005-09-12  Derek Price  <derek@ximbiot.com>
50621             Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50624         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50625         protecting things that should be done only in gnulib contexts.
50626         * lib/glob_.h: New file, containing only the glob things needed for
50627         gnulib.
50628         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50629         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50630         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50631         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50632         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50633         and to respect the namespace rules better.
50634
50635 2005-09-08  Simon Josefsson  <jas@extundo.com>
50636
50637         * modules/socklen: New file.
50638
50639 2005-09-08  Simon Josefsson  <jas@extundo.com>
50640
50641         * m4/socklen.m4: New file.
50642
50643 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50644
50645         * modules/utimens (Files): Add m4/utimbuf.m4, since
50646         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50647         Reported by Sergey Poznyakoff.
50648
50649 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50650
50651         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50652         definitions, since that's the preferred style in glibc.
50653         Fix a minor spacing issue, and update copyright notice to match
50654         glibc's.
50655
50656 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50659
50660 2005-09-06  Simon Josefsson  <jas@extundo.com>
50661
50662         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50663         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50664
50665 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50666
50667         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50668         warning.
50669
50670 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50671
50672         * config/srclist.txt: Add glibc bug 1302.
50673
50674 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50675
50676         Change bitset word type from unsigned int to unsigned long int,
50677         as this has better performance on typical 64-bit hosts.
50678         Port bitset code to hosts with unusual word sizes.
50679         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50680         (build_collating_symbol):
50681         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50682         argument is a bitset.  This is merely a style issue, but it makes
50683         it clearer that an entire array is expected.
50684         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50685         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50686         Port to the case where bitset_word is not the same as unsigned int.
50687         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50688         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50689         Likewise.
50690         * lib/regexec.c (check_dst_limits_calc_pos_1,
50691         check_subexp_matching_top):
50692         (build_trtable, group_nodes_into_DFAstates):
50693         Likewise.
50694         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50695         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50696         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50697         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50698         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50699         * lib/regcomp.c (optimize_subexps, lower_subexp):
50700         Work even if bitset_word has holes in its bitwise representation.
50701         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50702         * lib/regexec.c (check_dst_limits_calc_pos_1,
50703         check_subexp_matching_top):
50704         Likewise.
50705         * lib/regex_internal.c (re_string_reconstruct):
50706         Don't assume UCHAR_MAX == 255.
50707         * lib/regex_internal.h (bitset_set_all): Likewise.
50708         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50709         All uses changed.
50710         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50711         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50712         All uses changed.
50713         (BITSET_WORD_MAX): New macro.
50714         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50715         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50716         (bitset_empty, bitset_copy):
50717         Prefer sizeof (bitset) to multiplying it out ourselves.
50718         (bitset_not_merge): Remove; unused.
50719         (bitset_contain): Return bool, not unsigned int with one bit on.
50720         All callers changed.
50721         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50722         alignment than re_node_set; do this by defining a new internal
50723         type struct dests_alloc and using it to allocate memory.
50724
50725 2005-09-05  Bruno Haible  <bruno@clisp.org>
50726
50727         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50728         links.
50729
50730 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50731
50732         * modules/size_max (Makefile.am): Add size_max.h
50733
50734 2005-09-04  Derek Price  <derek@ximbiot.com>
50735
50736         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50737
50738 2005-09-03  Simon Josefsson  <jas@extundo.com>
50739
50740         * gnulib-tool: Fix typo.
50741
50742 2005-09-03  Simon Josefsson  <jas@extundo.com>
50743
50744         * config/srclist.txt: Add glibc bug 1293.
50745
50746 2005-09-03  Derek Price  <derek@ximbiot.com>
50747
50748         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50749         From Larry Jones <lawrence.jones@ugs.com>.
50750
50751 2005-09-02  Simon Josefsson  <jas@extundo.com>
50752
50753         * modules/socklen: New file.
50754
50755 2005-09-02  Simon Josefsson  <jas@extundo.com>
50756
50757         * modules/havelib: New module.
50758
50759         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50760         Use havelib.
50761
50762 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50763
50764         Check for arithmetic overflow when calculating sizes, to prevent
50765         some buffer-overflow issues.  These patches are conservative, in the
50766         sense that when I couldn't determine whether an overflow was possible,
50767         I inserted a run-time check.
50768         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50769         macros.
50770         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50771         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50772         (re_xnrealloc, re_x2nrealloc): New inline functions.
50773         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50774         parse_bracket_exp):
50775         (build_equiv_class, build_charclass): Check for arithmetic overflow
50776         in size expression calculations.
50777         * lib/regex_internal.c (re_string_realloc_buffers):
50778         (build_wcs_upper_buffer, re_node_set_add_intersect):
50779         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50780         (re_dfa_add_node, register_state): Likewise.
50781         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50782         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50783         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50784         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50785
50786 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50789         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50790
50791 2005-09-02  Bruno Haible  <bruno@clisp.org>
50792
50793         Support for lib vs. lib64 distinction on biarch platforms.
50794         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50795         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50796         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50797
50798 2005-09-02  Bruno Haible  <bruno@clisp.org>
50799
50800         * gnulib-tool (import): In the other first-use case, provide defaults
50801         as well.
50802
50803 2005-09-02  Bruno Haible  <bruno@clisp.org>
50804
50805         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50806         patches not yet found in the latest gettext release.
50807
50808 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50809
50810         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50811         to avoid a collision with bits/local_lim.h in glibc.
50812         All uses changed.  Problem reported by Dmitry V. Levin in
50813         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50814
50815         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50816         bugs in int versus size_t comparisons.
50817         (re_string_context_at): Fix bug where the code assumed that
50818         Idx is signed.
50819
50820         Use bool where appropriate.
50821         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50822         All callers changed.
50823         (calc_eclosure_iter): Likewise, for ROOT arg.
50824         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50825         (build_charclass_op): Likewise, for NON_MATCH arg.
50826         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50827         (re_string_construct_common): Likewise, for ICASE arg.
50828         * lib/regexec.c (re_search_2_stub, re_search_stub):
50829         Likewise, for RET_LEN arg.
50830         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50831         (set_regs): Likewise, for FL_BACKTRACK arg.
50832         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50833         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50834         (calc_eclosure_iter, parse_bracket_exp):
50835         Use bool for internal variables that are booleans.
50836         * lib/regexec.c (re_search_internal, check_matching,
50837         proceed_next_node):
50838         (set_regs, build_sifted_states, sift_states_bkref):
50839         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50840         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50841         (find_collation_sequence_value):
50842         Likewise.
50843         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50844         (re_node_set_compare):
50845         Return bool, not int. All callers changed.
50846         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50847         (build_trtable, check_node_accept): Likewise.
50848         * lib/regex_internal.h: Include stdbool.h.
50849
50850         Fix bugs uncovered when converting to bool.
50851         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50852         failure instead of charging ahead blindly.
50853         * lib/regex_internal.c (register_state): Likewise.
50854         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50855         for freeing internal storage.
50856         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50857         bitset pieces used as boolean, to avoid undefined behavior
50858         on hosts that do int overflow checking.
50859
50860 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50861
50862         * config/srclist.txt: Add glibc bugs 1285-1287.
50863
50864 2005-09-01  Jim Meyering  <jim@meyering.net>
50865
50866         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50867         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50868         Require gl_STAT_MACROS, too.
50869
50870 2005-09-01  Bruno Haible  <bruno@clisp.org>
50871
50872         * gnulib-tool (import): In the first-use case, provide defaults.
50873
50874 2005-09-01  Bruno Haible  <bruno@clisp.org>
50875
50876         * gnulib-tool (func_import): Remove the .tmp files.
50877
50878 2005-09-01  Bruno Haible  <bruno@clisp.org>
50879
50880         * gnulib-tool (func_import): Fix handling of symbolic links.
50881
50882 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50883
50884         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50885         old glibc regex code mishandles strings longer than 2**31 bytes.
50886         This patch fixes this when the regex code is used in gnulib
50887         (i.e., outside glibc).
50888
50889         This patch should not affect the use of the regex code inside
50890         glibc.  No doubt this problem also needs to be handled for glibc
50891         as well, but the result will be an incompatible change to the
50892         glibc ABI, and the old ABI will have to be supported too.  That
50893         can be the the subject for another patch.
50894
50895         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50896         governing whether the rest of this patch is active.  By default,
50897         the macro is disabled and the patch has no effect.
50898         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50899         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50900         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50901         (re_match_2, re_set_registers): Use the new types.
50902         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50903         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50904         New macros.
50905         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50906         (re_string_context_at, bin_tree_t, re_dfastate_t):
50907         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50908         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50909         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50910         (re_string_char_size_at, re_string_wchar_at):
50911         (re_string_elem_size_at):
50912         Use the new types and macros to port to 64-bit hosts.
50913         Use unsigned types for internal values, so that the code
50914         mostly works even for arrays larger than SSIZE_MAX.
50915         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50916         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50917         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50918         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50919         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50920         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50921         (calc_inveclosure, parse_dup_op, build_range_exp):
50922         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50923         (fetch_number, create_token_tree, mark_opt_subexp):
50924         Likewise.
50925         * lib/regex_internal.c (re_string_construct_common,
50926         create_ci_newstate):
50927         (create_cd_newstate, re_string_allocate, re_string_construct):
50928         (re_string_realloc_buffers, build_wcs_upper_buffer):
50929         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50930         (re_string_reconstruct, re_string_peek_byte_case):
50931         (re_string_fetch_byte_case, re_string_context_at):
50932         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50933         (re_node_set_init_copy, re_node_set_add_intersect):
50934         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50935         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50936         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50937         (re_acquire_state, re_acquire_state_context, register_state):
50938         Likewise.
50939         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50940         search_cur_bkref_entry):
50941         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50942         (re_search_internal, re_search_2_stub, re_search_stub)
50943         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50944         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50945         (update_cur_sifted_state, check_dst_limits):
50946         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50947         (check_subexp_limits, sift_states_bkref, merge_state_array):
50948         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50949         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50950         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50951         (expand_bkref_cache, check_node_accept_bytes):
50952         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50953         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50954         (acquire_init_state_context, check_halt_node_context):
50955         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50956         (sift_states_backward, clean_state_log_if_needed):
50957         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50958         (find_recover_state, transit_state_sb, transit_state_mb):
50959         (transit_state_bkref, build_trtable, match_ctx_clean):
50960         Likewise.
50961         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50962         to work around an assumption that REG_MISSING is negative.
50963
50964         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50965         (seek_collating_symbol_entry) [defined _LIBC]:
50966         (lookup_collation_sequence_value) [defined _LIBC]:
50967         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50968         Use prototypes rather than old-style function definitions.
50969         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50970         (transit_state_sb) [0]:
50971         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50972
50973         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50974         rm_eo.
50975
50976         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50977         (optimize_subexps, lower_subexp):
50978         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50979         since the signed shift might overflow.  Use 1u<<31 instead.
50980         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50981         Likewise.
50982         * lib/regexec.c (check_dst_limits_calc_pos_1,
50983         check_subexp_matching_top): Likewise.
50984
50985         * lib/regcomp.c (optimize_subexps, lower_subexp):
50986         Use CHAR_BIT rather than 8, for clarity.
50987         * lib/regexec.c (check_dst_limits_calc_pos_1):
50988         (check_subexp_matching_top): Likewise.
50989         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50990         have to worry about portability issues when shifting it left.
50991         Remove no-longer-needed test for table_size > 0.
50992         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50993         in a word, as the resulting behavior is undefined.
50994         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50995         in one case, a <= should have been an <, and in another case the
50996         whole test was missing.
50997         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50998         the standard name CHAR_BIT.
50999         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51000         this is not true on one's complement and signed-magnitude hosts.
51001
51002         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51003         next_last_offset.
51004         (struct re_dfa_t): Remove unused member states_alloc.
51005         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51006
51007 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51008
51009         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51010         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51011         and large-file glibc and in 32-bit large-file Solaris.
51012
51013 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51014
51015         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51016         lengths fit in regoff_t; this isn't true if regoff_t is the same
51017         width as size_t.
51018         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51019         (= START + RANGE) instead of RANGE.  This avoids overflow
51020         problems when regoff_t is the same width as size_t.
51021         All callers changed.
51022         (re_search_2_stub): Check for overflow when adding the
51023         sizes of the two strings.
51024         (re_search_stub): Check for overflow when adding START
51025         to RANGE; if it occurs, substitute the extreme value.
51026
51027 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51028
51029         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51030
51031 2005-08-31  Jim Meyering  <jim@meyering.net>
51032
51033         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51034         a pointer-to-const.
51035         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51036         (register_state): Likewise.
51037         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51038         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51039         (group_nodes_into_DFAstates): Likewise.
51040
51041 2005-08-31  Jim Meyering  <jim@meyering.net>
51042
51043         * check-module: Add a FIXME comment.
51044
51045 2005-08-31  Eric Blake  <ebb9@byu.net>
51046
51047         * modules/unistd-safer (Files): Add unistd--.h.
51048         * modules/stdio-safer (Files): Add stdio--.h.
51049
51050 2005-08-31  Derek Price  <derek@ximbiot.com>
51051
51052         * lib/getdelim.c (getdelim): Return EOF on EOF.
51053         Reported by Larry Jones <lawrence.jones@ugs.com>.
51054
51055 2005-08-31  Bruno Haible  <bruno@clisp.org>
51056
51057         Avoid unnecessary diffs in the generated lib/Makefile.am.
51058         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51059         the generated files.
51060         (func_import): Don't set cmd.
51061
51062 2005-08-31  Bruno Haible  <bruno@clisp.org>
51063
51064         * lib/strstr.c: Include <stddef.h>, for NULL.
51065         * lib/strcasestr.c: Likewise.
51066         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51067
51068 2005-08-31  Bruno Haible  <bruno@clisp.org>
51069
51070         * gnulib-tool: New option --macro-prefix.
51071         (func_import): Use macro_prefix.
51072         (import): Handle option --macro-prefix.
51073
51074 2005-08-31  Bruno Haible  <bruno@clisp.org>
51075
51076         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51077         Also use new variables cached_lgpl, cached_libtool.
51078
51079 2005-08-31  Bruno Haible  <bruno@clisp.org>
51080
51081         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51082         always instantiating them.
51083
51084 2005-08-31  Bruno Haible  <bruno@clisp.org>
51085
51086         * gnulib-tool (func_import): Read the previous cached settings
51087         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51088         earlier added by gnulib but are now dropped. Warn when a gnulib file
51089         overwrites a non-gnulib file.
51090
51091 2005-08-31  Bruno Haible  <bruno@clisp.org>
51092
51093         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51094         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51095         projects that don't keep autogenerated files in CVS. Put into
51096         actioncmd only the specified modules, not the transitive closure.
51097
51098 2005-08-31  Bruno Haible  <bruno@clisp.org>
51099
51100         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51101         Create directories that shall be filled.
51102         (import): Don't look for gl_* macros in configure.ac. Recurse across
51103         all directories containing a gnulib-cache.m4 files, if meaningful.
51104
51105 2005-08-31  Bruno Haible  <bruno@clisp.org>
51106
51107         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51108         (import): Set seen_libtool when we see gl_LIBTOOL.
51109
51110 2005-08-31  Bruno Haible  <bruno@clisp.org>
51111
51112         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51113         declaration macro definitions from generated gnulib.m4.
51114
51115 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51116
51117         * lib/iconvme.h: Add prototype for iconv_alloc.
51118
51119 2005-08-29  Simon Josefsson  <jas@extundo.com>
51120
51121         * lib/iconvme.c: Fix errno.
51122
51123 2005-08-29  Bruno Haible  <bruno@clisp.org>
51124
51125         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51126         that it works when the directory contains spaces.
51127
51128 2005-08-29  Bruno Haible  <bruno@clisp.org>
51129
51130         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51131
51132 2005-08-29  Bruno Haible  <bruno@clisp.org>
51133
51134         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51135         Emit more advice.
51136
51137 2005-08-29  Bruno Haible  <bruno@clisp.org>
51138         and Stepan Kasal  <kasal@ucw.cz>
51139
51140         * check-module: If more parameters are given, check each of them
51141         separately; add more exceptions, as noted by Jim Meyering.
51142         (check_module): New procedure.
51143         (%exempt_header): Now contains all exceptions.
51144
51145 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51146
51147         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51148
51149 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51150
51151         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51152
51153 2005-08-28  Bruno Haible  <bruno@clisp.org>
51154
51155         * m4/gnulib-tool.m4: New file.
51156
51157 2005-08-27  Jim Meyering  <jim@meyering.net>
51158
51159         * modules/unistd-safer (Files): Add pipe-safer.c.
51160         * modules/fcntl-safer (Files): Add creat-safer.c.
51161
51162 2005-08-27  Jim Meyering  <jim@meyering.net>
51163
51164         * m4/stdlib-safer.m4: New file.  From coreutils.
51165         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51166         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51167         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51168         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51169         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51170
51171 2005-08-27  Jim Meyering  <jim@meyering.net>
51172
51173         * lib/fopen-safer.c: Merge minor changes from coreutils.
51174         * lib/dup-safer.c: Likewise.
51175         * lib/fd-safer.c: Likewise.
51176
51177         Merge from coreutils.
51178         * lib/stdio--.h: New file.
51179         * lib/stdlib--.h: New file.
51180         * lib/mkstemp-safer.c: New file.
51181
51182         GNU tar needs these.
51183         * lib/pipe-safer.c: New file.
51184         * lib/creat-safer.c: New file.
51185         * lib/fcntl--.h (creat): Define to creat_safer.
51186         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51187         * lib/unistd--.h (pipe): Define to pipe_safer.
51188         * lib/unistd-safer.h: Declare pipe_safer.
51189
51190 2005-08-26  Simon Josefsson  <jas@extundo.com>
51191
51192         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51193         Haible <bruno@clisp.org>.
51194
51195 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51196
51197         * lib/regex_internal.h: Remove all references to
51198         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51199         or better.
51200         (bitset_not, bitset_merge, bitset_not_merge):
51201         (bitset_mask, re_string_allocate, re_string_construct):
51202         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51203         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51204         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51205         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51206         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51207         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51208         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51209         (re_acquire_state_context):
51210         Remove unnecessary forward decls.
51211         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51212         Put __attribute at function definition,
51213         now that the function decl has been removed.
51214         * lib/regex_internal.c (re_string_peek_byte_case):
51215         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51216         Likewise.
51217
51218 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51219
51220         * m4/regex.m4: Add AC_PREREQ(2.50).
51221         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51222
51223 2005-08-25  Simon Josefsson  <jas@extundo.com>
51224
51225         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51226         __fsetlocking.
51227
51228 2005-08-25  Simon Josefsson  <jas@extundo.com>
51229
51230         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51231         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51232         GLIBC specific code.
51233
51234 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51235
51236         Make regex safe for g++.  This fixes one real bug (an "err"
51237         that should have been "*err").  g++ problem reported by
51238         Sam Steingold.
51239         * lib/regex_internal.h (re_calloc): New macro, consistent with
51240         re_malloc etc.  All callers of calloc changed to use re_calloc.
51241         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51242         not int.  All callers changed.
51243         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51244         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51245         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51246         (find_recover_state): Change "err" to "*err"; this fixes what
51247         appears to be a real bug.
51248         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51249         versus int.
51250
51251 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * modules/regex (Depends-on): Add malloc, since the code
51254         assumes that !malloc(0) means failure.
51255
51256 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51257
51258         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51259
51260         alloca modernization/simplification for regex.
51261         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51262         needs to be at the start of the file, and can be moved into
51263         regex_internal.h and simplified.
51264         * lib/regex_internal.h: Include <alloca.h>.
51265         (__libc_use_alloca) [!defined _LIBC]: New macro.
51266         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51267         now works outside glibc.
51268
51269 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51270
51271         * config/srclist.txt: Add glibc bugs 1241, 1245.
51272
51273 2005-08-25  Jim Meyering  <jim@meyering.net>
51274
51275         * lib/open-safer.c: Include <config.h>.
51276         Otherwise, we'd lose LARGEFILE support in any file using
51277         e.g. "fcntl--.h"
51278
51279 2005-08-25  Bruno Haible  <bruno@clisp.org>
51280
51281         * m4/minmax.m4: Require autoconf 2.52.
51282         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51283         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51284         alternatives of translit over the alphabet.
51285         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51286
51287 2005-08-24  Simon Josefsson  <jas@extundo.com>
51288
51289         * tests/test-getpass.c: New file.
51290
51291 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51292
51293         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51294         for GNU regex features.
51295
51296 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51297
51298         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51299         * lib/regex.h (regerror): Likewise.
51300
51301         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51302         requires this.  (The code never needed it.)
51303
51304         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51305         All uses of recently-renamed identifiers changed to use the new,
51306         POSIX-compliant names.  The code will build and run just fine
51307         without these changes, but it's better to eat our own dog food
51308         and use the standard-conforming names.
51309
51310         * lib/regex.h: Fix a multitude of POSIX name space violations.
51311         These changes have an effect only for programs that define
51312         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51313         do not change anything for programs compiled in the normal way.
51314         Also, there is no effect on the ABI.
51315
51316         (_REGEX_SOURCE): New macro.
51317         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51318         defined and _GNU_SOURCE is not; this fixes a name space violation.
51319
51320         Rename the following macros to obey POSIX requirements.
51321         The old names are still visible as macros if _REGEX_SOURCE is defined.
51322         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51323         RE_BACKSLASH_ESCAPE_IN_LISTS.
51324         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51325         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51326         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51327         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51328         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51329         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51330         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51331         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51332         (REG_INTERVALS): renamed from RE_INTERVALS.
51333         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51334         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51335         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51336         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51337         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51338         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51339         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51340         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51341         RE_UNMATCHED_RIGHT_PAREN_ORD.
51342         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51343         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51344         (REG_DEBUG): renamed from RE_DEBUG.
51345         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51346         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51347         unusual, since we can't clash with the POSIX REG_ICASE.
51348         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51349         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51350         (REG_NO_SUB): renamed from RE_NO_SUB.
51351         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51352         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51353         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51354         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51355         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51356         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51357         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51358         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51359         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51360         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51361         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51362         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51363         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51364         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51365         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51366         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51367         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51368         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51369         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51370         (REG_FIXED): Renamed from REGS_FIXED.
51371         (REG_NREGS): Renamed from RE_NREGS.
51372
51373         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51374         of other REG_* macros, since POSIX says the user is allowed to
51375         #undef these macros selectively.
51376
51377         (reg_errcode_t): Update comment stating what other tables need
51378         to be consistent.
51379
51380         Rename the following enum values to obey POSIX requirements.
51381         The old names are still visible as macros.
51382         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51383         is not defined, since GNU is supposed to be a superset of POSIX as
51384         much as possible, and since we want reg_errcode_t to be a signed
51385         type for implementation consistency.
51386         (_REG_NOERROR): Renamed from REG_NOERROR.
51387         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51388         (_REG_BADPAT): Renamed from REG_BADPAT.
51389         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51390         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51391         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51392         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51393         (_REG_EBRACK): Renamed from REG_EBRACK.
51394         (_REG_EPAREN): Renamed from REG_EPAREN.
51395         (_REG_EBRACE): Renamed from REG_EBRACE.
51396         (_REG_BADBR): Renamed from REG_BADBR.
51397         (_REG_ERANGE): Renamed from REG_ERANGE.
51398         (_REG_ESPACE): Renamed from REG_ESPACE.
51399         (_REG_BADRPT): Renamed from REG_BADRPT.
51400         (_REG_EEND): Renamed from REG_EEND.
51401         (_REG_ESIZE): Renamed from REG_ESIZE.
51402         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51403         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51404         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51405         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51406         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51407
51408         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51409         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51410         changed.  But support the old name if the new one is not defined
51411         and if _REGEX_SOURCE.
51412
51413         Change the following member names in struct re_pattern_buffer.
51414         The old names are still supported if !_REGEX_SOURCE.
51415         The new names are always supported, regardless of _REGEX_SOURCE.
51416         (re_buffer): Renamed from buffer.
51417         (re_allocated): Renamed from allocated.
51418         (re_used): Renamed from used.
51419         (re_syntax): Renamed from syntax.
51420         (re_fastmap): Renamed from fastmap.
51421         (re_translate): Renamed from translate.
51422         (re_can_be_null): Renamed from can_be_null.
51423         (re_regs_allocated): Renamed from regs_allocated.
51424         (re_fastmap_accurate): Renamed from fastmap_accurate.
51425         (re_no_sub): Renamed from no_sub.
51426         (re_not_bol): Renamed from not_bol.
51427         (re_not_eol): Renamed from not_eol.
51428         (re_newline_anchor): Renamed from newline_anchor.
51429
51430         Change the following member names in struct re_registers.
51431         The old names are still supported if !_REGEX_SOURCE.
51432         The new names are always supported, regardless of _REGEX_SOURCE.
51433         (rm_num_regs): Renamed from num_regs.
51434         (rm_start): Renamed from start.
51435         (rm_end): Renamed from end.
51436
51437         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51438         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51439         Prepend __ to parameter names.
51440
51441         Undo yesterday's changes.
51442
51443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51444
51445         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51446         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51447         lib/regex.c.
51448
51449 2005-08-24  Jim Meyering  <jim@meyering.net>
51450
51451         Sync from coreutils.
51452         * m4/fcntl-safer.m4: New file.
51453
51454         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51455         and object files for this module.
51456
51457 2005-08-24  Jim Meyering  <jim@meyering.net>
51458
51459         Sync from coreutils.
51460         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51461
51462 2005-08-24  Jim Meyering  <jim@meyering.net>
51463
51464         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51465         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51466
51467 2005-08-24  Jim Meyering  <jim@meyering.net>
51468
51469         * modules/fcntl-safer: New module.
51470         * modules/fts (Depends-on): Add fcntl-safer.
51471         * MODULES.html.sh (File descriptor based Input/Output):
51472         Add fcntl-safer.
51473
51474 2005-08-24  Bruno Haible  <bruno@clisp.org>
51475
51476         Support for unit test modules.
51477         * modules/README: Mention tests modules.
51478         * modules/TEMPLATE-TESTS: New file.
51479         * gnulib-tool: New options --extract-tests-module, --with-tests and
51480         --tests-base (unused for the moment).
51481         (testsbase, inctests): New variables.
51482         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51483         (func_verify_module): Exclude TEMPLATE-TESTS.
51484         (func_verify_nontests_module, func_verify_tests_module): New functions.
51485         (func_get_dependencies): Add implicit dependency for tests modules.
51486         (func_get_tests_module): New function.
51487         (func_modules_transitive_closure): When --with-tests was specified,
51488         include the unit tests as well, unless explicitly avoided.
51489         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51490         (func_emit_tests_Makefile_am): New function.
51491         (func_create_testdir): When --with-tests was specified, emit a
51492         tests/ directory.
51493         * MODULES.html.sh (Future developments): Update.
51494
51495 2005-08-24  Bruno Haible  <bruno@clisp.org>
51496
51497         * modules/tls-tests: New file.
51498         * tests/test-tls.c: New file, from GNU gettext.
51499
51500 2005-08-24  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/lock-tests: New file.
51503         * tests/test-lock.c: New file, from GNU gettext.
51504
51505 2005-08-24  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/lock.h: Add multiple inclusion guard.
51508         * lib/tls.h: Add multiple inclusion guard.
51509
51510 2005-08-24  Bruno Haible  <bruno@clisp.org>
51511
51512         * gnulib-tool: Add support for the --aux-dir option to
51513         --create-testdir, --create-megatestdir, --test, --megatest.
51514         (func_create_testdir, func_create_megatestdir): Optionally emit a
51515         AC_CONFIG_AUX_DIR directive.
51516         (create-testdir, create-megatestdir, test, megatest): Provide a
51517         default value for $auxdir.
51518
51519 2005-08-24  Bruno Haible  <bruno@clisp.org>
51520
51521         * gnulib-tool (import): Use compound statement instead of subshell
51522         where possible.
51523
51524 2005-08-24  Bruno Haible  <bruno@clisp.org>
51525
51526         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51527
51528 2005-08-24  Bruno Haible  <bruno@clisp.org>
51529
51530         * gnulib-tool (func_version): Update.
51531
51532 2005-08-24  Bruno Haible  <bruno@clisp.org>
51533
51534         * gnulib-tool (func_import, func_create_testdir,
51535         func_create_megatestdir): Quote all autoconf macro arguments.
51536
51537 2005-08-24  Bruno Haible  <bruno@clisp.org>
51538
51539         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51540         option --force, because --force causes the aclocal.m4 of each
51541         subdirectory to be newer than the corresponding config.h.in.
51542
51543 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51546         All contents moved to gl_REGEX.
51547         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51548         assume that it does.
51549
51550 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51551
51552         * lib/regex.h (REG_NOSYS)
51553         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51554         Define, since POSIX requires it as of 2001.
51555         (_REG_ENOSYS)
51556         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51557         New private symbol, used to keep the enum signed in all cases.
51558         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51559         Youngman in
51560         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51561
51562         * lib/regex_internal.c (re_string_skip_chars, register_state):
51563         (calc_state_hash):
51564         Remove forward decls; no longer needed now that we use prototypes.
51565         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51566         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51567         (clean_state_log_if_needed): Likewise.
51568
51569 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51570
51571         * config/srclist.txt: Add glibc bugs 1231-1233.
51572
51573 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51574
51575         Fix problems reported by Sam Steingold in
51576         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51577         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51578         assumed that reg_errcode_t is a signed type, which is not
51579         necessarily true if _XOPEN_SOURCE is not defined.
51580         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51581         since some compilers warn about it otherwise.
51582
51583 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51586         (init_word_char, create_initial_state, duplicate_node_closure):
51587         (fetch_token, peek_token_bracket, build_range_exp):
51588         (build_collating_symbol): Remove forward decls; no longer needed
51589         now that we use prototypes.
51590
51591         * lib/regcomp.c:
51592         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51593         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51594         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51595         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51596         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51597         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51598         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51599         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51600         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51601         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51602         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51603         (build_charclass, build_charclass_op, fetch_number, create_tree):
51604         (create_token_tree, mark_opt_subexp, duplicate_tree):
51605         Use prototypes rather than old-style definitions.
51606
51607         * lib/regex_internal.c:
51608         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51609         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51610         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51611         (re_string_reconstruct, re_string_peek_byte_case):
51612         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51613         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51614         (re_node_set_init_copy, re_node_set_add_intersect):
51615         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51616         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51617         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51618         (re_acquire_state, re_acquire_state_context, register_state):
51619         (create_ci_newstate, create_cd_newstate, free_state):
51620         Likewise.
51621         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51622         re_search_2):
51623         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51624         (re_search_internal, prune_impossible_nodes):
51625         (acquire_init_state_context, check_matching, static):
51626         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51627         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51628         (update_regs, sift_states_backward, build_sifted_states):
51629         (clean_state_log_if_needed, merge_state_array):
51630         (update_cur_sifted_state, add_epsilon_src_nodes):
51631         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51632         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51633         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51634         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51635         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51636         (check_arrival, check_arrival_add_next_nodes):
51637         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51638         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51639         (check_node_accept_bytes, check_node_accept, extend_buffers):
51640         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51641         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51642         (sift_ctx_init):
51643         Likewise.
51644
51645         * lib/regex_internal.h:
51646         (re_string_allocate, re_string_construct, re_string_reconstruct):
51647         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51648         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51649         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51650         (re_string_context_at, re_string_peek_byte_case):
51651         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51652         is defined, since we now use prototypes always.
51653
51654         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51655         C89 or better.  All uses removed.
51656
51657 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51658
51659         * config/srclist.txt: Add glibc bugs 1220-1227.
51660
51661 2005-08-20  Jim Meyering  <jim@meyering.net>
51662
51663         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51664         of unused local, dfa.
51665
51666 2005-08-20  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51669
51670 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51671
51672         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51673         (re_node_set_insert_last, re_dfa_add_node):
51674         Rename local variables to avoid GCC shadowing warnings.
51675
51676 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51679         [defined lint]: Suppress bogus uninitialized-variable warnings.
51680
51681         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51682         and let the caller return REG_ESPACE if out of space.  This
51683         removes an uninitialied-variable warning with GCC 4.0.1, and also
51684         avoids taking the address of a local variable.  All callers
51685         changed.
51686
51687 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51688
51689         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51690         $LIBCSRC/posix/regexec.c.
51691         Add glibc bug 1217 for regcomp.c.
51692
51693 2005-08-19  Jim Meyering  <jim@meyering.net>
51694
51695         * lib/regexec.c (proceed_next_node): Redo local variables to
51696         avoid GCC shadowing warnings.
51697
51698 2005-08-18  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/strstr.c (strstr): Fix return value in multibyte case.
51701         * lib/strcasestr.c (strcasestr): Likewise.
51702
51703 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51704
51705         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51706
51707 2005-08-17  Jim Meyering  <jim@meyering.net>
51708
51709         Make the %s format (seconds since the epoch) work for a negative
51710         number and when used with a zero-padded field width, e.g. %015s.
51711
51712         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51713         label so that it precedes the code to set `digits'.  Otherwise,
51714         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51715         print `00-22'.  Now, it prints `-0022', as it should.
51716
51717 2005-08-17  Bruno Haible  <bruno@clisp.org>
51718
51719         * modules/strstr (Files): Add m4/mbrtowc.m4.
51720         (Depends-on): Add mbuiter.
51721
51722 2005-08-17  Bruno Haible  <bruno@clisp.org>
51723
51724         * modules/strcasestr: New file.
51725         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51726         strcasestr.
51727
51728 2005-08-17  Bruno Haible  <bruno@clisp.org>
51729
51730         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51731
51732 2005-08-17  Bruno Haible  <bruno@clisp.org>
51733
51734         * modules/mbuiter: New file.
51735         * MODULES.html.sh (Extended multibyte and wide character utilities):
51736         Add mbuiter.
51737
51738 2005-08-17  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51741         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51742
51743 2005-08-17  Bruno Haible  <bruno@clisp.org>
51744
51745         * m4/strcasestr.m4: New file.
51746
51747 2005-08-17  Bruno Haible  <bruno@clisp.org>
51748
51749         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51750         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51751
51752 2005-08-17  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/strcasestr.h: New file.
51755         * lib/strcasestr.c: New file.
51756
51757 2005-08-17  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/strcasecmp.c: Use mbuiter.h.
51760
51761 2005-08-17  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/mbuiter.h: New file.
51764
51765 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51766
51767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51768         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51769         and gl_GETOPT are both invoked via different paths (as happens
51770         with GNU tar CVS because it uses both argp and getopt), the former
51771         wins.
51772
51773 2005-08-16  Bruno Haible  <bruno@clisp.org>
51774
51775         * modules/tls: New file.
51776         * MODULES.html.sh (Multithreading): Add tls.
51777
51778 2005-08-16  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/strnlen1: New file.
51781         * MODULES.html.sh (String handling): Add strnlen1.
51782
51783 2005-08-16  Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/strcase (Files): Add m4/mbrtowc.m4.
51786         (Depends-on): Add strnlen1, mbchar.
51787
51788 2005-08-16  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/mbiter: New file.
51791         * MODULES.html.sh (Extended multibyte and wide character utilities):
51792         Add mbiter.
51793
51794 2005-08-16  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/mbfile: New file.
51797         * MODULES.html.sh (Extended multibyte and wide character utilities):
51798         Add mbfile.
51799
51800 2005-08-16  Bruno Haible  <bruno@clisp.org>
51801
51802         * modules/mbchar: New file.
51803         * MODULES.html.sh (Extended multibyte and wide character utilities):
51804         New section.
51805
51806 2005-08-16  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/tls.m4: New file, from GNU gettext.
51809
51810 2005-08-16  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51813         always.
51814         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51815
51816 2005-08-16  Bruno Haible  <bruno@clisp.org>
51817
51818         * m4/mbiter.m4: New file.
51819
51820 2005-08-16  Bruno Haible  <bruno@clisp.org>
51821
51822         * m4/mbfile.m4: New file.
51823
51824 2005-08-16  Bruno Haible  <bruno@clisp.org>
51825
51826         * m4/mbchar.m4: New file.
51827
51828 2005-08-16  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/tls.h: New file, from GNU gettext.
51831         * lib/tls.c: New file, from GNU gettext.
51832
51833 2005-08-16  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/strnlen1.h: New file.
51836         * lib/strnlen1.c: New file.
51837
51838 2005-08-16  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51841         (mbi_init): Update.
51842         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51843         NUL byte, not after it.
51844
51845 2005-08-16  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/strcase.h (strcasecmp): Add note in comments.
51848         * lib/strncasecmp.c: Use code from strcasecmp.c.
51849         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51850         (strcasecmp): Work correctly in multibyte locales.
51851
51852 2005-08-16  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/mbiter.h: New file.
51855
51856 2005-08-16  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/mbfile.h: New file.
51859
51860 2005-08-16  Bruno Haible  <bruno@clisp.org>
51861
51862         * lib/mbchar.h: New file.
51863         * lib/mbchar.c: New file.
51864
51865 2005-08-16  Bruno Haible  <bruno@clisp.org>
51866
51867         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51868         the valid ones. Makes the comparison operations transitive:
51869         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51870         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51871
51872 2005-08-15  Simon Josefsson  <jas@extundo.com>
51873
51874         * modules/ssize_t (License): Change to 'unlimited'.
51875
51876         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51877
51878 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51879
51880         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51881         Add comments for each pending glibc patch.
51882
51883 2005-08-15  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51886         __cplusplus is defined.
51887
51888 2005-08-14  Jim Meyering  <jim@meyering.net>
51889
51890         Sync from coreutils.
51891
51892         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51893         Use the hash-table-based cycle-detection code not just when
51894         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51895         Reported by James Youngman in
51896         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51897         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51898         FTS_TIGHT_CYCLE_CHECK.
51899         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51900         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51901         once again.
51902         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51903         * lib/fts.c (fd_safer): Remove decl.
51904         Include fcntl--.h rather than unistd-safer.h
51905         (fts_safe_changedir): Don't call fd_safer; no longer needed
51906         now that we include fcntl--.h.
51907
51908 2005-08-12  Simon Josefsson  <jas@extundo.com>
51909
51910         * modules/getndelim2: Use ssize_t module.
51911         * modules/getnline: Likewise.
51912         * modules/safe-read: Likewise.
51913         * modules/xreadlink: Likewise.
51914
51915         * modules/ssize_t: New file.
51916
51917 2005-08-12  Simon Josefsson  <jas@extundo.com>
51918
51919         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51920
51921 2005-08-12  Simon Josefsson  <jas@extundo.com>
51922
51923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51924         ssize_t.
51925
51926 2005-08-12  Simon Josefsson  <jas@extundo.com>
51927
51928         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51929         readline, getdelim and check_version.
51930         (Support for systems lacking ISO C 99: Sizes of integer types):
51931         Add size_max.
51932
51933 2005-08-12  Bruno Haible  <bruno@clisp.org>
51934
51935         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51936
51937 2005-08-11  Simon Josefsson  <jas@extundo.com>
51938
51939         * modules/readline: New file.
51940
51941         * modules/strnlen (Files): Add strnlen.h.
51942
51943 2005-08-11  Simon Josefsson  <jas@extundo.com>
51944
51945         * m4/readline.m4: New file.
51946
51947 2005-08-11  Simon Josefsson  <jas@extundo.com>
51948
51949         * lib/readline.h, readline.c: New file.
51950
51951 2005-08-11  Simon Josefsson  <jas@extundo.com>
51952
51953         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51954         gl_AVOID.
51955
51956 2005-08-11  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51959
51960 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51961
51962         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51963
51964 2005-08-10  Simon Josefsson  <jas@extundo.com>
51965
51966         * tests/test-iconvme.c: New file.
51967
51968 2005-08-10  Simon Josefsson  <jas@extundo.com>
51969
51970         * m4/strnlen.m4: New file.
51971
51972         * m4/strndup.m4: Don't check for strnlen declaration, done in
51973         strnlen.m4.
51974
51975 2005-08-10  Simon Josefsson  <jas@extundo.com>
51976
51977         * lib/strndup.c: Use strnlen.h.
51978
51979         * lib/strnlen.h: New file.
51980
51981 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51982
51983         * README: Typos.
51984
51985 2005-08-02  Simon Josefsson  <jas@extundo.com>
51986
51987         * modules/readline: New file.
51988
51989 2005-08-02  Simon Josefsson  <jas@extundo.com>
51990
51991         * modules/getdelim: New file.
51992
51993         * modules/getline: Rewrite, don't use getndelim2.
51994
51995 2005-08-02  Simon Josefsson  <jas@extundo.com>
51996
51997         * m4/getline.m4: Separate out getdelim stuff into separate module.
51998
51999         * m4/getdelim.m4: New file.
52000
52001 2005-08-02  Simon Josefsson  <jas@extundo.com>
52002
52003         * lib/getline.h, getline.c: Rewrite.
52004
52005         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52006
52007 2005-07-31  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/lock.h (gl_lock_initializer): New macro.
52010         (gl_lock_define_initialized): Use it.
52011         (gl_rwlock_initializer): New macro.
52012         (gl_rwlock_define_initialized): Use it.
52013         (gl_recursive_lock_initializer): New macro.
52014         (gl_recursive_lock_define_initialized): Use it.
52015
52016 2005-07-30  Karl Berry  <karl@gnu.org>
52017
52018         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52019         Report from Ben Pfaff, regarding getopt.
52020
52021 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52022
52023         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52024         normal way.
52025         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52026         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52027         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52028         (gl_GETOPT): Use the new macros.  Most of the implementation
52029         is moved to the new macros.  This is for programs like Emacs
52030         that don't want all the functionality of gl_GETOPT.
52031
52032 2005-07-26  Bruno Haible  <bruno@clisp.org>
52033
52034         * m4/lock.m4: Update from GNU gettext.
52035
52036 2005-07-26  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/lock.h: Update from GNU gettext.
52039         * lib/lock.c: Update from GNU gettext.
52040
52041 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52042
52043         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52044         obsolescent AC_TRY_RUN.  Include the default includes files, for
52045         'exit'.
52046
52047 2005-07-24  Bruno Haible  <bruno@clisp.org>
52048
52049         * modules/visibility: New file.
52050         * MODULES.html.sh (Misc): Add visibility.
52051
52052 2005-07-24  Bruno Haible  <bruno@clisp.org>
52053
52054         * m4/visibility.m4: New file.
52055
52056 2005-07-24  Bruno Haible  <bruno@clisp.org>
52057
52058         * doc/visibility.texi: New file.
52059
52060 2005-07-22  Bruno Haible  <bruno@clisp.org>
52061
52062         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52063         $(ALLOCA_H), redundant through BUILT_SOURCES.
52064         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52065         redundant through BUILT_SOURCES.
52066         * modules/byteswap (Makefile.am): Remove explicit dependency on
52067         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52068         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52069         $(FNMATCH_H), redundant through BUILT_SOURCES.
52070         * modules/getopt (Makefile.am): Remove explicit dependency on
52071         $(GETOPT_H), redundant through BUILT_SOURCES.
52072         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52073         redundant through BUILT_SOURCES.
52074         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52075         redundant through BUILT_SOURCES.
52076         * modules/stdbool (Makefile.am): Remove explicit dependency on
52077         $(STDBOOL_H), redundant through BUILT_SOURCES.
52078         * modules/stdint (Makefile.am): Remove explicit dependency on
52079         $(STDINT_H), redundant through BUILT_SOURCES.
52080         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52081         Remove explicit dependency on $(SYSEXITS_H).
52082         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52083
52084 2005-07-18  Simon Josefsson  <jas@extundo.com>
52085
52086         * lib/check-version.c (check_version): Accept identical versions too.
52087
52088 2005-07-18  Bruno Haible  <bruno@clisp.org>
52089
52090         * modules/lock: New file.
52091         * MODULES.html.sh (Multithreading): New section.
52092
52093 2005-07-18  Bruno Haible  <bruno@clisp.org>
52094
52095         * m4/lock.m4: New file, from GNU gettext.
52096
52097 2005-07-18  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/lock.h: New file, from GNU gettext.
52100         * lib/lock.c: New file, from GNU gettext.
52101
52102 2005-07-18  Bruno Haible  <bruno@clisp.org>
52103
52104         * lib/lock.h (gl_once_t): New type.
52105         (gl_once_define, gl_once): New macros.
52106         * lib/lock.c (fresh_once): New variable.
52107         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52108         functions.
52109
52110 2005-07-16  Simon Josefsson  <jas@extundo.com>
52111
52112         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52113         workaround, suggested by Bruno.
52114
52115 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52116
52117         * modules/xalloc (Depends-on): Add xalloc-die.
52118         * modules/xvasprintf (Depends-on): Add xalloc-die.
52119
52120 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52121
52122         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52123         with a minor change.
52124
52125 2005-07-15  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52128         When using lib/poll.c, define poll as rpl_poll.
52129
52130 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52131
52132         * modules/argp (Depends-on): Remove unlocked-io.
52133
52134 2005-07-14  Derek Price  <derek@ximbiot.com>
52135
52136         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52137         for glob symlink bug.
52138
52139 2005-07-14  Bruno Haible  <bruno@clisp.org>
52140
52141         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52142         Instead, test for *_unlocked function declarations directly.
52143
52144 2005-07-11  Simon Josefsson  <jas@extundo.com>
52145
52146         * modules/size_max: New file.
52147
52148         * modules/xsize: Depend on size_max module for size_max.m4.
52149
52150 2005-07-11  Simon Josefsson  <jas@extundo.com>
52151
52152         * lib/size_max.h: New file.
52153
52154 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52155
52156         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52157         copyright symbol and the year.
52158         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52159         (version_etc_va): Use parameterized copyright notice.
52160         Reword to conform to the current GNU coding standards.
52161
52162 2005-07-11  Karl Berry  <karl@gnu.org>
52163
52164         * doc/gnulib.texi (Quoting): new node.
52165         (Initial import): more info, from Patrice.
52166
52167 2005-07-11  Bruno Haible  <bruno@clisp.org>
52168
52169         * gnulib-tool (func_usage): Document option --avoid.
52170         (Command line options): Handle --avoid.
52171         (func_acceptable): New function.
52172         (func_modules_transitive_closure): Use it.
52173
52174 2005-07-11  Bruno Haible  <bruno@clisp.org>
52175
52176         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52177         Reported by Jim Meyering.
52178
52179 2005-07-10  Bruno Haible  <bruno@clisp.org>
52180
52181         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52182         Needed when size_t is smaller than 'unsigned int'.
52183         Reported by Paul Eggert.
52184
52185 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52186
52187         * modules/argp (Depends-on): Add unlocked-io
52188
52189 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52190
52191         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52192         block of defines.
52193
52194 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52195
52196         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52197         fix now.
52198
52199 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52200         and Paul Eggert  <eggert@cs.ucla.edu>
52201
52202         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52203         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52204
52205 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52206
52207         * modules/regex (Files): Add lib/regex_internal.c,
52208         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52209         (Depends-on): Add extensions.
52210         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52211
52212 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52213
52214         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52215         pathconf.
52216         * m4/same.m4 (gl_SAME): Likewise.
52217         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52218
52219         * m4/regex.m4: Adjust to new libc regex implementation.
52220         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52221         all the .c and .h parts of (the new) regex.
52222         Quote the m4 stuff better.
52223         Check for RE_ICASE bug of old gnulib.
52224         Check for REG_STARTEND of recent libc.
52225         Rename local variables from jm_* to gl_*.
52226         Quote operand of "test -f".
52227         Say "recent enough" version of libc, not "version 2".
52228         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52229         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52230         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52231         Remove check for btowc, isascii.
52232         Require AM_LANGINFO_CODESET.
52233
52234 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         * lib/regex.c, regex.h: Sync from libc.
52237         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52238         * lib/regexec.c:
52239         New files, synced from libc, except that regex_internal.h
52240         currently has a small porting fix.
52241
52242 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52243
52244         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52245         regex_internal.c, regexec.c.
52246         Add regex_internal.h too, but as a comment, since the libc version
52247         is currently broken in gnulib mode.
52248
52249 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52250
52251         Support programs like Emacs that use gnulib but not gettext.
52252         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52253         * modules/gettext-h: New file.
52254         * modules/gettext (Files): Remove lib/gettext.h.
52255         (Depends-on): Add gettext-h.
52256         (Makefile.am): Remove lib_SOURCES.
52257         * modules/argmatch, modules/c-stack, modules/closeout:
52258         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52259         * modules/execute, modules/file-type, modules/getaddrinfo:
52260         * modules/getopt, modules/human, modules/javacomp:
52261         * modules/javaexec, modules/mkdir-p, modules/obstack:
52262         * modules/openat, modules/pagealign_alloc, modules/pipe:
52263         * modules/quotearg, modules/regex, modules/rpmatch:
52264         * modules/unicodeio, modules/userspec, modules/version-etc:
52265         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52266         * modules/xsetenv:
52267         Depend on gettext-h, not gettext.
52268
52269 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         * gnulib-tool (func_import): Add support for 'public domain' license.
52272         * modules/alloca, modules/atexit, modules/memmove:
52273         Now public domain, not GPL.
52274         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52275         * modules/realloc, modules/strerror, modules/strtod:
52276         Now LGPL, not GPL.
52277
52278 2005-07-05  Bruno Haible  <bruno@clisp.org>
52279
52280         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52281         autoconf CVS. Needed for mingw.
52282
52283 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52284
52285         Remove the dependency of the strftime module on the tzset module.
52286         * modules/strftime (Depends-on): Remove dependency on tzset.
52287
52288 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         Remove the dependency of the strftime module on the tzset module.
52291         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52292         gl_FUNC_TZSET_CLOBBER.
52293
52294 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52295
52296         Remove the dependency of the strftime module on the tzset module.
52297         * lib/strftime.c (my_strftime)
52298         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52299         Copy the input structure, to work around some of the bug with
52300         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52301         Solaris releases, you should also use the tzset module, but we won't
52302         require it as a dependency any more since we don't want LGPLed code
52303         to depend on GPLed code.
52304
52305 2005-07-02  Jim Meyering  <jim@meyering.net>
52306
52307         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52308         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52309         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52310         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52311
52312 2005-07-02  Jim Meyering  <jim@meyering.net>
52313
52314         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52315
52316 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52319         declares only 'struct timespec;' (!).
52320
52321 2005-07-01  Jim Meyering  <jim@meyering.net>
52322
52323         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52324         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52325         * lib/save-cwd.c, tempname.c:
52326         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52327         and don't include <sys/file.h>).
52328
52329 2005-06-29  Jim Meyering  <jim@meyering.net>
52330
52331         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52332         type name.  Use the variable name instead.
52333         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52334         Likewise.
52335
52336 2005-06-28  Simon Josefsson  <jas@extundo.com>
52337
52338         * modules/check-version (Files): Add check-version.m4.
52339
52340 2005-06-28  Simon Josefsson  <jas@extundo.com>
52341
52342         * m4/check-version.m4: New file, suggested by Jim Meyering
52343         <jim@meyering.net>.
52344
52345 2005-06-28  Simon Josefsson  <jas@extundo.com>
52346
52347         * lib/check-version.h, lib/check-version.c: New files.
52348
52349 2005-06-28  Simon Josefsson  <jas@extundo.com>
52350
52351         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52352         collision with global variable.  Better indentation.  Don't
52353         increment buffer pointer beyond buffer end.  Based on comments
52354         from Paul Eggert <eggert@cs.ucla.edu>.
52355
52356         * lib/base64.h: Indent.
52357
52358 2005-06-28  Simon Josefsson  <jas@extundo.com>
52359
52360         * doc/gnulib.texi (Library version handling): New section.
52361
52362 2005-06-28  Jim Meyering  <jim@meyering.net>
52363
52364         * check-module (find_included_lib_files): Hard-code another
52365         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52366         but modules/fts-lgpl (correctly) does not list those files.
52367
52368         * modules/canonicalize (Files): Add lib/pathmax.h.
52369
52370 2005-06-25  Simon Josefsson  <jas@extundo.com>
52371
52372         * modules/check-version: New file.
52373
52374 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52375
52376         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52377         initializer of struct addrinfo, as an indication that we don't
52378         care how many members the structure has.
52379
52380 2005-06-24  Derek Price  <derek@ximbiot.com>
52381         and Bruno Haible  <bruno@clisp.org>
52382
52383         Remove stat module & update lstat.
52384         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52385         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52386         * m4/stat.m4: Remove this file.
52387
52388 2005-06-24  Derek Price  <derek@ximbiot.com>
52389         and Bruno Haible  <bruno@clisp.org>
52390
52391         Remove stat module & update lstat.
52392         * lib/stat.c: Remove this file...
52393         (slash_aware_lstat): ...moving this content and its support...
52394         * lib/lstat.c (rpl_lstat): ...into here.
52395         * lib/lstat.h: New file.
52396
52397 2005-06-24  Derek Price  <derek@ximbiot.com>
52398         and Bruno Haible  <bruno@clisp.org>
52399
52400         Remove stat module & update lstat.
52401         * config/srclist.txt (libc sources): Remove stat.
52402
52403 2005-06-24  Derek Price  <derek@ximbiot.com>
52404         and Bruno Haible  <bruno@clisp.org>
52405
52406         Remove stat module & update lstat.
52407         * MODULES.html.sh (stat): Remove.
52408         * MODULES.html: Regenerated.
52409         * modules/lstat (Description): Correct function name.
52410         (Files): Add "lstat.h".
52411         (Depends-on): Remove stat, add xalloc, stat-macros.
52412         * modules/stat: Remove this file.
52413         (Include): Add "lstat.h", remove <sys/stat.h>.
52414
52415 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52418         (ranged_convert): Don't save conversion in a temporary struct.
52419         This causes a warning with GCC 4.0.0, and anyway in the typical
52420         case it's not worth the extra 100 bytes or so of code.
52421         (ranged_convert, __mktime_internal): When calling a function via a
52422         pointer P, use P () rather than (*P) (), as we now assume C89 or
52423         better.
52424
52425 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52426
52427         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52428         "who -r" failed to give output.  Problem reported by Tim Waugh.
52429
52430         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52431         (xcalloc): Use it to avoid needless tests.
52432         Problem reported by Jim Meyering.
52433
52434 2005-06-20  Derek Price  <derek@ximbiot.com>
52435
52436         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52437         unnecessary for Autoconfs > 2.59c.
52438
52439 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52440
52441         * lib/argp.h (__option_is_short): Check upper limit of
52442         __key. Isprint() requires its argument to have the value
52443         of an unsigned char or EOF.
52444
52445 2005-06-16  Jim Meyering  <jim@meyering.net>
52446
52447         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52448         when either N or S is zero.
52449
52450 2005-06-16  Derek Price  <derek@ximbiot.com>
52451
52452         * m4/bison.m4: Declare YACC & YFLAGS precious.
52453
52454 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52455
52456         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52457         multibyte string or pattern, fall back on unibyte matching.
52458         Problem reported by James Youngman.
52459
52460 2005-06-08  Bruno Haible  <bruno@clisp.org>
52461
52462         * modules/csharpcomp: New file.
52463         * MODULES.html.sh (C#): Add csharpcomp.
52464
52465 2005-06-08  Bruno Haible  <bruno@clisp.org>
52466
52467         * m4/csharpcomp.m4: New file, from GNU gettext.
52468
52469 2005-06-08  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/csharpcomp.h: New file, from GNU gettext.
52472         * lib/csharpcomp.c: New file, from GNU gettext.
52473         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52474
52475 2005-06-08  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52478         warning on mingw.
52479
52480 2005-06-07  Derek Price  <derek@ximbiot.com>
52481
52482         Sync from CVS.
52483         * lib/glob_.h: Indent nested #ifdef.
52484
52485 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         Sync from coreutils.
52488         Use "file name" when talking about file names, instead of "filename"
52489         or "path", as per the GNU coding standards.
52490         * lib/mkdir-p.c: Renamed from makepath.c.
52491         (make_dir_parents): Renamed from make_path.  All callers changed.
52492         * lib/mkdir-p.h: Likewise.  All includers changed.
52493         * lib/filenamecat.c: Renamed from path-concat.c.
52494         (file_name_concat): Renamed from path_concat.  All callers changed.
52495         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52496         * lib/filenamecat.h: Likewise.  All includers changed.
52497         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52498         in comments or local variable names.
52499         * lib/basename.c: Likewise.
52500         * lib/canonicalize.c, canonicalize.h: Likewise.
52501         * lib/dirname.c, dirname.h: Likewise.
52502         * lib/euidaccess.c: Likewise.
52503         * lib/exclude.c: Likewise
52504         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52505         * lib/fsusage.c, fsuage.h: Likewise.
52506         * lib/fts.c, fts_.h: Likewise.
52507         * lib/getcwd.c: Likewise.
52508         * lib/getloadavg.c: Likewise.
52509         * lib/mkstemp.c: Likewise.
52510         * lib/mountlist.c, mountlist.h: Likewise.
52511         * lib/openat.c, openat.h: Likewise.
52512         * lib/readlink-stub.c: Likewise.
52513         * lib/readutmp.c, readutmp.h: Likewise.
52514         * lib/rename.c: Likewise.
52515         * lib/rmdir.c: Likewise.
52516         * lib/same.c: Likewise.
52517         * lib/savedir.c: Likewise.
52518         * lib/stripslash.c: Likewise.
52519         * lib/tempname.c: Likewise.
52520         * lib/xreadlink.c: Likewise.
52521         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52522         All uses changed.
52523         * lib/exclude.h: Likewise.
52524
52525         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52526         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52527         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52528         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52529         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52530         files have been getting away with it for years (MORE/BSD 4.3
52531         is extinct now).
52532         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52533         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52534
52535         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52536         Define to 256, not 255, as per modern POSIX.
52537
52538 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52539
52540         Sync from coreutils.
52541         Use "file name" when talking about file names, instead of "filename"
52542         or "path", as per the GNU coding standards.
52543         * MODULES.html.sh: mkdir-p renamed from makepath.
52544         filenamecat renamed from path-concat.
52545         * modules/filenamecat: Renamed from modules/path-concat.
52546         (Files): filenamecat.h and filenamecat.c renamed from
52547         path-concat.h and path-concat.c.
52548         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52549         (Include): filenamecat.h, not path-concat.h.
52550         * modules/mkdir-p: Renamed from modules/makepath.
52551         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52552         makepath.c.
52553         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52554         (Include): mkdir-p.h, not makepath.h.
52555
52556 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         Sync from coreutils.
52559         * m4/mkdir-p.m4: Renamed from makepath.m4.
52560         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52561         Rename files from makepath.c to mkdir-p.c, and from
52562         makepath.h to mkdir-p.h.
52563         * m4/filenamecat.m4: Renamed from path-concat.m4.
52564         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52565         Rename files from path-concat.c to filenamecat.c,
52566         and from path-concat.h to filenamecat.h.
52567         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52568         "file name" in local variables or comments.
52569         * m4/rename.m4: Likewise.
52570
52571 2005-06-01  Bruno Haible  <bruno@clisp.org>
52572
52573         * modules/csharpexec: New file.
52574         * MODULES.html.sh (C#): New section.
52575
52576 2005-06-01  Bruno Haible  <bruno@clisp.org>
52577
52578         * m4/csharp.m4: New file, from GNU gettext.
52579         * m4/csharpexec.m4: New file, from GNU gettext.
52580
52581 2005-06-01  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/csharpexec.h: New file, from GNU gettext.
52584         * lib/csharpexec.c: New file, from GNU gettext.
52585         * lib/csharpexec.sh.in: New file, from GNU gettext.
52586
52587 2005-05-31  Derek Price  <derek@ximbiot.com>
52588             Paul Eggert  <eggert@cs.ucla.edu>
52589
52590         Sync from cvs.
52591         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52592
52593 2005-05-31  Derek Price  <derek@ximbiot.com>
52594             Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         Sync from cvs.
52597         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52598
52599 2005-05-29  Derek Price  <derek@ximbiot.com>
52600
52601         * config/srclist.txt (glob_.h, glob.c): Add these files.
52602
52603 2005-05-29  Derek Price  <derek@ximbiot.com>
52604
52605         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52606         * modules/glob: New file.
52607         * modules/getlogin_r: Add link to POSIX spec in description.
52608
52609 2005-05-29  Derek Price  <derek@ximbiot.com>
52610             Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * m4/glob.m4: New file.
52613
52614 2005-05-29  Derek Price  <derek@ximbiot.com>
52615             Paul Eggert  <eggert@cs.ucla.edu>
52616
52617         * lib/glob_.h, lib/glob.c: New files.
52618
52619 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52620
52621         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52622         * modules/fts-lgpl (Depends-on): Remove gettext.
52623
52624 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52625
52626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52627         and don't require gt_INTTYPES_PRI.
52628
52629 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52630
52631         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52632
52633         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52634         the configuration hassle isn't worth it.
52635         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52636         (LONGEST_MODIFIER, PRIuMAX): Remove.
52637
52638 2005-05-27  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52641
52642 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52645         _POSIX_PTHREAD_SEMANTICS for Solaris.
52646
52647 2005-05-25  Derek Price  <derek@ximbiot.com>
52648
52649         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52650
52651 2005-05-25  Derek Price  <derek@ximbiot.com>
52652             Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52655         * lib/getlogin_r.c, getlogin_r.h: New files.
52656
52657 2005-05-25  Bruno Haible  <bruno@clisp.org>
52658             Derek Price  <derek@ximbiot.com>
52659
52660         * lib/getlogin_r.h: Simplify API documentation.
52661
52662 2005-05-23  Derek Price  <derek@ximbiot.com>
52663
52664         * modules/minmax (Files): Add m4/minmax.m4.
52665         (configure.ac): Add gl_MINMAX.
52666
52667 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52670         so that unistd-safer.h (GPL'ed code) need not be included.
52671
52672 2005-05-22  Bruno Haible  <bruno@clisp.org>
52673
52674         * m4/minmax.m4: New file.
52675         Based on a patch by Derek Price <derek@ximbiot.com>.
52676
52677 2005-05-22  Bruno Haible  <bruno@clisp.org>
52678
52679         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52680         (INT64_MIN): Fix definition.
52681         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52682
52683         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52684         NEED_SIGNED_INT_TYPES.
52685
52686         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52687         HAVE_SYSTEM_INTTYPES.
52688
52689 2005-05-22  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52692         Also include <sys/param.h> if it defines MIN, MAX.
52693         Based on a patch by Derek Price <derek@ximbiot.com>.
52694
52695 2005-05-21  Jim Meyering  <jim@meyering.net>
52696
52697         * modules/fts (Files): Add m4/inttypes-pri.m4.
52698         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52699
52700 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52701
52702         New fts module.
52703         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52704         (setup_dir, free_dir): New functions.
52705         (enter_dir, leave_dir): Define trivial
52706         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52707         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52708         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52709         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52710         Move to fts-cycle.c.
52711         (fts_open): Use setup_dir.
52712         (fts_close): Use free_dir.
52713         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52714         This adds a label and some gotos, but the alternatives were messier.
52715         Check for memory allocation failure when entering a dir.
52716         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52717         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52718         (FTS): New member fts_cycle, that is a union that contains the
52719         old active_dir_ht and cycle_state.  All uses changed to mention
52720         fts_cycle.ht and fts_cycle.state.
52721         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52722         fts.c, with the following changes:
52723         (setup_dir, free_dir): New functions.
52724         (enter_dir): Now returns bool.  Return true if successful, false
52725         if memory exhausted.  All callers changed.
52726         Do not bother partly cleaning up on
52727         memory allocation failure; that is free_dir's job.
52728         However, free ad if hash_insert fails, to avoid memory leak.
52729         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52730         fts->fts_options to see which union member to use.
52731
52732 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52733
52734         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52735         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52736
52737 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52738
52739         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52740
52741 2005-05-20  Jim Meyering  <jim@meyering.net>
52742
52743         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52744         Now a macro, to pacify GCC.
52745
52746 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52747
52748         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52749         of -1.
52750
52751 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52752
52753         * lib/chown.c (rpl_chown): Return -1 on failure.
52754
52755 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52758         Don't check for stddef.h.
52759         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52760         don't use its results.
52761         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52762         since we include them unconditionally.  Don't require
52763         AM_STDBOOL_H, since stdbool is a prerequisite.
52764         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52765         since we assume C89 or better.
52766         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52767         as we don't use their results.
52768         Don't check for fchdir, memmove, memset, strrchr, as we use
52769         them unconditionally.
52770         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52771         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52772
52773 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52774
52775         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52776         Include <stddef.h> unconditionally, since we assume C89 now.
52777         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52778         * lib/fts.c: Include fts_.h first, to check interface.
52779         Do not include intprops.h; no longer needed.
52780         Include cycle-check.h and hash.h, since fts_.h no longer does.
52781         Remove unnecessary casts of closedir to void.
52782         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52783         decide whether to decrement nlinks.
52784         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52785         (FTS): Use struct hash_table * instead of Hash_table, so that
52786         we no longer need to include hash.h here.
52787
52788 2005-05-18  Jim Meyering  <jim@meyering.net>
52789
52790         * modules/dirfd (License): Change to LGPL.  Most of the code
52791         is already in the public domain.
52792
52793 2005-05-18  Jim Meyering  <jim@meyering.net>
52794
52795         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52796         Reported by Yoann Vandoorselaere.
52797
52798 2005-05-17  Jim Meyering  <jim@meyering.net>
52799
52800         * m4/fts.m4: New file, from coreutils.
52801
52802 2005-05-17  Jim Meyering  <jim@meyering.net>
52803
52804         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52805
52806 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52807
52808         Sync from coreutils.
52809         * m4/unlinkdir.m4: New file.
52810
52811 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52812
52813         Sync from coreutils.
52814         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52815         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52816         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52817         White space changes only.
52818         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52819         special.
52820         * lib/yesno.c: Include getline.h, not ctype.h.
52821         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52822         Use getline to remove arbitrary restriction on response length.
52823
52824 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         * config/srclist-update: Spell out "Street" in FSF postal
52827         mail address; this is the style the FSF seems to prefer.
52828
52829         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52830         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52831         this updates FSF postal mail address.
52832
52833         Sync from coreutils.
52834         * modules/unlinkdir: New file.
52835         * modules/yesno (Depends-on): Add getline.
52836         * MODULES.html.sh (File system functions): Add unlinkdir.
52837
52838 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52839
52840         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52841         lib/strsep.h:
52842         Change the initial comment to refer to GPL, not LGPL.
52843         gnulib-tool will change it to LGPL as needed.
52844
52845         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52846         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52847         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52848         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52849         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52850         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52851         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52852         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52853         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52854         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52855         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52856         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52857         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52858         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52859         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52860         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52861         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52862         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52863         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52864         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52865         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52866         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52867         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52868         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52869         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52870         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52871         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52872         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52873         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52874         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52875         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52876         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52877         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52878         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52879         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52880         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52881         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52882         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52883         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52884         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52885         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52886         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52887         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52888         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52889         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52890         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52891         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52892         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52893         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52894         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52895         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52896         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52897         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52898         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52899         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52900         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52901         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52902         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52903         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52904         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52905         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52906         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52907         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52908         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52909         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52910         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52911         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52912         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52913         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52914         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52915         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52916         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52917         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52918         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52919         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52920         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52921         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52922         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52923         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52924         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52925         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52926         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52927         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52928         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52929         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52930         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52931         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52932         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52933         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52934         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52935         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52936         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52937         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52938         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52939         lib/yesno.c, lib/yesno.h:
52940         Update FSF postal mail address.
52941
52942 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52945         tests/test-memmem.c, tests/test-stpncpy.c:
52946         Update FSF postal mail address.
52947
52948 2005-05-13  Bruno Haible  <bruno@clisp.org>
52949
52950         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52951         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52952         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52953         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52954         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52955         Add support for 64-bit integers in the MSVC compiler.
52956
52957 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52958
52959         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52960
52961 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52962
52963         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52964
52965 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52966
52967         * doc/getdate.texi (General date syntax): Don't say that date
52968         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52969         Problem reported by Nic Ferrier.
52970
52971 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52972
52973         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52974         specified in ai_socktype. Fix invalid ai_protocol
52975         check. ai_protocol is usually set to 0 or depending on
52976         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52977         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52978         ai_socktype / ai_protocol in the returned addrinfo structure.
52979
52980 2005-05-10  Simon Josefsson  <jas@extundo.com>
52981
52982         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52983         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52984
52985 2005-05-10  Karl Berry  <karl@gnu.org>
52986
52987         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52988         (from http://www.gnu.org/licenses).
52989         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52990         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52991         fdl.texi suffices.
52992
52993 2005-05-10  Karl Berry  <karl@gnu.org>
52994
52995         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52996         (COPYING.DOC): remove.
52997
52998         * config/srclist-update: new FSF address.
52999
53000 2005-05-10  Derek Price  <derek@ximbiot.com>
53001
53002         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53003         possible.
53004
53005 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53006             Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/inet_ntop: New file.
53009         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53010         inet_ntop.
53011
53012 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53013             Bruno Haible  <bruno@clisp.org>
53014
53015         * m4/inet_ntop.m4: New file.
53016
53017 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53018             Bruno Haible  <bruno@clisp.org>
53019
53020         * lib/inet_ntop.h: New file.
53021         * lib/inet_ntop.c: New file, from glibc with modifications.
53022
53023 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53024
53025         * modules/time_r (License): Change to LGPL.
53026         * modules/extensions (License): Change to LGPL.  Actually,
53027         the license is more permissive than that, but currently gnulib-tool
53028         doesn't know how to handle more-permissive licenses.
53029
53030         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53031         Problem reported by Dave Love.
53032
53033 2005-05-08  Jim Meyering  <jim@meyering.net>
53034
53035         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53036         blank.
53037
53038 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53039
53040         * modules/argmatch (Depends-on): Add stdbool.
53041         * modules/backupfile (Depends-on): Likewise.
53042         * modules/chdir-long (Depends-on): Likewise.
53043         * modules/closeout (Depends-on): Likewise.
53044         * modules/cycle-check (Depends-on): Likewise.
53045         * modules/dirname (Depends-on): Likewise.
53046         * modules/fnmatch (Depends-on): Likewise.
53047         * modules/fsusage (Depends-on): Likewise.
53048         * modules/fwriteerror (Depends-on): Likewise.
53049         * modules/getcwd (Depends-on): Likewise.
53050         * modules/getloadavg (Depends-on): Likewise.
53051         * modules/hard-locale (Depends-on): Likewise.
53052         * modules/makepath (Depends-on): Likewise.
53053         * modules/mountlist (Depends-on): Likewise.
53054         * modules/nanosleep (Depends-on): Likewise.
53055         * modules/posixtm (Depends-on): Likewise.
53056         * modules/quotearg (Depends-on): Likewise.
53057         * modules/readtokens (Depends-on): Likewise.
53058         * modules/readtokens0 (Depends-on): Likewise.
53059         * modules/readutmp (Depends-on): Likewise.
53060         * modules/save-cwd (Depends-on): Likewise.
53061         * modules/strftime (Depends-on): Likewise.
53062         * modules/userspec (Depends-on): Likewise.
53063         * modules/utimecmp (Depends-on): Likewise.
53064         * modules/xgetcwd (Depends-on): Likewise.
53065         * modules/xnanosleep (Depends-on): Likewise.
53066         * modules/xstrtod (Depends-on): Likewise.
53067         * modules/yesno (Depends-on): Likewise.
53068
53069 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53072         needless checks.
53073
53074 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         Merge from coreutils.  Among other things,
53077         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53078         * lib/fd-safer.c: New file.
53079         * lib/fcntl-safer.h, open-safer.c: Remove.
53080         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53081         * lib/dup-safer.c: Include unistd-safer.h first.
53082         Don't include errno.h.
53083         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53084         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53085         * lib/file-type.c: Rely on file-type.h change.
53086         * lib/getloadavg.c: Include unistd-safer.h.
53087         (getloadavg): Use safer open.
53088         * lib/getusershell.c: Include "stdio-safer.h".
53089         (getusershell): Use safer fopen.
53090         * lib/long-options.c (long_options): Use NULL rather than 0.
53091         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53092         'free'.
53093         * lib/modechange.c: Likewise.
53094         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53095         (MODE_DONE): New constant.
53096         (struct mode_change): Remove 'next' member.
53097         (make_node_op_equals): New function; like the old one of the
53098         same name, except it allocates an array.
53099         (mode_compile, mode_create_from_ref): Use it.
53100         (mode_compile): Allocate result as an array, not a linked list.
53101         Parse octal string ourself, so that we catch mistakes like "+0".
53102         (mode_adjust): Arg is an array, not a linked list.
53103         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53104         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53105         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53106         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53107         Remove.  This is now stat-macros.h's job.
53108         (talloc): Remove.  All callers replaced by xalloc, so that
53109         our invokers don't have to worry about reporting memory failures.
53110         (make_node_op_equals): Remove.
53111         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53112         New constants.
53113         (struct mode_change): Moved here from modechange.h.
53114         (mode_append_entry): Remove.
53115         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53116         apps to have incorrect behavior.  Use simpler algorithm for head
53117         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53118         Detect more invalid usages rather than having somewhat-random behavior.
53119         Don't insert an "a=" action, as that leads to incorrect behavior.
53120         (mode_compile, mode_create_from_ref): Return NULL on error instead
53121         of an enum, since now there's only one way to have an error.  All
53122         callers changed.
53123         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53124         at the correct time.  Simplify calculation of "+u" and its ilk.
53125         Don't mishandle "+X".
53126         (mode_free): Remove "register" and localize decls.
53127         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53128         (struct mode_change): Move to modechange.c; callers don't
53129         need to see this stuff.
53130         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53131         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53132         (mode_change, mode_adjust): Reflect the new signatures noted above.
53133         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53134         that might redefine system include files.
53135         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53136         (my_usleep): Use NULL rather than (void *) 0.
53137         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53138         Use siginterrupt to specify that system calls should be interrupted.
53139         (rpl_nanosleep): Move initialization of suspended closer to call of
53140         my_usleep.
53141         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53142         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53143         (desirable_utmp_entry): New function.
53144         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53145         using x2nrealloc, to simplify logic.
53146         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53147         size calculation.  Do not assume utmp file is a regular file.
53148         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53149         (READ_UTMP_CHECK_PIDS): New constant.
53150         * lib/save-cwd.c: Include unistd-safer.h.
53151         (save_cwd): Use fd_safer.
53152         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53153         [!_LIBC] Include "stat-macros.h" instead.
53154         * lib/unistd-safer.h (fd_safer): New decl.
53155
53156 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         * modules/getloadavg (Depends-on): Add unistd-safer.
53159         * modules/getusershell (Depends-on): Add stdio-safer.
53160         * modules/lstat (Depends-on): Remove xalloc.
53161         * modules/mkstemp (Depends-on): Add stat-macros.
53162         * modules/modechange (Depends-on): Remove xstrtol.
53163         Add stat-macros, xalloc.
53164         * modules/save-cwd (Depends-on): Add unistd-safer.
53165         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53166         * modules/unistd-safer (Files): Add lib/fd-safer.c
53167         (Makefile.am): Remove lib_SOURCES.
53168
53169         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53170         Remove fcntl-safer; unistd-safer supersedes it.
53171
53172 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53175         AC_HEADER_STAT.
53176         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53177         (gl_PREREQ_CHOWN): Remove.
53178         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53179         it.  Don't require AC_HEADER_STAT.
53180         (gl_PREREQ_LSTAT): Remove.
53181         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53182         Don't require AC_HEADER_STAT.
53183         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53184         (gl_PREREQ_RMDIR): Remove.
53185         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53186         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53187         the stat-macros module a prerequisite.
53188         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53189         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53190         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53191         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53192         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53193         variable names.
53194         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53195         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53196         variable prefixes.
53197         * m4/fcntl-safer.m4: Remove.
53198         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53199         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53200         Invoke gl_PREREQ_FD_SAFER.
53201         (gl_PREREQ_FD_SAFER): New macro.
53202         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53203         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53204         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53205         Remove duplicate call to AC_LIBOBJ(readutmp).
53206         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53207
53208         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53209         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53210
53211 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53212
53213         * MODULES.html.sh (Misc): Add byteswap.
53214
53215 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53216
53217         * modules/getcwd (Depends-on): Add extensions.
53218         * modules/openat (Depends-on): Likewise.
53219
53220 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53221
53222         * modules/byteswap: New file.
53223
53224 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53225
53226         * m4/byteswap.m4: New file.
53227
53228 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53229
53230         * lib/byteswap_.h: New file.
53231
53232 2005-04-25  Karl Berry  <karl@gnu.org>
53233
53234         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53235
53236 2005-04-25  Albert Chin  <china@thewrittenword.com>
53237
53238         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53239         Toolkit C bug.
53240
53241 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53242
53243         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53244         (func_ln_if_changed) Remove forcibly for no error message
53245         in case file does not exist.
53246
53247 2005-04-19  Simon Josefsson  <jas@extundo.com>
53248
53249         * gnulib-tool (Options): Make --symlink mean --symbolic.
53250
53251 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53252
53253         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53254
53255 2005-04-16  Simon Josefsson  <jas@extundo.com>
53256
53257         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53258
53259 2005-04-15  Simon Josefsson  <jas@extundo.com>
53260
53261         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53262
53263 2005-04-15  Simon Josefsson  <jas@extundo.com>
53264
53265         * gnulib-tool: Rename --symlink to --symbolic.
53266
53267 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53268
53269         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53270         symbolic links to files instead of copying/moving.  Add --aux-dir,
53271         specifying directory relative --dir where auxiliary build tools
53272         are placed.
53273
53274 2005-04-14  Bruno Haible  <bruno@clisp.org>
53275
53276         * modules/allocsa (License): Change to LGPL.
53277         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53278
53279 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53280
53281         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53282         that "UTC +1 second" continues to work.  Problem reported
53283         by Dmitry V. Levin.
53284         (relunit_snumber): New rule.
53285         (relunit): Use it.
53286
53287 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         * lib/getdate.y (universal_time_zone_table): New constant.
53290         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53291         universal_time_zone_table.
53292         (lookup_zone): Prefer universal_time_zone_table to
53293         local_time_zone_table, so that "GMT" time stamps are allowed in
53294         London during the summer.  Problem reported by Ian Abbott.
53295
53296 2005-04-12  Jim Meyering  <jim@meyering.net>
53297
53298         * lib/human.c (humblock): Set *options even when returning due to
53299         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53300         warning from gcc-4.
53301
53302 2005-04-09  Jim Meyering  <jim@meyering.net>
53303
53304         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53305         -Wuninitialized: initialize tm0.tm_year.
53306
53307 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53310         count, since there's no maximum.  All uses changed.
53311         Add member dsts_seen.
53312         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53313         not being INT_MAX.
53314         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53315         Use pc_rels_seen to decide whther a date is absolute.
53316
53317         * lib/getdate.y (number): Don't overwrite year.
53318         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53319         check.
53320
53321 2005-04-02  Simon Josefsson  <jas@extundo.com>
53322
53323         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53324         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53325
53326 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53327
53328         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53329         where no absolute path name can be longer than PATH_MAX.
53330
53331 2005-03-27  Jim Meyering  <jim@meyering.net>
53332
53333         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53334
53335 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53336
53337         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53338         "one's complement" -> "ones' complement" in comment, as per Knuth.
53339         "value of type" -> "type or expression" in comment.
53340         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53341
53342 2005-03-26  Jim Meyering  <jim@meyering.net>
53343
53344         Comment nits.
53345         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53346         Correct typos: s/or/of/.
53347
53348 2005-03-26  Jim Meyering  <jim@meyering.net>
53349
53350         * modules/check-include-files: Move to ../ and rename to...
53351         * check-module: ...this.
53352
53353 2005-03-25  Jim Meyering  <jim@meyering.net>
53354
53355         * modules/xvasprintf (Files): Add xalloc.h.
53356
53357 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53358
53359         * modules/gettext (Files): config/config.rpath ->
53360         build-aux/config.rpath
53361         * modules/iconv (Files): Likewise.
53362         Problem reported by Oskar Liljeblad.
53363
53364 2005-03-23  Jim Meyering  <jim@meyering.net>
53365
53366         * modules/check-include-files: New script to check for
53367         missing dependencies, multiple includes, etc.
53368
53369         * modules/c-strtold (Depends-on): Add xalloc.
53370         * modules/c-strtod (Depends-on): Add xalloc.
53371         * modules/hash (Depends-on): Add xalloc.
53372         (Files): Remove lib/xalloc.h.
53373
53374         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53375         * modules/userspec (Files): Add lib/inttostr.h.
53376
53377 2005-03-23  Jim Meyering  <jim@meyering.net>
53378
53379         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53380
53381 2005-03-22  Jim Meyering  <jim@meyering.net>
53382
53383         * modules/stat-macros: New module.
53384         * modules/canonicalize, modules/euidaccess, modules/file-type,
53385         * modules/filemode, modules/lchown, modules/makepath,
53386         * modules/rmdir, modules/stat: Depend on new stat-macros module
53387         rather than listing lib/stat-macros.h manually.
53388         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53389
53390 2005-03-22  Jim Meyering  <jim@meyering.net>
53391
53392         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53393
53394 2005-03-22  Bruno Haible  <bruno@clisp.org>
53395
53396         * config/srclist.txt: Replace target directory 'config' with
53397         'build-aux'.
53398         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53399         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53400         ../build-aux/.
53401
53402 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53403
53404         * modules/chdir-long (Depends-on): Add mempcpy.
53405
53406         * modules/acl, modules/backupfile, modules/c-strtod,
53407         modules/c-strtold, modules/canon-host, modules/canonicalize,
53408         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53409         modules/exclude, modules/exitfail, modules/file-type,
53410         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53411         modules/getdate, modules/getline, modules/getpagesize,
53412         modules/getpass, modules/getugroups, modules/group-member,
53413         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53414         modules/inttostr, modules/long-options, modules/makepath,
53415         modules/md5, modules/memcasecmp, modules/memcoll,
53416         modules/modechange, modules/mountlist, modules/path-concat,
53417         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53418         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53419         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53420         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53421         modules/strftime, modules/strndup, modules/strverscmp,
53422         modules/timespec, modules/unlocked-io, modules/userspec,
53423         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53424         modules/yesno:
53425         Remove lib_SOURCES line from Makefile.am section, as this is now
53426         done automatically by the corresponding Autoconf macro.
53427
53428 2005-03-21  Jim Meyering  <jim@meyering.net>
53429
53430         Changes imported from coreutils.
53431
53432         * lib/cycle-check.c: Don't include xalloc.h.
53433
53434         * lib/path-concat.c: Don't include assert.h.
53435         (path_concat): Remove assertion that would have triggered
53436         for ABASE starting with more than one slash.
53437         Reported by Andreas Schwab.
53438
53439         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53440         properly when ABASE is an absolute file name.
53441         Correct the description of this function.
53442         Include <assert.h>.
53443         Add an assertion and a test driver.
53444         This fixes a bug introduced on 2004-07-02.
53445         Andreas Schwab reported the resulting failure of cp --parents:
53446         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53447
53448 2005-03-21  Jim Meyering  <jim@meyering.net>
53449
53450         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53451         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53452
53453 2005-03-21  Jim Meyering  <jim@meyering.net>
53454         and  Paul Eggert  <eggert@cs.ucla.edu>
53455
53456         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53457         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53458         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53459         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53460         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53461         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53462         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53463         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53464         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53465         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53466         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53467         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53468         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53469         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53470         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53471         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53472         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53473         for these modules.
53474
53475 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53476
53477         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53478         (which shouldn't happen), generate nothing instead of returning 0
53479         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53480
53481 2005-03-16  Bruno Haible  <bruno@clisp.org>
53482
53483         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53484         HAVE_LONGLONG_64BIT.
53485
53486 2005-03-16  Bruno Haible  <bruno@clisp.org>
53487
53488         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53489         HAVE_LONGLONG_64BIT.
53490
53491 2005-03-16  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53494         HAVE_LONGLONG_64BIT.
53495
53496 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53497
53498         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53499         reliably distinguish strftime failure from empty output on POSIX
53500         hosts.
53501
53502 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53503
53504         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53505         (iconv_string): Don't guess a size-zero buffer, as that might cause
53506         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53507         result would be 'too large', where 'too large' is (heuristically)
53508         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53509         overflow concerns.  This will prevent some unwanted malloc failures
53510         when the inputs are very large.
53511
53512 2005-03-15  Karl Berry  <karl@gnu.org>
53513
53514         * config/srclist.txt (config.rpath): from gettext.
53515         * config/config.rpath: update.
53516
53517 2005-03-15  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53520         to 'negate'.
53521
53522         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53523         variable.
53524
53525         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53526         results.
53527
53528 2005-03-14  Simon Josefsson  <jas@extundo.com>
53529
53530         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53531         <fx@gnu.org>.
53532
53533 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53536         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53537         intprops.h.
53538         * lib/strtol.c: Likewise.
53539
53540 2005-03-14  Jim Meyering  <jim@meyering.net>
53541
53542         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53543         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53544         to be nonzero so that we (and caller) can detect the difference
53545         between a valid zero-length expansion and an error return, even
53546         when the underlying strftime fails before writing anything into
53547         that location.
53548
53549 2005-03-14  Bruno Haible  <bruno@clisp.org>
53550
53551         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53552         Update from GNU gettext 0.14.3.
53553
53554 2005-03-10  Jim Meyering  <jim@meyering.net>
53555
53556         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53557
53558 2005-03-10  Jim Meyering  <jim@meyering.net>
53559
53560         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53561         so that this module works on systems without fchdir.
53562
53563 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         Factor int-properties macros into a single file, except for
53566         glibc-related files.
53567         * lib/intprops.h: New file.
53568         * lib/getloadavg.c: Include it instead of limits.h.
53569         (INT_STRLEN_BOUND): Remove.
53570         * lib/human.c: Include intprops.h.
53571         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53572         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53573         302/1000.
53574         * lib/inttostr.h: Include intprops.h instead of limits.h.
53575         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53576         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53577         for consistency with intprops.h.
53578         (time_t_is_integer, twos_complement_arithmetic): Use them.
53579         * lib/sig2str.h: Include <signal.h>, intprops.h.
53580         (INT_STRLEN_BOUND): Remove.
53581         * lib/strftime.c (TYPE_SIGNED): Remove.
53582         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53583         * lib/strtol.c: Adjust comments to match intprops.h.
53584         * lib/userspec.c: Include intprops.h.
53585         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53586         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53587         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53588         instead of rolling our own expressions.
53589         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53590
53591         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53592         instead of int.
53593         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53594         the right thing even if adding 1900 would overflow.  Similarly
53595         for tm_mon + 1 and tm_yday + 1.
53596         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53597         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53598         (DO_SIGNED_NUMBER): New macro.
53599         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53600
53601 2005-03-07  Bruno Haible  <bruno@clisp.org>
53602
53603         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53604
53605 2005-03-07  Bruno Haible  <bruno@clisp.org>
53606
53607         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53608
53609 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53610
53611         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53612         (func_import): Only replace files via --import when they have actually
53613         changed.
53614
53615 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53616
53617         * m4/mmap-anon.m4: New file.
53618         * m4/pagealign_alloc.m4: New file.
53619
53620 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53621             Bruno Haible  <bruno@clisp.org>
53622
53623         * modules/pagealign_alloc: New file.
53624         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53625
53626 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53627             Bruno Haible  <bruno@clisp.org>
53628
53629         * lib/pagealign_alloc.h: New file.
53630         * lib/pagealign_alloc.c: New file.
53631
53632 2005-03-03  Bruno Haible  <bruno@clisp.org>
53633
53634         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53635         Use an all-permissive copyright notice, recommended by RMS.
53636
53637 2005-03-02  Bruno Haible  <bruno@clisp.org>
53638
53639         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53640         of AIX, the replacement has to be done only after <string.h> is
53641         included, therefore not in config.h. stpncpy.h does the replacement,
53642         and stpncpy.c uses it.
53643
53644 2005-03-02  Bruno Haible  <bruno@clisp.org>
53645
53646         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53647         stpncpy.c uses it.
53648
53649 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53652         The workaround isn't strictly needed for POSIX conformance, and
53653         it's too much of a pain to configure and maintain.  We'll ask
53654         people to fix their kernels instead.
53655         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53656         (NANOSLEEP_BUG_WORKAROUND): Remove.
53657         (xnanosleep): Remove the workaround.
53658
53659 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53662         Reported by Derek Price.
53663         (Include): Add "timespec.h".
53664
53665         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53666
53667 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53668
53669         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53670         to detect nanosleep bug.
53671
53672 2005-03-01  Bruno Haible  <bruno@clisp.org>
53673
53674         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53675
53676 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * modules/gethrxtime: New file.
53679         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53680         (Depends-on): Add gethrxtime.
53681         (configure.ac): Add gl_XNANOSLEEP.
53682         (Makefile.am): Remove lib_SOURCES line.
53683
53684 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53687         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53688
53689 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53692         * lib/timespec.h (gettime): Return void, since it always
53693         succeeds now.  All uses changed.
53694         * lib/gettime.c (gettime) Likewise.
53695         [HAVE_NANOTIME]: Prefer nanotime.
53696         Assume gettimeofday succeeds, as POSIX requires.
53697         Assime time () succeeds, since other code already does.
53698         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53699         (timespec_subtract): Remove.
53700         (NANOSLEEP_BUG_WORKAROUND): New constant.
53701         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53702         things considerably.  Use it only on GNU/Linux hosts, since the
53703         workaround shouldn't be needed elsewhere.
53704
53705 2005-02-24  Bruno Haible  <bruno@clisp.org>
53706
53707         * modules/gettext (Files): Add m4/glibc2.m4.
53708
53709 2005-02-24  Bruno Haible  <bruno@clisp.org>
53710
53711         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53712         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53713         * m4/progtest.m4:
53714         Update from GNU gettext 0.14.2.
53715         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53716
53717 2005-02-24  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53720         * lib/config.charset: Update from GNU gettext 0.14.2.
53721
53722 2005-02-24  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/gettext.h: Update from GNU gettext 0.14.2.
53725
53726 2005-02-23  Simon Josefsson  <jas@extundo.com>
53727
53728         * m4/iconvme.m4: New file.
53729
53730 2005-02-23  Jim Meyering  <jim@meyering.net>
53731
53732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53733         change.
53734         Thanks to Bruno Haible for catching it.
53735
53736 2005-02-22  Simon Josefsson  <jas@extundo.com>
53737
53738         * modules/iconvme: New file.
53739
53740         * MODULES.html.sh: Add iconvme.
53741
53742 2005-02-22  Simon Josefsson  <jas@extundo.com>
53743
53744         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53745
53746 2005-02-22  Simon Josefsson  <jas@extundo.com>
53747
53748         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53749
53750 2005-02-22  Jim Meyering  <jim@meyering.net>
53751
53752         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53753         s/ifndef/ifdef/.
53754
53755 2005-02-20  Neil Conway  <neilc@samurai.com>
53756
53757         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53758         returned by OSX/Darwin if the specified buffer is not large
53759         enough for the hostname.
53760
53761 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53762
53763         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53764         pass it to _help, otherwise the latter coredumps trying to
53765         dereference state.root_argp.
53766
53767 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * modules/chdir-long (Depends-on): Add memrchr.
53770         * modules/memrchr (Files): Add lib/memrchr.h.
53771         (Include): "memrchr.h".
53772
53773 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53776
53777 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * lib/memrchr.h: New file.
53780         * lib/chdir-long.c: Include it.
53781         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53782         Don't bother including stddef.h.
53783
53784 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53785
53786         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53787         inclusion.
53788         Include <sys/types.h>, for dev_t.
53789         (ME_DUMMY, ME_REMOTE): Move from here....
53790         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53791         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53792         Dmitry V. Levin.
53793         Include mountlist.h first, to test the interface.
53794
53795 2005-01-29  Bruno Haible  <bruno@clisp.org>
53796
53797         * lib/progname.c (program_name): Initialize.
53798         Needed when linking statically on MacOS X.
53799
53800 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53801
53802         Sync from coreutils.
53803         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53804         (Depends-on): Add c-strtod.
53805         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53806
53807 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         Sync from coreutils.
53810         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53811
53812         Remove files that are specific to coreutils.
53813         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53814
53815 2005-01-28  Bruno Haible  <bruno@clisp.org>
53816
53817         * modules/javacomp: New file.
53818         * MODULES.html.sh (Java): Add javacomp.
53819
53820 2005-01-28  Bruno Haible  <bruno@clisp.org>
53821
53822         * m4/javacomp.m4: New file, from GNU gettext.
53823
53824 2005-01-28  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/javacomp.sh.in: New file, from GNU gettext.
53827         * lib/javacomp.h: New file, from GNU gettext.
53828         * lib/javacomp.c: New file, from GNU gettext.
53829
53830 2005-01-26  Simon Josefsson  <jas@extundo.com>
53831
53832         * lib/gai_strerror.c: Use GPL in header.
53833
53834 2005-01-26  Bruno Haible  <bruno@clisp.org>
53835
53836         * modules/javaexec: New file.
53837         * MODULES.html.sh (Java): Add javaexec.
53838
53839 2005-01-26  Bruno Haible  <bruno@clisp.org>
53840
53841         * m4/javaexec.m4: New file, from GNU gettext.
53842
53843 2005-01-26  Bruno Haible  <bruno@clisp.org>
53844
53845         * lib/javaexec.sh.in: New file, from GNU gettext.
53846         * lib/javaexec.h: New file, from GNU gettext.
53847         * lib/javaexec.c: New file, from GNU gettext.
53848
53849 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53850
53851         * modules/lchown (Depends-on): Remove lchown.h
53852
53853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53854
53855         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53856         must be defined if the header file was not found, in order
53857         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53858
53859 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53860
53861         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53862         initializers for struct pentry_state.
53863         (__argp_error): Check return value of __asprintf
53864         (__argp_failure): Translate error message
53865
53866         * lib/argp-parse.c: Removed braces around the expansion of N_()
53867
53868 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53871         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53872         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53873         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53874         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53875         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53876         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53877         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53878         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53879         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53880         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53881         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53882         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53883         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53884         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53885         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53886         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53887         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53888         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53889         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53890         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53891         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53892         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53893         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53894         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53895         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53896         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53897         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53898         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53899         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53900         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53901         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53902         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53903         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53904         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53905         Use an all-permissive copyright notice, recommended by RMS.
53906
53907 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * modules/chdir-long (Depends-on): Remove mempcpy.
53910
53911 2005-01-21  Jim Meyering  <jim@meyering.net>
53912
53913         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53914         same value as for Solaris 9.
53915
53916         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53917         component length.  This included changing the parameter to be
53918         of type `char *' rather than `char const *'.
53919         * lib/chdir-long.h (chdir_long): Update prototype.
53920
53921         * lib/openat.c (fdopendir, fstatat): New functions.
53922         * lib/openat.h: Include headers required for use of DIR and struct
53923         stat.
53924         [AT_SYMLINK_NOFOLLOW]: Define.
53925         (fdopendir, fstatat): Add prototypes.
53926
53927 2005-01-21  Bruno Haible  <bruno@clisp.org>
53928
53929         * modules/classpath: New file.
53930         * MODULES.html.sh (Java): Add classpath.
53931
53932 2005-01-21  Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/classpath.h: New file, from GNU gettext.
53935         * lib/classpath.c: New file, from GNU gettext.
53936
53937 2005-01-20  Simon Josefsson  <jas@extundo.com>
53938
53939         * modules/version-etc-fsf: New file.
53940
53941 2005-01-20  Simon Josefsson  <jas@extundo.com>
53942
53943         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53944         * lib/version-etc.c: Remove version_etc_copyright.
53945         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53946         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53947
53948 2005-01-20  Simon Josefsson  <jas@extundo.com>
53949
53950         * lib/base64.h (isbase64): Add.
53951
53952         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53953         using a unsigned prototype, don't inline.
53954         (base64_decode): Use it.
53955
53956 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53959         it.
53960
53961 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         * lib/save-cwd.c (save_cwd): Remove code to support the case
53964         where fchdir is missing or flaky.
53965
53966 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53967
53968         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53969
53970 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53971
53972         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53973         AC_LIBSOURCES now does this.
53974         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53975         with new ullong_max module.
53976
53977 2005-01-19  Bruno Haible  <bruno@clisp.org>
53978
53979         * modules/sh-quote: New file.
53980         * MODULES.html.sh (Executing programs): Add sh-quote.
53981
53982 2005-01-19  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/sh-quote.h: New file, from GNU gettext.
53985         * lib/sh-quote.c: New file, from GNU gettext.
53986
53987 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53988
53989         Merge from coreutils.
53990         * m4/ullong_max.m4: New file.
53991         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53992         (gl_MACROS): Assume localeconv exists.
53993
53994 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         Merge changes from coreutils, as described below in several
53997         changelogs dated today.
53998
53999         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54000         (O_DIRECTORY): Remove; not needed here, since "." must be
54001         a directory.  All uses removed.
54002         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54003         universal on Suns, and we also need to test for IRIX.
54004         Revamp code to use 'if' rather than '#if'.
54005         Avoid unnecessary comparison of cwd->desc to 0.
54006
54007         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54008         for known valid error numbers rather than observed invalid ones.
54009
54010 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * modules/ullong_max: New file.
54013
54014         * modules/chdir-long, modules/openat: New files.
54015         * modules/save-cwd (Depends-on): Depend on chdir-long.
54016         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54017
54018 2005-01-18  Jim Meyering  <jim@meyering.net>
54019
54020         Merge from coreutils.
54021         * m4/chdir-long.m4, m4/openat.m4: New files.
54022         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54023         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54024         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54025         is sane and DOES follow symlinks.  Besides, testing 20 different
54026         systems found no broken chown implementations.
54027         Prompted by a change in rsync's copy of this macro.
54028         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54029
54030         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54031
54032         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54033         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54034         NULL-means-set-to-current-time semantics.
54035         Remove temporary file immediately, rather than waiting
54036         for configure's at-exit trap code to do it.
54037
54038 2005-01-18  Jim Meyering  <jim@meyering.net>
54039
54040         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54041
54042         * lib/utimens.c (futimens): Account for the fact that futimes
54043         can also fail with errno == ENOSYS or errno == ENOENT.
54044         Patch from Dmitry V. Levin.
54045
54046         Change the name of the robust chdir function from chdir to chdir_long.
54047         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54048         (restore_cwd): Use chdir_long, not chdir.
54049         * lib/chdir-long.c: Renamed from chdir.c.
54050         * lib/chdir-long.h: Renamed from chdir.h.
54051         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54052         Hurd.
54053
54054 2005-01-18  Bruno Haible  <bruno@clisp.org>
54055
54056         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54057         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54058         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54059         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54060         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54061         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54062         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54063         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54064         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54065         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54066         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54067         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54068         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54069         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54070         Use an all-permissive copyright notice, recommended by RMS.
54071
54072 2005-01-18  Bob Proulx  <bob@proulx.com>
54073
54074         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54075         simplify offsetof() macro construct to avoid compile failure with
54076         native HP-UX 11.0 ANSI C compiler.
54077
54078 2005-01-17  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54081         redundant because stpncpy.m4 takes care of it.
54082
54083 2005-01-17  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54086
54087 2005-01-17  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54090         used.
54091
54092 2005-01-17  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/fwriteerror.h (fwriteerror): Change specification to include
54095         fclose.
54096         * lib/fwriteerror.c: Include <stdbool.h>.
54097         (fwriteerror): At the end, close the file stream. Record whether
54098         stdout was already closed.
54099
54100 2005-01-17  Bruno Haible  <bruno@clisp.org>
54101
54102         * lib/execute.c (environ): Declare if needed.
54103         * lib/pipe.c (environ): Likewise.
54104         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54105
54106 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54107
54108         * modules/argp: Depend on vsnprintf
54109
54110 2005-01-10  Jim Meyering  <jim@meyering.net>
54111
54112         * modules/closeout (Depends-on): Add atexit.
54113
54114 2005-01-06  Bruno Haible  <bruno@clisp.org>
54115
54116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54117
54118 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54121         definitions to be after all include files, to avoid collisions.
54122         Problem reported by Bob Proulx.
54123
54124 2005-01-04  Jim Meyering  <jim@meyering.net>
54125
54126         Changes imported from coreutils.
54127         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54128         as the mkstemp template, use a temporary directory and an
54129         8.3-friendly template to avoid trouble on systems like DJGPP.
54130         Reported by Juan M. Guerrero via Stepan Kasal.
54131         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54132         close. Remove the temporary directory right away, rather than waiting
54133         for configure's at-exit trap code to do it.
54134         Suggestion from Stepan Kasal.
54135
54136 2005-01-01  Simon Josefsson  <jas@extundo.com>
54137
54138         * gnulib-tool: Print #include directives when --import'ing.
54139
54140 2004-12-28  Simon Josefsson  <jas@extundo.com>
54141
54142         * tests/test-base64.c: Include required header files.  Remove
54143         unused variables.
54144
54145 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54146
54147         * modules/error (Depends-on): Remove gettext.
54148
54149 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54152         not needed.  This removes a dependency on the gettext module.
54153         [defined _LIBC]: Do not include <libintl.h>; not needed.
54154
54155 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54156
54157         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54158         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54159
54160 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54161
54162         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54163         HAVE_DECL_STRTOLD.
54164
54165 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * modules/getdate (Depends-on): Remove alloca-opt.
54168
54169 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54170
54171         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54172
54173 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54174
54175         * lib/argp-parse.c: Include <stddef.h>.
54176         (alignof, alignto): New macros.
54177         (parser_init): Don't assume that void * is aligned sufficiently
54178         for struct option.
54179
54180         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54181         need to extend the stack.
54182         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54183         large.
54184
54185 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54186
54187         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54188
54189 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54192         (2004-10-24) change.  Apparently this was a false alarm.
54193
54194         * modules/getdate: Depend on alloca-opt, not alloca.
54195
54196 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54197
54198         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54199         Remove now-obsolete comment about AIX.
54200         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54201         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54202         (YYMAXDEPTH): New macro.
54203
54204 2004-12-18  Simon Josefsson  <jas@extundo.com>
54205
54206         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54207
54208 2004-12-18  Bruno Haible  <bruno@clisp.org>
54209
54210         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54211
54212 2004-12-18  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/fatal-signal.c (fatal_signals): Make non-const.
54215         (init_fatal_signals): New function.
54216         (uninstall_handlers, install_handlers): Ignore signals that were set to
54217         SIG_IGN.
54218         (at_fatal_signal): Call init_fatal_signals.
54219         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54220         SIG_IGN.
54221         Reported by Paul Eggert.
54222
54223 2004-12-18  Bruno Haible  <bruno@clisp.org>
54224
54225         * doc/alloca.texi: New file.
54226         * doc/alloca-opt.texi: New file.
54227
54228 2004-12-17  Jim Meyering  <jim@meyering.net>
54229
54230         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54231         Otherwise, install-sh could exit with improper exit status when
54232         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54233
54234 2004-12-16  Simon Josefsson  <jas@extundo.com>
54235
54236         * tests/test-base64.c: Add license.
54237
54238 2004-12-15  Stepan Kasal  <address@hidden>
54239
54240         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54241
54242 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54243
54244         * modules/getcwd (Files): Add m4/d-ino.m4.
54245         Suggested by Mark D. Baushke.
54246
54247 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54248
54249         * lib/getdate.y (textint): New member "negative".
54250         (time_zone_hhmm): New function.
54251         Expect 14 shift-reduce conflicts, not 13.
54252         (o_colon_minutes): New rule.
54253         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54254         (yylex): Set the "negative" member of signed numbers.
54255
54256 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54257
54258         * doc/getdate.texi (Time of day items, Time zone items):
54259         Describe new formats +00:00, UTC+00:00.
54260
54261 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54264         spurious "-l"s.  Problem reported by Stepan Kasal.
54265
54266 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54267
54268         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54269         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54270
54271 2004-12-04  Simon Josefsson  <jas@extundo.com>
54272
54273         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54274         Vandoorselaere <yoann@prelude-ids.org>.
54275
54276 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         Changes imported from coreutils.
54279         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54280         exist.
54281         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54282
54283 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         Changes imported from coreutils.
54286         * lib/hard-locale.c: Assume <locale.h> exists.
54287         Include "strdup.h".
54288         (GLIBC_VERSION): New macro.
54289         (hard_locale): Assume setlocale exists.
54290         Rewrite to avoid #ifdef.
54291         Use strdup rather than malloc + strcpy.
54292         * lib/human.c: Assume <locale.h> exists.
54293         (human_readable): Assume localeconv exists.
54294
54295 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54296
54297         * modules/hard-locale (Depends-on): Add strdup.
54298
54299 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54300
54301         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54302         convert T2, not T.  (Imported from libc.)
54303
54304 2004-11-30  Simon Josefsson  <jas@extundo.com>
54305
54306         * modules/restrict (License): Change to LGPL.
54307
54308 2004-11-30  Simon Josefsson  <jas@extundo.com>
54309
54310         * m4/restrict.m4: Add copyright and copying conditions.
54311
54312 2004-11-30  Simon Josefsson  <jas@extundo.com>
54313
54314         * m4/base64.m4: New file.
54315
54316 2004-11-30  Simon Josefsson  <jas@extundo.com>
54317
54318         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54319         base64.
54320
54321         * tests/test-base64.c: New file.
54322
54323         * modules/base64: New file.
54324
54325 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54328         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54329
54330         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54331
54332 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54335         (__getcwd.c): Don't restore errno; glibc doesn't.
54336         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54337         first, falling back to our code only if its results look suspicious.
54338         Ensure that the resulting buffer is only as large as necessary.
54339
54340         * lib/readutmp.c: Include readutmp.h first.
54341         Include <errno.h>, since readutmp.h no longer does that.
54342         * lib/readutmp.h: Don't include <errno.h>,
54343         <sys/param.h>, <time.h>; not needed to establish interface.
54344         (errno): Remove decl.
54345         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54346         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54347         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54348
54349 2004-11-28  Simon Josefsson  <jas@extundo.com>
54350
54351         * lib/base64.h, base64.c: New file.
54352
54353 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54354
54355         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54356
54357 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54360         (Depends-on): Remove pathmax, same.  Add mempcpy.
54361         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54362         (Makefile.am): Append getcwd.h to lib_SOURCES.
54363         (Include): Add getcwd.h.
54364         (Maintainer): Change from Jim Meyering to "all, glibc",
54365         since getdate now uses intended-for-glibc code.
54366         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54367         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54368
54369 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54370
54371         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54372         HP's ANSI C compiler.
54373         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54374         Declaring int functions causes warnings on some modern systems and
54375         shouldn't be needed to compile on ancient ones.
54376         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54377         defined.
54378
54379         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54380         with the following changes.
54381         (__set_errno): Parenthesize properly.
54382         Include <stdbool.h>.
54383         (MIN, MAX, MATCHING_INO): New macros.
54384         (__getcwd): Define with prototype, not K&R form.
54385         Use heuristics to allocate default buffer on stack if possible.
54386         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54387         behavior, and to avoid the PATH_MAX limit when computing
54388         ../../../../...
54389         Use MATCHING_INO to compare inode number to file.
54390         Check for arithmetic overflow in size calculations.
54391         Fix bug in reallocation of dot array that caused getcwd to fail
54392         on directories nested deeper than 75.
54393         Be more careful about saving errno on error.
54394         Do not use realloc; use only free+malloc, as this is a bit
54395         more flexible and avoids a needless copy operation.
54396         Do not inspect st_dev and st_ino for symbolic links; POSIX
54397         doesn't specify the latter.
54398         Check for closedir errors.
54399         Avoid needless casts.
54400         Use "#ifdef weak_alias" around weak_alias, to be like other
54401         glibc code.
54402         The following changes to getcwd.c have effect only when used in
54403         gnulib; they have no effect inside glibc proper.
54404         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54405         as alloca isn't used.
54406         (alloca, __alloca): Likewise.
54407         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54408         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54409         unconditionally, as gnulib assumes C89 or better.
54410         Do not include <sys/param.h>.
54411         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54412         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54413         better.
54414         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54415         Include <dirent.h> in a way that is compatible with modern Autoconf.
54416         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54417         New macros, if not already defined.
54418         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54419         Use "_LIBC", not "defined _LIBC", for consistency.
54420         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54421         a mempcpy module.
54422         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54423         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54424         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54425         credit only to Jim Meyering and adjust the copyright dates.
54426         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54427         <stdlib.h>, <unistd.h>, "pathmax.h".
54428         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54429         (INITIAL_BUFFER_SIZE): Remove.
54430         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54431
54432 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54433
54434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54435         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54436         Use the _ONCE methods, for efficiency.
54437         Check for fcntl.h.  In test program, include <errno.h>
54438         and <fcntl.h> if available.  Remove old K&R cruft from
54439         test program.  Check for common errors in GNU/Linux,
54440         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54441         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54442         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54443         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54444         name accordingly.
54445         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54446         accommodate new getcwd.c.
54447         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54448         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54449         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54450         that's all we need now.
54451
54452 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54453
54454         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54455         argp-parse.c depends on getopt internals, that means we should
54456         always use our getopt, to be on the safe side.
54457         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54458         order not to spoil the result of an eventual previous invocation
54459         of gl_GETOPT_SUBSTITUTE.
54460
54461 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54462
54463         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54464         redefinition warnings. To avoid them, include the defines
54465         in `#if !defined __need_getopt ... #endif'. The only place
54466         where __getopt_argv_const is used is in definitions
54467         of getopt_long and getopt_long_only below, which are as well
54468         protected by `#ifndef __need_getopt'.
54469         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54470         __need_getopt after including <stdio.h> and <unistd.h> These
54471         headers might have defined it.
54472
54473 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54476
54477 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54480         (futimens): New function, which uses futimes if available.
54481         (futimens, utimens): Support timespec==NULL, with same semantics
54482         as utime and utimens.
54483         * lib/utimens.h (futimens): New decl.
54484
54485 2004-11-23  Jim Meyering  <jim@meyering.net>
54486
54487         * lib/getopt_.h: Remove trailing blanks.
54488
54489 2004-11-23  Jim Meyering  <jim@meyering.net>
54490
54491         * lib/__fpending.c: Add comment.
54492
54493 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         * modules/canonicalize (Depends-on): Add xreadlink.
54496         Problem reported by James Youngman.
54497
54498 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54501         New macros.
54502         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54503         optopt): Use them instead of invoking ## directly; otherwise, the
54504         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54505
54506 2004-11-19  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/strtok_r.c: Move comments from here...
54509         * lib/strtok_r.h: ... to here.
54510
54511 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54514         implementations that mishandle size_t overflow.
54515
54516 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54517
54518         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54519         might fail.  Problem reported by Yoann Vandoorselaere.
54520         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54521         implementations that mishandle size_t overflow.
54522
54523 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * modules/canon-host (Depends-on): Add strdup.
54526
54527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54530
54531 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54532
54533         * lib/canon-host.c: Include "strdup.h".
54534         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54535         Use strdup instead of malloc/strcpy to duplicate strings.
54536
54537         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54538         (human_space_before_unit): New constant.
54539         * lib/human.c (human_readable): Support it.
54540
54541         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54542         (xgetcwd): Set errno correctly when failing.
54543         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54544         the failure is actually due to a PATH_MAX problem.
54545
54546         Further getopt changes to make it more likely that glibc will
54547         buy the changes back.
54548         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54549         (getopt): Use it, so to preserve glibc semantic
54550         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54551         when compiling for libc.
54552         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54553         (getopt_long, getopt_long_only): Use it.
54554
54555         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54556         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54557         (getopt): Argv is now char * const *, as per standard.
54558         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54559         not char *__getopt_argv_const *.
54560         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54561         _getopt_long_only_r): Likewise.
54562         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54563         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54564         _getopt_long_r, _getopt_long_only_r): Likewise.
54565         * lib/getopt_.h (__getopt_argv_const): Remove.
54566         (getopt): Argv is now char * const *, as per standard.
54567
54568         * lib/getdate.y (tORDINAL): New token.
54569         (day, relunit): Allow it for relative times.
54570         (relative_time_table): Use tORDINAL for ordinals.
54571
54572 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54573
54574         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54575         Document that "second" isn't allowed as an ordinal number.
54576
54577 2004-11-16  Jim Meyering  <jim@meyering.net>
54578
54579         * modules/closeout (Depends-on): Add fpending.
54580
54581 2004-11-15  Jim Meyering  <jim@meyering.net>
54582
54583         * lib/closeout.c: Include "__fpending.h" once again.
54584         Include <stdbool.h>.
54585         (close_stdout): Don't fail just because stdout was closed initially,
54586         since some programs don't write to stdout in the normal course of
54587         operation (other than --version and --help), and we don't want this
54588         function to make e.g. `touch file >&-' fail.
54589         But do fail if it was closed and someone has tried to write to it.
54590         E.g., `printf foo >&-' must fail.
54591
54592 2004-11-13  Jim Meyering  <jim@meyering.net>
54593
54594         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54595
54596 2004-11-12  Simon Josefsson  <jas@extundo.com>
54597
54598         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54599         small doc fix is still pending.
54600
54601 2004-11-11  Simon Josefsson  <jas@extundo.com>
54602
54603         * modules/strtok_r: New file.
54604
54605         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54606         strtok_r.
54607
54608 2004-11-11  Simon Josefsson  <jas@extundo.com>
54609
54610         * m4/strtok_r.m4: New file.
54611
54612         * m4/getopt.m4: Replace opterr.
54613
54614 2004-11-11  Simon Josefsson  <jas@extundo.com>
54615
54616         * lib/strtok_r.h, strtok_r.c: New file.
54617
54618 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54621         of replacing opterr, getopt, etc.  This should handle the
54622         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54623
54624 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54627         we can stop lying to compilers about the constness of argv when we
54628         are compiled outside glibc.
54629         (getopt, getopt_long, getopt_long_only): Use it.
54630         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54631         _getopt_internal, getopt): Likewise.
54632         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54633         _getopt_long_only_r): Likewise.
54634         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54635         _getopt_long_r, _getopt_long_only_r): Likewise.
54636
54637         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54638         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54639         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54640         the other external symbols.
54641         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54642         declaration, since the above renaming now works around collisions.
54643
54644 2004-11-11  Jim Meyering  <jim@meyering.net>
54645
54646         * lib/linebreak.c: Remove trailing blanks.
54647         * lib/alloca_.h: Likewise.
54648         * lib/acosl.c: Likewise.
54649         * lib/euidaccess.c: Likewise.
54650         * lib/allocsa.h: Likewise.
54651
54652 2004-11-10  Simon Josefsson  <jas@extundo.com>
54653
54654         * m4/getaddrinfo.m4: New file.
54655
54656 2004-11-10  Simon Josefsson  <jas@extundo.com>
54657
54658         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54659
54660 2004-11-10  Simon Josefsson  <jas@extundo.com>
54661
54662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54663         getaddrinfo.
54664
54665         * modules/getaddrinfo: New file.
54666
54667 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54670
54671 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54672
54673         * lib/mktime.c (SHR): New macro, which is a portable
54674         substitute for >> that should work even on Crays.
54675         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54676         Problem reported by Mark D. Baushke in
54677         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54678         * lib/getdate.y (SHR): Likewise.
54679         (tm_diff): Use it.
54680         * lib/strftime.c (SHR): Likewise.
54681         (tm_diff): Use it.
54682         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54683         quote_these_too, so that right shifts are well defined.  All uses
54684         changed.
54685
54686 2004-11-10  Jim Meyering  <jim@meyering.net>
54687
54688         Ensure that no close failure goes unreported.
54689         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54690         return early when it seems there's nothing to flush.
54691         Don't include __fpending.h.
54692
54693 2004-11-10  Jim Meyering  <jim@meyering.net>
54694
54695         * modules/closeout (Depends-on): Remove fpending.
54696
54697 2004-11-10  Jim Meyering  <jim@meyering.net>
54698
54699         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54700
54701 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54704         gl_FUNC_STRFTIME.
54705         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54706         and AC_REQUIRE when possible, to avoid duplicate checks.
54707         Check for <wchar.h>.
54708
54709 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54712
54713 2004-11-09  Bruno Haible  <bruno@clisp.org>
54714
54715         * m4/sockpfaf.m4: New file.
54716
54717 2004-11-05  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54720         Reported by Mark D. Baushke <mdb@cvshome.org>.
54721
54722 2004-11-04  Bruno Haible  <bruno@clisp.org>
54723
54724         2004-09-11  Bruno Haible  <bruno@clisp.org>
54725                 * allocsa.valgrind: New file.
54726         2004-02-06  Bruno Haible  <bruno@clisp.org>
54727                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54728                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54729                 Reported by Christopher Seip <chris.seip@hp.com>.
54730
54731 2004-11-04  Bruno Haible  <bruno@clisp.org>
54732
54733         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54734         (Makefile.am): Distribute it.
54735
54736 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54737
54738         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54739         with errno == ERANGE if the buffer is too small.
54740         Problem reported by Mark D. Baushke.
54741
54742 2004-11-03  Albert Chin  <china@thewrittenword.com>
54743             Paul Eggert  <eggert@cs.ucla.edu>
54744
54745         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54746         equivalent, substitute $ac_type for equivalent type rather than
54747         blindly using uint32_t *always* which won't work if uint32_t is not
54748         available.  Define _UINT32_T to work around typedef of uint32_t if
54749         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54750         2.5.1.
54751
54752 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         * m4/jm-macros.m4: Sync from coreutils.
54755         (gl_MACROS): Check for mbrlen, for pathchk.
54756         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54757
54758 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54759
54760         * lib/xreadlink.c (MAXSIZE): New macro.
54761         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54762         size does not exceed MAXSIZE.  Avoid cast.
54763         As suggested by Mark D. Baushke in
54764         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54765         if readlink fails with buffer size just under MAXSIZE, try again
54766         with MAXSIZE.
54767
54768 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54771
54772 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54773         and  Paul Eggert  <eggert@cs.ucla.edu>
54774
54775         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54776         (get_date): Overparenthesize to avoid GCC warning.
54777
54778 2004-11-02  Bruno Haible  <bruno@clisp.org>
54779
54780         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54781         returns void.
54782
54783 2004-11-02  Bruno Haible  <bruno@clisp.org>
54784
54785         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54786         function returns void.
54787
54788 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54791         fflush_unlocked, flockfile, funlockfile, funlockfile,
54792         fputs_unlocked, putc_unlocked.
54793
54794 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54797         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54798         already declared.
54799
54800 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54801
54802         * modules/getdate (Files): Add doc/getdate.texi.
54803         (Depends-on): Add setenv, xalloc.
54804
54805 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * lib/getdate.y: Add support for TZ="foo" within a date string.
54808         Fix some bugs near time_t boundaries.  Reject dates with
54809         out-of-range components, e.g., "Sept 31".
54810         Include <stdlib.h>, "setenv.h", "xalloc.h".
54811         (ISDIGIT_LOCALE): Remove; unused.
54812         Note that the TZ and time functions used here are not reentrant.
54813         (mktime_ok, get_tz): New functions.
54814         (TZBUFSIZE): New constant.
54815         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54816         This requires that we sometimes generate our own TZ="XXX..." setting.
54817
54818 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         * doc/getdate.texi: New file, from coreutils with modifications for
54821         the new TZ parsing.
54822
54823 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54824
54825         * lib/mktime.c (not_equal_tm): Remove redundant check.
54826
54827 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54828
54829         * modules/regex (lib_SOURCES): Add regex.c.
54830         Reported by James Youngman in
54831         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54832
54833 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54834
54835         * lib/getdate.y: Use Bison 1.875 features, and some minor
54836         code cleanups.  This change does not affect semantics.
54837         Don't include <stdlib.h>; no longer needed.
54838         Don't include unlocked-io.h; only the "#if TEST" code uses
54839         stdio, and performance isn't crucial there.
54840         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54841         Bison 1.875 features as described below.
54842         All uses of "PC." replaced by "pc->".
54843         (YYSTYPE): Add a forward declaration.
54844         (yylex, yyerror): Use full prototypes in forward decls.
54845         Use "%pure-parser" rather than obsolescent "%pure_parser".
54846         Use %parse-param and %lex-param instead of obsolescent
54847         YYPARSE_PARAM and YYLEX_PARAM.
54848         (meridian_table, month_and_day_table, time_units_table,
54849         relative_time_table, time_zone_table, military_table,
54850         lookup_zone, lookup_word, get_date):
54851         Use NULL instead of 0 where appropriate.
54852         (to_hour): Avoid abort (), to avoid a dependency on
54853         stdlib.h.
54854         (yyerror, yylex): Now accepts parser_control * arg.
54855         (main) [TEST]: Use '\0' rather than 0 for char.
54856
54857 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54858
54859         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54860
54861 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54864         It's now the caller's responsibility to handle the case where
54865         !HAVE_GETPAGESIZE && !defined getpagesize.
54866
54867         * lib/mktime.c (leapyear): Arg is long int, not int.
54868
54869 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54870
54871         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54872
54873 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54876         missing.  Problem reported by James Youngman.
54877
54878 2004-10-16  Simon Josefsson  <jas@extundo.com>
54879
54880         * gnulib-tool: Fix comments.  Fix parse problem.
54881         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54882
54883 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54886         implementation of getopt_long.  Problem reported by Alexander Taler in:
54887         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54888
54889 2004-10-15  Bruno Haible  <bruno@clisp.org>
54890
54891         * gnulib-tool: Untabify. Initialize supplied_libname.
54892         (func_usage): More homogenous output.
54893         (func_modules_transitive_closure, func_modules_to_filelist,
54894         func_emit_lib_Makefile_am): New functions.
54895         (func_import): New function, extracted from big case statement. Use
54896         func_get_license, func_modules_transitive_closure,
54897         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54898         opt_lgpl. Don't use test -a, as it's not portable.
54899         (func_create_testdir): Use func_modules_transitive_closure,
54900         func_modules_to_filelist, func_emit_lib_Makefile_am.
54901
54902 2004-10-15  Bruno Haible  <bruno@clisp.org>
54903
54904         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54905
54906 2004-10-15  Bruno Haible  <bruno@clisp.org>
54907
54908         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54909         the portions belonging to each module.
54910         Suggested by Derek Robert Price <derek@ximbiot.com>.
54911
54912 2004-10-12  Simon Josefsson  <jas@extundo.com>
54913
54914         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54915         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54916         to real functions.
54917
54918 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54919
54920         * modules/vsnprintf: New file.
54921
54922 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54923
54924         * m4/vsnprintf.m4: New file.
54925
54926 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54927
54928         * lib/vsnprintf.h: New file.
54929         * lib/vsnprintf.c: New file.
54930
54931 2004-10-11  Bruno Haible  <bruno@clisp.org>
54932
54933         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54934         vsnprintf.
54935
54936 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54937
54938         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54939
54940 2004-10-07  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54943         fits into the provided buffer.
54944
54945 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * lib/diacrit.c, diacrit.h: Add GPL notice.
54948
54949         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54950         notice.
54951         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54952         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54953         This avoids a potential constant-folding bug.
54954
54955 2004-10-05  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54958         for the declaration of strsep.
54959
54960 2004-10-05  Bruno Haible  <bruno@clisp.org>
54961
54962         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54963
54964 2004-10-04  Simon Josefsson  <jas@extundo.com>
54965
54966         * modules/memmem: New file.
54967         * tests/test-memmem.c: New file.
54968         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54969
54970 2004-10-04  Simon Josefsson  <jas@extundo.com>
54971
54972         * m4/memmem.m4: New file.
54973
54974 2004-10-04  Simon Josefsson  <jas@extundo.com>
54975
54976         * lib/memmem.h: New file.
54977         * lib/memmem.c: New file, taken from glibc.
54978
54979 2004-10-04  Simon Josefsson  <jas@extundo.com>
54980
54981         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54982         '#ifdef USE_UNLOCKED_IO'.
54983
54984 2004-10-04  Simon Josefsson  <jas@extundo.com>
54985
54986         * config/srclist.txt: Add memmem from glibc.
54987
54988 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54989
54990         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54991
54992         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54993         modules/exclude, modules/getdate, modules/getline,
54994         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54995         modules/getusershell, modules/linebuffer, modules/md5,
54996         modules/mountlist, modules/posixtm, modules/readtokens,
54997         modules/readutmp, modules/regex, modules/sha1,
54998         modules/version-etc, modules/yesno:
54999         Remove dependency on unlocked-io.
55000
55001 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55004
55005         * m4/unlocked-io.m4: Add copyright notice.
55006         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55007
55008 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55009
55010         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55011         * lib/xmalloc.c (xmemdup): Likewise.
55012         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55013         XFREE): Remove these long-obsolescent macros.
55014         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55015         * lib/xstrdup.c: Remove.
55016
55017         * lib/regex.c (re_comp): Cast gettext return value to char *,
55018         Problem reported by Martin Neitzel via Mark D. Baushke.
55019
55020 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55023         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55024         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55025         regex.c, sha1.c, version-etc.c, yesno.c:
55026         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55027         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55028         the includer's responsibility.
55029
55030         Sync from coreutils.
55031
55032         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55033         points to the start of a string, as the C Standard says the
55034         resulting behavior is undefined.
55035
55036         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55037         simple -> simple_backups, numbered_existing ->
55038         numbered_existing_backups, numbered -> numbered_backups
55039         to avoid shadowing problems.  All uses changed.
55040         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55041         * lib/backupfile.c (check_extension, numbered_backup):
55042         Rename locals to avoid shadowing 'basename'.
55043         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55044         once.
55045
55046         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55047         * lib/.cvsignore: Add getopt.h.
55048
55049 2004-10-04  Bruno Haible  <bruno@clisp.org>
55050
55051         * modules/README: New file.
55052         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55053         not a module.
55054
55055 2004-10-02  Jim Meyering  <jim@meyering.net>
55056
55057         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55058
55059 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55060
55061         * modules/strsep: New file.
55062
55063 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55064
55065         * m4/strsep.m4: New file.
55066
55067 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55068
55069         * lib/strsep.h: New file.
55070         * lib/strsep.c: New file.
55071
55072 2004-10-01  Simon Josefsson  <jas@extundo.com>
55073
55074         * lib/snprintf.c (snprintf): Handle size==0.
55075
55076 2004-10-01  Simon Josefsson  <jas@extundo.com>
55077             Bruno Haible  <bruno@clisp.org>
55078
55079         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55080         (snprintf): Declare 'args'.
55081
55082 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55083
55084         * lib/snprintf.c: Remove comments as to why each header is needed.
55085
55086 2004-10-01  Bruno Haible  <bruno@clisp.org>
55087
55088         * MODULES.html.sh: Add strsep.
55089
55090 2004-09-30  Simon Josefsson  <jas@extundo.com>
55091
55092         * modules/snprintf: New file.
55093
55094 2004-09-30  Simon Josefsson  <jas@extundo.com>
55095
55096         * m4/snprintf.m4: New file.
55097
55098 2004-09-30  Simon Josefsson  <jas@extundo.com>
55099
55100         * lib/snprintf.h, lib/snprintf.c: New files.
55101
55102 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55103
55104         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55105         (hol_entry_help): Never translate an empty string.
55106         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55107         * lib/argp.h (OPTION_NO_TRANS): New option.
55108
55109 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * modules/argp (Maintainer): Replace Simon Josefsson
55112         by Sergey Poznyakoff.
55113
55114 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55117         changes merged back into glibc.
55118
55119 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55122
55123 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55124
55125         * lib/xvasprintf.c: Include xalloc.h.
55126         (xvasprintf): Use xalloc_die, not xmalloc_die.
55127
55128 2004-09-29  Bruno Haible  <bruno@clisp.org>
55129
55130         * modules/alloca-opt: New file, derived from modules/alloca.
55131         * modules/allocsa: Depend on alloca-opt instead of alloca.
55132         * modules/setenv: Likewise.
55133         * modules/vasnprintf: Likewise.
55134         * MODULES.html.sh: Add alloca-opt.
55135
55136 2004-09-28  Simon Josefsson  <jas@extundo.com>
55137
55138         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55139         LGPL, and to replace license template from GPL to LGPL.
55140
55141 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * modules/dummy: Change license to LGPL.
55144
55145 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55148
55149 2004-09-24  Simon Josefsson  <jas@extundo.com>
55150
55151         * modules/minmax (License): Change from GPL to LGPL.
55152
55153 2004-09-23  Simon Josefsson  <jas@extundo.com>
55154
55155         * gnulib-tool (--import): Typo.
55156
55157 2004-09-23  Simon Josefsson  <jas@extundo.com>
55158
55159         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55160
55161 2004-09-22  Bruno Haible  <bruno@clisp.org>
55162
55163         * modules/*: Add 'License' field.
55164         * gnulib-tool: Accept --extract-license option.
55165         (func_get_license): New function.
55166
55167 2004-09-21  Bruno Haible  <bruno@clisp.org>
55168
55169         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55170         Reported by Simon Josefsson.
55171
55172 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55175         gl_AC_TYPE_LONG_LONG.
55176
55177 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55180
55181 2004-09-18  Simon Josefsson  <jas@extundo.com>
55182         and  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55185         calls with autoreconf.  Define GL_LIB.
55186
55187 2004-09-14  Karl Berry  <karl@gnu.org>
55188
55189         * config/srclist.txt: unsync setenv.c, sigh.
55190
55191 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55192
55193         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55194         Problem reported by Bruno Haible in:
55195         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55196
55197 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55198
55199         * config/srclist.txt: Comment out argp-pvh.c.
55200
55201 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55202
55203         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55204         in case some system header has #define'd it.  Problem reported by
55205         Soeren D. Schulze in
55206         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55207
55208 2004-09-09  Karl Berry  <karl@gnu.org>
55209
55210         * regex.[ch]: delete from the root.  These were supposed to be
55211                 synced with emacs cvs, but this has not happened for about
55212                 a year, and anyway nothing else uses emacs regex.[ch].
55213                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55214                 lib/regex[.ch] is untouched.
55215
55216 2004-09-09  Bruno Haible  <bruno@clisp.org>
55217
55218         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55219
55220 2004-09-09  Bruno Haible  <bruno@clisp.org>
55221
55222         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55223         modifications.
55224         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55225
55226 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55227
55228         * modules/xvasprintf: New file.
55229         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55230
55231 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55232
55233         * lib/xvasprintf.h: New file.
55234         * lib/xvasprintf.c: New file.
55235         * lib/xasprintf.c: New file.
55236
55237 2004-09-08  Bruno Haible  <bruno@clisp.org>
55238
55239         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55240
55241 2004-09-08  Bruno Haible  <bruno@clisp.org>
55242
55243         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55244         length is > INT_MAX.
55245         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55246         more.
55247
55248 2004-09-08  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/stdint_.h: New file, taken from GNU clisp.
55251
55252 2004-09-08  Bruno Haible  <bruno@clisp.org>
55253             Oskar Liljeblad  <oskar@osk.mine.nu>
55254
55255         * modules/stdint: New file.
55256         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55257
55258 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         Import from coreutils.
55261         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55262         strings on unbounded length.  alloca's performance benefits aren't
55263         that important here.
55264         (V_STRDUP): Remove.
55265         (parse_with_separator): New function, with most of the internals
55266         of the old parse_user_spec.  Allow user to omit both user and group,
55267         for compatibility with FreeBSD.
55268         Clone only the user name, not the entire spec.
55269         Do not set *uid, *gid unless entirely successful.
55270         Avoid memory leak in some failing cases.
55271         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55272         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55273         (parse_user_spec): Rewrite to use parse_with_separator.
55274
55275 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         * modules/userspec: Don't depend on alloca.
55278
55279 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55280
55281         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55282
55283 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55286         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55287         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55288
55289 2004-08-16  Simon Josefsson  <jas@extundo.com>
55290
55291         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55292         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55293         Add --dry-run for --import.
55294         Let user provided command line parameters override configure.ac
55295         settings.
55296
55297 2004-08-12  Simon Josefsson  <jas@extundo.com>
55298
55299         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55300         as discussed with Paul Eggert in threads rooted at
55301         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55302         and
55303         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55304         Before, the test was empty, and relied on ELIDE_CODE in source
55305         code.)
55306         (gl_PREREQ_GETOPT): New macro.
55307         (gl_GETOPT): Use them.
55308
55309 2004-08-12  Simon Josefsson  <jas@extundo.com>
55310
55311         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55312         * lib/getopt_.h: Renamed from getopt.h.
55313
55314 2004-08-12  Simon Josefsson  <jas@extundo.com>
55315
55316         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55317         Change default library name from libfoo to libgnu.
55318         Now, if you have a configure.ac that says:
55319                 gl_SOURCE_BASE(gl)
55320                 gl_M4_BASE(gl/m4)
55321                 gl_MODULES(error getopt etcetera)
55322                 gl_INIT
55323         you can import all you need by running:
55324                 ../gnulib/gnulib-tool --import
55325
55326         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55327         (Makefile.am): Rewrite, use logic from argz.
55328         (Include): Use <getopt.h> instead of "getopt.h".
55329
55330 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         * modules/argp (Files): Add m4/unlocked-io.m4.
55333         (Depends-on): Add extensions.
55334
55335 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55336
55337         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55338         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55339         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55340         Check for program_invocation_name, program_invocation_short_name,
55341         flockfile, funlockfile, features.h, _getopt_long_only_r.
55342
55343 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55344
55345         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55346         its complicated substitute.
55347         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55348         and program_invocation_name.
55349         (__argp_basename) [!_LIBC]: Remove; the only use was
55350         replaced by its body.
55351         (__argp_short_program_name): Change condition from
55352         !defined __argp_short_program_name to
55353         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55354         to match argp-namefrob.h.
55355         (__argp_failure): Don't assume strerror_r returns char *.
55356         * lib/argp-parse.c (N_): Define unconditionally.
55357         (argp_default_options): Fill out initializers with 0 to avoid
55358         gcc warnings.
55359
55360 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55361
55362         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55363         getopt1.c.
55364
55365 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         Merge from coreutils.
55368
55369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55370
55371         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55372         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55373
55374 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         Merge from coreutils.
55377
55378         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55379         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55380         for Reliant Unix 5.43.
55381
55382         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55383         (union fooround): Use uintmax_t, not long int.
55384         The rest is a merge from libc:
55385         [defined _LIBC]: Include <shlib-compat.h>.
55386         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55387
55388         * lib/settime.c (settime): Recode to avoid warning with
55389         Sun Forte C 6U2.
55390
55391         * lib/strverscmp.c: Convert to UTF-8.
55392
55393 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55396         m4/uintmax_t.m4.
55397
55398 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         * modules/xalloc-die: New file.
55401         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55402
55403         * modules/md5 (Files): Add m4/uint32_t.m4.
55404         * modules/sha1: Renamed from modules/sha.
55405         (Files):
55406         Rename lib/sha.h to lib/sha1.h.
55407         Rename lib/sha.c to lib/sha1.c.
55408         Rename m4/sha.m4 to m4/sha1.m4.
55409         (lib_SOURCES): Likewise.
55410         (configure.ac): Rename gl_SHA to gl_SHA1.
55411         (Include): sha.h -> sha1.h.
55412
55413 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55416         * m4/sha1.m4: Renamed from sha.m4.
55417         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55418
55419 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55420
55421         * lib/obstack.h (obstack_empty_p):
55422         Don't assume that chunk->contents is suitably aligned.
55423         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55424         Likewise. Problem reported by Benno in
55425         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55426
55427         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55428         readable.  This could be improved further but it'd take some work.
55429
55430 2004-08-08  Simon Josefsson  <jas@extundo.com>
55431
55432         * modules/xgethostname (Depends-on): Remove exit and error (not
55433         used).
55434
55435         * modules/getpass-gnu: Add getpass.h.
55436         (Depends-on): Add stdbool.
55437         * modules/getpass: Add getpass.h.
55438
55439 2004-08-08  Simon Josefsson  <jas@extundo.com>
55440
55441         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55442         Check getpass declaration.
55443
55444 2004-08-08  Simon Josefsson  <jas@extundo.com>
55445
55446         * lib/xgethostname.c: Don't include error.h (not used).
55447
55448         * lib/getpass.h: Add.
55449         * lib/getpass.c: Include getpass.h first.
55450
55451 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55452
55453         * lib/xalloc-die.c: New file.
55454         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55455         All uses removed.
55456         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55457         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55458         xalloc-die.c.
55459         (_, N_, xalloc_die): Move to xalloc-die.c.
55460         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55461         so that we needn't mess with xalloc_msg_memory_exhausted.
55462
55463         * lib/sha1.h: Renamed from sha.h.
55464         (SHA1_H): Renamed from _SHA_H.
55465         (sha1_ctx): Renamed from sha_ctx.
55466         (sha1_init_ctx): Renamed from sha_init_ctx.
55467         (sha1_process_block): Renamed from sha_process_block.
55468         (sha1_process_bytes): Renamed from sha_process_bytes.
55469         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55470         (sha1_read_ctx): Renamed from sha_read_ctx.
55471         (sha1_stream): Renamed from sha_stream.
55472         (sha1_buffer): Renamed from sha_buffer.
55473         * lib/sha1.c: Likewise; renamed from sha.c.
55474         Do not include <sys/types.h>.
55475         Include <stddef.h> rather than <stdlib.h>.
55476
55477 2004-08-08  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55480         FILESYSTEM_PREFIX_LEN.
55481         * lib/progreloc.c: Likewise.
55482         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55483
55484 2004-08-06  Simon Josefsson  <jas@extundo.com>
55485
55486         * modules/progname (Depends-on): Don't depend on stdbool.
55487
55488 2004-08-06  Simon Josefsson  <jas@extundo.com>
55489
55490         * modules/getsubopt: New file.
55491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55492         getsubopt.
55493
55494 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55495
55496         More merge from coreutils.
55497
55498         * m4/utimens.m4, m4/utimecmp.m4: New files.
55499         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55500         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55501         prereq.m4, sha.m4: Import changes from coreutils.
55502
55503 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         More merge from coreutils.
55506         * modules/raise, modules/readtokens0, modules/utimens:
55507         * modules/utimecmp, module/xnanosleep: New files.
55508         * modules/strftime: Add lib/strftime.h.
55509         Change include from <time.h> to "strftime.h".
55510         * modules/yesno: Add lib/yesno.h.
55511         * modules/backupfile: Remove lib/addext.c.
55512         * modules/euidaccess: Add stat-macros.h.
55513         * modules/canonicalize, modules/euidaccess,
55514         modules/filemode, modules/lchown, modules/makepath,
55515         modules/rmdir, modules/stat: Likewise.
55516
55517 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55518
55519         Merge from tar.
55520         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55521         SIZE_MAX is a valid preprocessor constant.
55522         (__argp_basename): Change from "#ifndef _LIBC"
55523         to "#ifndef __argp_short_program_name", so that
55524         we don't compile these functions for tar.
55525
55526         More merges from coreutils.
55527         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55528         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55529         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55530         * lib/addext.c: Remove; no longer needed.
55531         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55532         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55533         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55534         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55535         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55536         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55537         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55538         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55539         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55540         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55541         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55542         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55543         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55544         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55545         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55546         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55547         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55548         Import changes from coreutils.
55549
55550 2004-08-05  Simon Josefsson  <jas@extundo.com>
55551
55552         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55553
55554 2004-08-05  Simon Josefsson  <jas@extundo.com>
55555
55556         * m4/getsubopt.m4: New file.
55557
55558 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55559
55560         Merge from coreutils.
55561
55562         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55563         * m4/getcwd-path-max.m4: New files.
55564
55565         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55566         FILESYSTEM_PREFIX_LEN ->
55567         FILE_SYSTEM_PREFIX_LEN.
55568         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55569         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55570         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55571         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55572
55573         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55574         prerequisite modules now handle the DOS stuff.
55575         Don't check for unistd.h.
55576
55577 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55578
55579         Merge from coreutils.
55580
55581         * lib/.gdb-history: Remove; this doesn't belong here.
55582
55583         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55584         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55585         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55586         * lib/getcwd.c: New files.
55587
55588         * lib/dirname.h: Include <stdbool.h>.
55589         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55590         for consistency with POSIX terminology.  All uses changed.
55591         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55592         (strip_trailing_slashes): Use bool for booleans.
55593         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55594
55595         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55596         sometimes returns a positive errno value even when it succeeds.
55597         (print_errno_message) [!LIBC]: Fall back on strerror if
55598         __strerror_r fails.
55599
55600         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55601         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55602         (longest_relative_suffix): New function.
55603         (path_concat): Use it.  Assume first argument is not NULL.
55604         Port to DOS.  Omit redundant separators.
55605         Report an error instead of returning NULL.
55606         Use mempcpy instead of memcpy.
55607         (xpath_concat): Remove: not declared or used.
55608
55609         * lib/same.h: Include <stdbool.h>
55610         (same_name): Return bool, not int.
55611         * lib/same.c (same_name): Likewise.
55612         (errno): Don't declare; we assume C89 or better now.
55613
55614         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55615         if not already defined.
55616
55617         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55618         * lib/dup-safer.c (errno): Likewise.
55619
55620 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55621
55622         Merge from coreutils.
55623         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55624         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55625         * modules/path-concat: Don't depend on strdup.
55626
55627 2004-08-03  Simon Josefsson  <jas@extundo.com>
55628
55629         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55630         * lib/progname.h: Don't include stdbool.h.
55631
55632 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55633
55634         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55635         * MODULES.html.sh (func_all_modules): Remove fatal.
55636
55637 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55638
55639         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55640
55641 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55642
55643         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55644         working.
55645
55646 2004-08-02  Simon Josefsson  <jas@extundo.com>
55647
55648         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55649         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55650         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55651
55652 2004-08-01  Simon Josefsson  <jas@extundo.com>
55653
55654         * lib/xgetdomainname.c: Include stdlib.h, for free().
55655
55656 2004-07-19  Bruno Haible  <bruno@clisp.org>
55657
55658         * MODULES.html.sh (func_all_modules): Add dummy.
55659
55660 2004-07-16  Simon Josefsson  <jas@extundo.com>
55661
55662         * modules/dummy: New file.
55663
55664 2004-07-16  Simon Josefsson  <jas@extundo.com>
55665
55666         * lib/dummy.c: New file.
55667
55668 2004-07-16  Bruno Haible  <bruno@clisp.org>
55669
55670         * lib/backupfile.h: Add extern "C" for C++.
55671         * lib/closeout.h: Likewise.
55672         * lib/copy-file.h: Likewise.
55673         * lib/findprog.h: Likewise.
55674         * lib/full-write.h: Likewise.
55675         * lib/pathname.h: Likewise.
55676         * lib/progname.h: Likewise.
55677         * lib/stpcpy.h: Likewise.
55678         * lib/stpncpy.h: Likewise.
55679         * lib/strcase.h: Likewise.
55680         * lib/strstr.h: Likewise.
55681         * lib/xalloc.h: Likewise.
55682
55683         * lib/mbswidth.h: Add extern "C" for C++.
55684         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55685
55686 2004-07-13  Robert Millan  <robertmh@gnu.org>
55687
55688         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55689
55690 2004-07-09  Simon Josefsson  <jas@extundo.com>
55691
55692         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55693         failed without this.)
55694
55695 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55696
55697         * modules/chown (Files): Add lib/fchown-stub.c, since
55698         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55699
55700 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55701
55702         * lib/fchown-stub.c: New file.
55703
55704 2004-06-24  Jim Meyering  <jim@meyering.net>
55705
55706         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55707
55708 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * modules/argz: Omit "#include".
55711
55712         * MODULES.html.sh (func_all_modules): Add calloc, to match
55713         2004-06-01 addition of calloc module.
55714
55715 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55716
55717         * m4/argz.m4: New file, which is autoupdated from libtool.
55718
55719 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55720
55721         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55722         libtool.
55723
55724 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         * config/srclist-update: Don't insist on "USA." before the
55727         close-comment, as libtool omits the period and puts the */ on a
55728         separate line.
55729         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55730         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55731
55732 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55733
55734         * modules/argz: New file.
55735         * MODULES.html.sh (func_all_modules): Add argz.
55736
55737 2004-06-12  Jim Meyering  <jim@meyering.net>
55738         and  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * modules/hash (Files): Add lib/xalloc.h.
55741         * modules/pipe (Depends-on): Add wait-process.
55742         * modules/stat (Depends-on): Add xalloc.
55743         * modules/userspec (Files): Add lib/userspec.h.
55744         * modules/xstrto
55745
55746         Upgrade from gettext-0.13.
55747         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55748         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55749         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55750
55751 2004-06-10  Jim Meyering  <jim@meyering.net>
55752
55753         * lib/calloc.c: New file.
55754
55755 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55756
55757         * lib/getdate.y (yylex): Allow space between sign and number.
55758         Problem reported by Dan Jacobson.
55759
55760 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55761
55762         Merge from coreutils CVS.
55763
55764         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55765         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55766         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55767         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55768         xstrtol.m4: Fix copyright date and/or serial number.
55769
55770         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55771         See if we need an fchown replacement.
55772         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55773         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55774         and use the replacement function if we detect either defect.
55775
55776         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55777         gl_UTIMECMP.
55778
55779 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55780         and  Jim Meyering  <jim@meyering.net>
55781
55782         Merge from coreutils CVS.
55783
55784         * lib/stat-macros.h: New file, with contents from file-type.h
55785         and coreutils' system.h.
55786         * lib/file-type.c: Include "stat-macros.h".
55787         * lib/file-type.h (file_type): Move all macro definitions to new file,
55788         stat-macros.h.
55789
55790         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55791         Wrap old code with this conditional.
55792         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55793         function that does not dereference symlinks.
55794         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55795
55796         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55797         dependency problems.
55798         (xreadlink): Accept new arg SIZE, for efficiency.
55799         All decls and uses changed.
55800         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55801
55802         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55803         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55804
55805         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55806         sysexits.h.
55807
55808 2004-06-01  Jim Meyering  <jim@meyering.net>
55809
55810         * m4/calloc.m4: New file.
55811
55812 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55815         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55816         Also, fix a typo in a diagnostic.
55817
55818 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55819
55820         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55821         or AC_FUNC_REALLOC.
55822
55823 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55824
55825         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55826         macros to be defined.
55827         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55828         the allocator returns NULL because the requested size is zero.
55829
55830 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55833         var.  Add comment explaining why libc still defines it.  This
55834         merges the following patch from glibc:
55835         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55836
55837 2004-05-20  Andreas Schwab  <schwab@suse.de>
55838
55839         * m4/free.m4: Replace free if it not known to work, not the other
55840         way round.
55841
55842 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55843
55844         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55845         present in glibc since revision 1.1 of this file.
55846         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55847         obstack_alignment_mask, obstack_alloc, obstack_base,
55848         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55849         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55850         obstack_grow0, obstack_init, obstack_int_grow,
55851         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55852         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55853         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55854         nonexistent functions.
55855
55856 2004-05-18  Karl Berry  <karl@gnu.org>
55857
55858         * config/srclist.txt: break link for vasnprintf.c.
55859
55860 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55861
55862         Port obstack to the AS/400, where pointers are 16 bytes wide and
55863         you cannot cast an integer to a valid pointer.  This patch is
55864         currently waiting to be integrated into glibc; see
55865         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55866
55867         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55868         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55869         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55870         (struct obstack): temp member is now a union of a pointer and
55871         an integer, instead of an integer.  All integer uses changed.
55872         This does not affect the physical layout of struct obstack,
55873         except on hosts (like the AS/400) where the size or alignment of
55874         void * is greater than that of ptrdiff_t.
55875         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55876         __STDC__)]: Store temporary in pointer member of union, not
55877         integer member.
55878         * lib/obstack.c: Include <stddef.h>, for offsetof.
55879         (struct fooalign): Remove; it doesn't need a name.
55880         (union fooround): Change double to long double, and add void *.
55881         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55882         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55883         not a macro.  Hence the values are always int; so remove all
55884         casts-to-int in uses.
55885
55886 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55887
55888         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55889         we can get this patch merged into glibc.
55890
55891 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55892             Paul Eggert  <eggert@cs.ucla.edu>
55893
55894         * m4/argp: Depend on alloca.
55895
55896 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55897             Paul Eggert  <eggert@cs.ucla.edu>
55898
55899         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55900         freecoding.
55901
55902 2004-05-17  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55905         precision that consists of a '.' followed by an empty digit string.
55906         Patch by Tor Lillqvist <tml@iki.fi>.
55907
55908 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55909
55910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55911         for backward compatibility with older code.  We need our own
55912         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55913         it under some other name, and our alloca.h will define it.
55914
55915 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55916             Derek Price  <derek@ximbiot.com>
55917
55918         * lib/alloca.c: Include <alloca.h>, to get our interface.
55919         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55920         include <alloca.h> first.  Use C89 prototype for alloca; this
55921         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55922         Use #elif for simplicity, since we can assume C89 now.
55923         Don't try to source the system alloca.h since it will not be found
55924         and to prevent recursively including its replacement.
55925         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55926         * lib/regex.c: Likewise.
55927
55928 2004-05-16  Derek Price  <derek@ximbiot.com>
55929             Paul Eggert  <eggert@cs.ucla.edu>
55930
55931         getline cleanup.  This changes the getndelim2 API: both order of
55932         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55933         no delimiter).
55934
55935         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55936         interface does that.
55937         (getline): Always use getdelim, so that we don't have two
55938         copies of this code.
55939         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55940         if available.
55941         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55942         (GETNDELIM2_MAXIMUM): New macro.
55943         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55944         instead of the old practice of delim2==0.  All callers changed.
55945         Return -1 on overflow, instead of returning junk.
55946         Do not set *linesize unless allocation succeeds.
55947         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55948         that we include sys/types.h.
55949         * lib/getnline.h: Likewise.
55950         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55951         (getndelim2): Reorder arguments.
55952         * lib/getnline.c (getnline, getndelim):
55953         Don't discard the NMAX argument.
55954         (getnline): Invoke getndelim, to avoid code duplication.
55955         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55956         of (size_t) -1 by callers of the getnline family.
55957
55958 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55961         Check for gettimeofday.
55962         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55963         Check for settimeofday, stime.
55964
55965 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * lib/nanosleep.c (suspended): Change its type from int to
55968         sig_atomic_t volatile.
55969         (first_call): Make it private to rpl_nanosleep, and have it
55970         be zero initially as that's a bit faster.
55971         (my_usleep): Round up fractional times instead of truncating them,
55972         as this is the usual meaning for 'sleep'.
55973
55974         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55975         doesn't work.
55976         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55977         (ENOSYS): Define if not defined.
55978         (settime): Fall back on stime if it exists and settimeofday fails.
55979         But don't bother with fallbacks if a method fails with errno == EPERM.
55980
55981 2004-05-11  Jim Meyering  <jim@meyering.net>
55982
55983         Prior to this change, the save_cwd caller required read access to the
55984         current directory on most systems (ones with the fchdir function).
55985
55986         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55987         fails, try write-only, and finally, resort to using xgetcwd.
55988
55989 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55990
55991         * lib/obstack.c, obstack.h: Import changes from libc.
55992
55993 2004-04-28  Bruno Haible  <bruno@clisp.org>
55994
55995         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55996         also implicitly appends .exe to executables.
55997         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55998         accepts Windows pathnames.
55999         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56000         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56001         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56002         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56003         Reported by Derek Robert Price <derek@ximbiot.com>.
56004
56005 2004-04-21  Karl Berry  <karl@gnu.org>
56006
56007         * config/srclist.txt (localcharset.c): break sync.
56008
56009 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56010
56011         * m4/host-os.m4: Add a copyright notice.
56012
56013 2004-04-20  Jim Meyering  <jim@meyering.net>
56014
56015         Change UTILS_ to gl_ in AC_DEFINE'd names.
56016         Change utils_- and jm_-prefixed variables, too.
56017         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56018         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56019         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56020
56021         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56022         Don't emit trailing blanks.
56023         Also rename jm_-prefixed variables to have gl_ prefix.
56024
56025         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56026         Also rename jm_-prefixed variables to have gl_ prefix.
56027
56028         * m4/jm-macros.m4: Reflect the renamings.
56029         * m4/prereq.m4: Likewise.
56030
56031 2004-04-20  Jim Meyering  <jim@meyering.net>
56032
56033         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56034         memory.
56035
56036 2004-04-20  Jim Meyering  <jim@meyering.net>
56037             Bruno Haible  <bruno@clisp.org>
56038
56039         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56040         memory when realloc fails.
56041
56042 2004-04-19  Jim Meyering  <jim@meyering.net>
56043
56044         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56045         now that readutmp.c may call `free (0)'.
56046
56047 2004-04-19  Bruno Haible  <bruno@clisp.org>
56048
56049         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56050         * m4/inttypes_h.m4: Likewise.
56051         * m4/stdint_h.m4: Likewise.
56052         * m4/intmax_t.m4: Likewise.
56053         * m4/uintmax_t.m4: Likewise.
56054
56055 2004-04-18  Jim Meyering  <jim@meyering.net>
56056
56057         * m4/prereq.m4: Don't forbid jm_ prefix.
56058
56059         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56060         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56061         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56062         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56063         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56064         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56065         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56066         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56067         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56068         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56069         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56070         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56071         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56072         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56073         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56074         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56075         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56076         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56077         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56078
56079 2004-04-18  Jim Meyering  <jim@meyering.net>
56080
56081         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56082         failure, don't leak memory and do call END_UTMP_ENT.
56083
56084 2004-04-16  Jim Meyering  <jim@meyering.net>
56085
56086         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56087         coreutils' stat program.
56088         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56089
56090 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56091
56092         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56093         C89.
56094         (CHAR_BIT): Remove, since we assume C89.
56095         Include <stdint.h> if available, as per current Autoconf CVS advice.
56096
56097 2004-03-31  Jim Meyering  <jim@meyering.net>
56098
56099         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56100         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56101         * m4/xalloc.m4: Likewise.
56102
56103 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56104
56105         Merge from coreutils.
56106
56107         * m4/inttostr.m4: New file.
56108         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56109         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56110         Require gl_CLOCK_TIME.
56111         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56112
56113 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56114
56115         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56116         not bool, to be more consistent with Unix conventions.
56117         Suggested by Bruno Haible.
56118
56119         Merge from coreutils.
56120
56121         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56122         * lib/umaxtostr.c: New files.
56123
56124         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56125         the usual <time.h> dance.
56126         (get_date): Change signature to support fractional time stamps.
56127         All callers changed.
56128         * lib/getdate.y: Include "getdate.h" first, as we can now
56129         assume C89 and don't need to worry about 'const'.
56130         Similarly, include "unlocked-io.h" near start, not in middle.
56131         Include <limits.h>.
56132         (textint.value): Use long int rather than int.
56133         (textint.digits): Use size_t rather than int.
56134         (BILLION, LOG10_BILLION): New constants.
56135         (parser_control): New member rel_ns.  Members day_ordinal,
56136         time_zone, month, day, hour, minutes, rel_year, rel_month,
56137         rel_day, rel_hour, rel_minutes, rel_seconds
56138         are now long int, not int.  Member seconds is now struct timespec,
56139         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56140         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56141         not int.
56142         (%union.intval): Now long int, not int.
56143         New member timespec.
56144         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56145         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56146         (spec): Now is a timespec or an item list.
56147         (timespec, items): New nonterminals.
56148         (time, rel, relunit, number, get_date):
56149         Add support for fractional seconds.
56150         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56151         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56152         (to_hour): First arg is now long int, not int.
56153         (to_year): Returns long int, not int.
56154         Don't treat year -70 like 70.
56155         (tm_diff): Returns long int, not int.
56156         (lookup_word): Use bool instead of int when appropriate.
56157         (yylex): Use size_t for count, not int.
56158         Detect overflow when parsing large integer constants.
56159         Add support for fractions.
56160         (get_date): Make pointers 'const' if possible.
56161         Use more-portable code to detect integer overflow.
56162         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56163         Don't use ctime; it's not reliable if the year has >4 digits.
56164
56165         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56166         This is for compatibility with BSD.
56167
56168         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56169         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56170         From coreutils' system.h.
56171
56172         * lib/userspec.c: Don't include "posixver.h".
56173         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56174         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56175         compatible extension.  Simplify code by removing a boolean int
56176         that was always nonzero if a string was nonnull.
56177
56178 2004-03-30  Jim Meyering  <jim@meyering.net>
56179
56180         Merge from coreutils.
56181
56182         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56183         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56184         on some systems one must include <grp.h> before it.
56185         Reported by Christian Krackowizer.
56186
56187 2004-03-30  Jim Meyering  <jim@meyering.net>
56188
56189         Merge from coreutils.
56190
56191         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56192
56193         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56194         an empty input stream.
56195
56196         * lib/readtokens.c: Include <stdbool.h>.
56197         (readtoken): Use `size_t' rather than int/long.
56198         All callers adjusted.
56199         Use `bool' rather than `int' where appropriate.
56200         Use memset rather than an explicit loop.
56201         Use x2nrealloc rather than xrealloc.
56202         Allow the use of `\0' as a delimiter.
56203         (readtokens): Likewise.
56204         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56205
56206 2004-03-30  Jim Meyering  <jim@meyering.net>
56207
56208         * m4/realloc.m4: Remove file, since now it does no more than
56209         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56210         the `configure.ac' section of module/realloc.
56211         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56212
56213 2004-03-30  Bruno Haible  <bruno@clisp.org>
56214
56215         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56216         nonnull.
56217
56218 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56219
56220         Merge changes to getloadavg.c from coreutils and Emacs.
56221
56222         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56223         Define to an expression, not to the empty string.
56224         Include cloexec.h and xalloc.h.
56225         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56226         Use set_cloexec_flag rather than rolling our own.
56227         * lib/cloexec.c, lib/cloexec.h: New files.
56228
56229 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56230
56231         * m4/cloexec.m4: New file.
56232
56233 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56234
56235         * lib/getopt.h: Sync with libc CVS.
56236
56237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56238             Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56241         mbswidth.
56242
56243 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56244             Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/mbswidth.h: Include <wchar.h> only if
56247         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56248         <wchar.h>.
56249         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56250
56251 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56252
56253         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56254         Sync with libc CVS.
56255         * lib/getopt_int.h: New file, also synced from libc.
56256
56257 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56258
56259         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56260         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56261         Bring back getopt.c, getopt.h, getopt1.c.
56262
56263 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56264
56265         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56266         All uses changed.  Check for sa_sigaction member; this fixes
56267         a bug first reported by Jason Andrade in
56268         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56269
56270 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56271
56272         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56273         '#if' expressions.  Unlike the code it replaces, it does not
56274         depend on (defined _SC_PAGESIZE).  However, it does depend on
56275         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56276         first reported by Jason Andrade in
56277         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56278
56279 2004-02-25  Simon Josefsson  <jas@extundo.com>
56280
56281         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56282
56283 2004-02-25  Simon Josefsson  <jas@extundo.com>
56284
56285         * lib/strdup.h: New file.
56286         * lib/strdup.c: Include it.
56287         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56288         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56289
56290 2004-02-23  Karl Berry  <karl@gnu.org>
56291
56292         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56293         (from fencepost.gnu.org:/gd/gnuorg).
56294
56295 2004-02-23  Karl Berry  <karl@gnu.org>
56296
56297         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56298         * config/srclist.txt: add maintain/standards documents.
56299
56300 2004-02-18  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56303         Reported by Derek Robert Price <derek@ximbiot.com>.
56304
56305 2004-02-16  Karl Berry  <karl@gnu.org>
56306
56307         * config/mkinstalldirs, install-sh: update from automake.
56308
56309 2004-02-06  Karl Berry  <karl@gnu.org>
56310
56311         * m4/po.m4: update from gettext 0.14.1.
56312
56313 2004-02-06  Karl Berry  <karl@gnu.org>
56314
56315         * lib/config.charset: update from gettext 0.14.1.
56316
56317 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56318
56319         Add comments and code, prompted by suggestions from Bruno Haible
56320         for sh-quote.
56321         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56322         describing the enum quoting_style values.
56323         * lib/quotearg.c (quotearg_alloc): New function.
56324         (quotearg_buffer_restyled): Treat lone { and } as special.
56325         Treat = as special.  Work around bug with older shells
56326         that "see" a '\' that is really the 2nd byte of a multibyte char.
56327         Quote empty string with shell_quoting_style.
56328
56329 2004-02-03  Bruno Haible  <bruno@clisp.org>
56330
56331         * m4/pipe.m4: New file, from GNU gettext.
56332
56333 2004-02-03  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/pipe.h: New file, from GNU gettext.
56336         * lib/pipe.c: New file, from GNU gettext.
56337
56338 2004-01-27  Bruno Haible  <bruno@clisp.org>
56339
56340         * m4/execute.m4: New file, from GNU gettext.
56341
56342 2004-01-27  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/execute.h: New file, from GNU gettext.
56345         * lib/execute.c: New file, from GNU gettext.
56346         * lib/w32spawn.h: New file, from GNU gettext.
56347
56348 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56349
56350         Merge from diffutils.
56351
56352         * lib/file-type.c (file_type): Add typed memory objects.
56353         * lib/file-type.h (S_TYPEISTMO): New macro.
56354
56355         * lib/c-stack.h (c_stack_action): Remove argv argument.
56356         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56357         (die): Don't calculate message unless segv_action returns.
56358         (get_stack_location, min_address_from_argv, max_address_from_argv,
56359         volatile stack_base, volatile_stack_size): Remove.
56360         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56361         that every segmentation violation is a stack overflow.  (Ouch!)
56362         See Debian bug 136249 (still outstanding) for more info about why
56363         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56364
56365 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56366
56367         Exit-status fix from coreutils.
56368
56369         Use exit_failure consistently in place of EXIT_FAILURE,
56370         so that program exit statuses are consistent on failure.
56371
56372         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56373         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56374         * lib/argmatch.h: Comment fix to match the above.
56375         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56376         Now a macro referring to exit_failure, instead of a separate
56377         variable.  Include "exitfail.h" to get it.
56378         * lib/xstrtol.h: Include "exitfail.h".
56379         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56380
56381         * lib/long-options.c (parse_long_options): Use prototype
56382         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56383         for clarity.
56384
56385 2004-01-21  Jim Meyering  <jim@meyering.net>
56386
56387         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56388         so as not to conflict with a different-sized __mktime_internal
56389         function in GNU libc.
56390         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56391         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56392
56393 2004-01-20  Karl Berry  <karl@gnu.org>
56394
56395         * config/config.guess: update from config.
56396
56397         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56398
56399 2004-01-20  Bruno Haible  <bruno@clisp.org>
56400
56401         Safer stack allocation.
56402         * lib/setenv.c: Include allocsa.h.
56403         (alloca): Remove fallback definition.
56404         (freea): Remove macro.
56405         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56406         instead of freea.
56407
56408 2004-01-20  Bruno Haible  <bruno@clisp.org>
56409
56410         * m4/eealloc.m4: New file, from GNU gettext.
56411
56412 2004-01-20  Bruno Haible  <bruno@clisp.org>
56413
56414         * m4/allocsa.m4: New file, from GNU gettext.
56415
56416 2004-01-20  Bruno Haible  <bruno@clisp.org>
56417
56418         * lib/xallocsa.h: New file, from GNU gettext.
56419         * lib/xallocsa.c: New file, from GNU gettext.
56420
56421 2004-01-20  Bruno Haible  <bruno@clisp.org>
56422
56423         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56424
56425 2004-01-20  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56428         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56429         specially.
56430
56431 2004-01-20  Bruno Haible  <bruno@clisp.org>
56432
56433         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56434         patch.
56435
56436 2004-01-20  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56439
56440 2004-01-20  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/eealloc.h: New file.
56443
56444 2004-01-20  Bruno Haible  <bruno@clisp.org>
56445
56446         * lib/binary-io.h: Avoid warnings on Cygwin.
56447
56448 2004-01-20  Bruno Haible  <bruno@clisp.org>
56449
56450         * lib/allocsa.h: New file, from GNU gettext.
56451         * lib/allocsa.c: New file, from GNU gettext.
56452
56453 2004-01-18  Karl Berry  <karl@gnu.org>
56454
56455         * doc/gpl.texi, doc/lgpl.texi: new files.
56456
56457 2004-01-18  Karl Berry  <karl@gnu.org>
56458
56459         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56460         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56461
56462 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56463
56464         Merge from coreutils.
56465
56466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56467         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56468         (gl_DEFAULT_POSIX2_VERSION): Move
56469         the documentation from 'configure' into 'config.hin',
56470         so that 'configure --help' isn't burdened by it and
56471         we don't have to worry about its formatting there.
56472         Reword the documentation so that it's more succinct
56473         and can be run together into a single paragraph.
56474         * m4/same.m4 (gl_SAME): Check for pathconf.
56475
56476 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56477
56478         Merge from coreutils.
56479
56480         * lib/posixver.c: Include posixver.h.
56481
56482         * lib/same.c: Include <stdbool.h>, <limits.h>.
56483         (_POSIX_NAME_MAX): Define if not defined.
56484         (MIN): New macro.
56485         (same_name): If file names are silently truncated, report
56486         that the file names are the same if they are the same after
56487         the silent truncation.
56488
56489         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56490         conversion function.
56491         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56492         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56493         longer needed.
56494
56495 2004-01-15  Jim Meyering  <jim@meyering.net>
56496
56497         Merge from coreutils.
56498
56499         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56500         if no library is required.
56501         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56502         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56503         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56504         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56505         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56506         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56507         value, $ac_cv_search_crypt, if it's "none required".
56508         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56509         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56510         not gl_FUNC_GETLOADAVG.
56511         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56512         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56513
56514 2004-01-15  Jim Meyering  <jim@meyering.net>
56515
56516         Merge from coreutils.
56517
56518         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56519         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56520         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56521
56522         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56523         optional configure-time default.
56524
56525         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56526
56527         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56528
56529 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56530
56531         Merge from coreutils.
56532
56533         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56534         value, $ac_cv_search_nanosleep, if it's "none required".
56535
56536 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56537
56538         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56539         with like-named macro in fnmatch.c.
56540         (EXT): Use an internal constant instead.
56541
56542         Merge fnmatch patches from glibc.
56543         * lib/fnmatch.c (mbsinit): Remove define.
56544         Add libc_hidden_ver (__fnmatch, fnmatch).
56545         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56546         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56547
56548 2004-01-14  Karl Berry  <karl@gnu.org>
56549
56550         * config/install-sh: update from automake.
56551
56552 2004-01-13  Karl Berry  <karl@gnu.org>
56553
56554         * config/install-sh: update from automake.
56555
56556 2004-01-09  Karl Berry  <karl@gnu.org>
56557
56558         * config/install-sh: update from automake.
56559
56560 2004-01-05  Karl Berry  <karl@gnu.org>
56561
56562         * config/config.{sub,guess}: update from config.
56563
56564 2003-12-31  Karl Berry  <karl@gnu.org>
56565
56566         * config/depcomp: update from automake.
56567
56568 2003-12-14  Karl Berry  <karl@gnu.org>
56569
56570         * lib/config.charset: update from gettext-runtime.
56571
56572 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56573
56574         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56575         Bug reported by Alfred M. Szmidt.
56576
56577 2003-12-03  Bruno Haible  <bruno@clisp.org>
56578
56579         * m4/gettext.m4: Upgrade from gettext-0.13.
56580         * m4/po.m4: Upgrade from gettext-0.13.
56581         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56582         * m4/intmax.m4: New file, from gettext-0.13.
56583         * m4/printf-posix.m4: New file, from gettext-0.13.
56584
56585 2003-11-29  Karl Berry  <karl@gnu.org>
56586
56587         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56588
56589 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56590             Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/printf-parse.h: Don't include sys/types.h.
56593         (ARG_NONE): New macro.
56594         (char_directive): Change type of *arg_index fields to size_t.
56595         * lib/printf-parse.c: Don't include sys/types.h.
56596         (SSIZE_MAX): Remove macro.
56597         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56598         Remove unnecessary overflow check.
56599         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56600         fields.
56601
56602 2003-11-25  Bruno Haible  <bruno@clisp.org>
56603
56604         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56605
56606 2003-11-25  Bruno Haible  <bruno@clisp.org>
56607
56608         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56609         gt_TYPE_SSIZE_T.
56610
56611 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56612
56613         * modules/alloca: Remove dependency on xalloc.
56614
56615 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56616
56617         * lib/alloca.c: Remove dependency on xalloc module.
56618         (xalloc_die): Remove.
56619         (memory_full) [!defined emacs]: New macro.
56620         [!defined emacs]: Don't include xalloc.h.
56621         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56622         address arithmetic overflows.  Change datatypes a bit to avoid
56623         unnecessary casts.
56624
56625 2003-11-22  Jim Meyering  <jim@meyering.net>
56626
56627         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56628         s/size/size_t/.
56629
56630 2003-11-21  Karl Berry  <karl@gnu.org>
56631
56632         * config/config.{sub,guess}: update from config.
56633
56634 2003-11-18  Karl Berry  <karl@gnu.org>
56635
56636         * config/config.{sub,guess}: update from config.
56637
56638         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56639
56640 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56641
56642         * README: Mention that S+T cannot overflow if S is the size of
56643         an existing object and T is sufficiently small.
56644
56645 2003-11-17  Jim Meyering  <jim@meyering.net>
56646
56647         On systems without utime and without a utimes function capable of
56648         dealing with a NULL struct utimbuf* argument, this utime replacement
56649         could -- in unusual circumstances -- leak a file descriptor.
56650         * lib/utime.c: Include <unistd.h> and <errno.h>.
56651         (utime_null): Be sure to close `fd' and to preserve errno.
56652         Reported by Geoff Collyer via Arnold Robbins.
56653
56654 2003-11-17  Bruno Haible  <bruno@clisp.org>
56655
56656         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56657         (Depends-on): Add xsize.
56658
56659 2003-11-17  Bruno Haible  <bruno@clisp.org>
56660
56661         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56662
56663 2003-11-17  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/vasnprintf.c (alloca): Remove fallback definition.
56666         (freea): Remove definition.
56667         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56668         Reported by Paul Eggert.
56669
56670 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56671             Bruno Haible  <bruno@clisp.org>
56672
56673         Protect against address arithmetic overflow.
56674         * lib/printf-args.h: Include stddef.h.
56675         (arguments): Change type of field 'count' to size_t.
56676         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56677         'unsigned int' where appropriate.
56678         * lib/printf-parse.h: Include sys/types.h.
56679         (char_directive): Change type of *arg_index fields to ssize_t.
56680         (char_directives): Change type of fields 'count', max_*_length to
56681         size_t.
56682         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56683         (SSIZE_MAX): Define fallback value.
56684         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56685         instead of 'int' where appropriate. Check a_allocated, d_allocated
56686         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56687         * lib/vasnprintf.c: Include xsize.h.
56688         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56689         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56690         overflow. Avoid wraparound when converting a width or precision from
56691         decimal to binary.
56692
56693 2003-11-16  Bruno Haible  <bruno@clisp.org>
56694
56695         Update from GNU gettext.
56696         * lib/printf-parse.c: Generalize to it can be compiled for wide
56697         strings.
56698         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56699         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56700         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56701         SNPRINTF): New macros.
56702         Don't include <alloca.h> if the file is used inside libintl.
56703         (local_wcslen): New function, for Solaris 2.5.1.
56704         (VASNPRINTF): Use it instead of wcslen.
56705
56706 2003-11-16  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/xsize.h (xmax): New function.
56709         (xsum, xsum3, xsum4): Declare as "pure" functions.
56710
56711 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56712
56713         * modules/xalloc (Files): Undo latest change, since xalloc.h
56714         no longer needs SIZE_MAX or PTRDIFF_MAX.
56715
56716 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56717
56718         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56719         gl_PTRDIFF_MAX.
56720
56721 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56722
56723         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56724         "return", to pacify some unknown compiler.  Problem reported
56725         by Joerg Schilling.
56726
56727 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56728
56729         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56730         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56731         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56732         heuristic is just as accurate as far as we know, and it removes a
56733         dependency on size_max.m4 and ptrdiff_max.m4.
56734
56735 2003-11-11  Bruno Haible  <bruno@clisp.org>
56736
56737         * modules/xsize (Files): Add m4/size_max.m4.
56738         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56739
56740 2003-11-11  Bruno Haible  <bruno@clisp.org>
56741
56742         * m4/size_max.m4: New file.
56743         * m4/ptrdiff_max.m4: New file.
56744         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56745         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56746         (gl_XALLOC): Invoke it.
56747
56748 2003-11-11  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56751         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56752         defined.
56753
56754 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56755
56756         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56757         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56758         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56759         From Bruno Haible.
56760         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56761         not (size_t) -1, since it's defined here.
56762
56763 2003-11-09  Karl Berry  <karl@gnu.org>
56764
56765         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56766
56767 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56768
56769         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56770         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56771         Reject sizes of exactly SIZE_MAX bytes.
56772         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56773         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56774
56775 2003-11-05  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56778         SIZE_MAX defined in <limits.h> on Solaris.
56779
56780 2003-11-04  Jim Meyering  <jim@meyering.net>
56781
56782         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56783         variable names, rather than @VAR@.
56784         * modules/poll: Likewise.
56785
56786 2003-11-04  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/xsize: New file.
56789         * modules/linebreak: Depend on xsize.
56790         * MODULES.html.sh (func_all_modules): Add xsize.
56791
56792 2003-11-04  Bruno Haible  <bruno@clisp.org>
56793
56794         * m4/xsize.m4: New file.
56795
56796 2003-11-04  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/xsize.h: New file.
56799         * lib/linebreak.c: Include xsize.h.
56800         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56801         argument for overflow.
56802         Suggested by Paul Eggert.
56803
56804 2003-11-03  Karl Berry  <karl@gnu.org>
56805
56806         * config/config.{guess,sub}: update from config.
56807
56808 2003-11-03  Jim Meyering  <jim@meyering.net>
56809
56810         * modules/userspec (lib_SOURCES): Add userspec.h.
56811         (Include): Add "userspec.h".
56812         Improve description.
56813
56814 2003-11-03  Jim Meyering  <jim@meyering.net>
56815
56816         * lib/userspec.c: Include "userspec.h".
56817         * lib/userspec.h: New file.
56818
56819 2003-11-03  Bruno Haible  <bruno@clisp.org>
56820
56821         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56822
56823 2003-11-03  Bruno Haible  <bruno@clisp.org>
56824
56825         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56826         available, to avoid (extremely rare) race condition.
56827         Suggested by Paul Eggert.
56828
56829 2003-11-02  Karl Berry  <karl@gnu.org>
56830
56831         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56832
56833 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56834
56835         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56836         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56837         (read_filesystem_list): Set and use me_type_malloced.
56838         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56839         whatever the type happens to be), for brevity and consistency.
56840         Check for size calculation overflow on Alphas running OSF/1.
56841
56842 2003-10-31  Jim Meyering  <jim@meyering.net>
56843
56844         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56845
56846         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56847
56848 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56849             Bruno Haible  <bruno@clisp.org>
56850
56851         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56852         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56853
56854 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56857         netbsd*-gnu*.  Suggested by Robert Millan.
56858
56859 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56860
56861         * modules/group-member: Depend on stdbool.
56862
56863 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56864
56865         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56866
56867 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56868
56869         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56870         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56871         after the 'gnu' in these cases.  This fixes some bugs in the
56872         previous change, and is based on suggestions by Robert Millan.
56873
56874 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56875
56876         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56877         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56878         no longer needed.
56879         * lib/quotearg.c (quotearg_n_options): Use it.
56880         * lib/group-member.c: Include <stdbool.h>.
56881         (free_group_info): Arg is now const *; don't free arg.
56882         (get_group_info): Now returns bool and accepts struct group_info *,
56883         rather than returning a malloc'ed struct group_info *.
56884         All uses changed.  Check for overflow in internal size calculation.
56885
56886         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56887         rather than xmalloc/xrealloc.
56888         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56889         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56890         conformance bug: the old code used a pointer after freeing the
56891         storage that it addressed.
56892         * lib/hash.c (hash_initialize): Simplify the code by using
56893         xalloc_oversized rather than doing it by hand.
56894         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56895         the buffer preserved.  Use free and xmalloc instead.
56896         * lib/quotearg.c (quotearg_n_options): Likewise.
56897         Use a simpler test for size overflow.  Don't use xalloc_oversized
56898         because unsigned int might be wider than size_t (!); this suggests
56899         that we should switch from unsigned int to size_t for slot numbers.
56900
56901 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56902
56903         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56904         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56905         NetBSD kernels.  Requested by Richard Stallman.
56906
56907 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56908
56909         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56910         to allocate the returned structure.  Do not allocate a subarray,
56911         as x2nrealloc will do that.
56912         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56913         instead of xnrealloc.
56914         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56915
56916 2003-10-27  Bruno Haible  <bruno@clisp.org>
56917
56918         * lib/stdbool_.h: Better support for BeOS.
56919
56920 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56921
56922         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56923         now uses inline.
56924
56925 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56926
56927         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56928         callers that want to do their own size-overflow checking.  Include
56929         <stdbool.h>, since xalloc_oversized returns bool.
56930         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56931         to use xalloc_oversized.
56932
56933         Add two functions x2realloc, x2nrealloc, for programs that grow
56934         arrays dynamically by doubling their sizes.
56935         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56936         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56937         New functions.
56938
56939         Port to C99 semantics for 'inline' of external functions.
56940         Bug reported by Bruno Haible.
56941         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56942         with the old contents of xnmalloc.
56943         (xnmalloc, xmalloc): Use it.
56944         (xnrealloc_inline): New static inline function,
56945         with the old contents of xnrealloc.
56946         (xnrealloc, xrealloc): Use it.
56947
56948         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56949         that.
56950
56951 2003-10-26  Karl Berry  <karl@gnu.org>
56952
56953         * config/srclist.txt (COPYING.DOC): no longer available from
56954         /gd/gnuorg; don't know where the ultimate source is.
56955
56956 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56957
56958         Fix several address-calculation bugs in the hash modules,
56959         plus some minor code cleanup.
56960
56961         * lib/hash.h: Include <stdbool.h>, for bool.
56962         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56963         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56964         hash_get_n_entries, hash_get_max_bucket_length,
56965         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56966         hash_rehash): Use size_t rather than unsigned.
56967         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56968         hash_get_n_buckets_used, hash_get_n_entries,
56969         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56970         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56971         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56972         Likewise.
56973         (SIZE_MAX): Define if not defined.
56974         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56975         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56976         hash_print):
56977         Use const * when possible.
56978         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56979         (check_tuning): Fix bug: if tuning parameters were very close to
56980         0 or 1, rounding errors could have caused subscript violations.
56981         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56982         (hash_initialize): Add 'fail:' label
56983         to free table and return NULL, and use it to simplify code.
56984         Use calloc rather than clearing the storage ourself.
56985         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56986         buffer size calculations.
56987         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56988         Include <stddef.h>, for size_t.
56989         * lib/hash-pjw.c (hash_pjw): Likewise.
56990         Switch to method described by Bruno Haible.
56991         Include <limits.h>, for CHAR_BIT.
56992         (SIZE_BITS): New macro.
56993
56994 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56995
56996         * m4/getline.m4 (AM_FUNC_GETLINE):
56997         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56998         hosts.  Problem reported by Derek Robert Price in
56999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57000         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57001         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57002
57003 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57004
57005         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57006         ceiling the allocation at NMAX bytes rather than silently
57007         discarding input bytes before NMAX is reached.  This makes
57008         a difference only if NMAX exceeds SIZE_MAX / 2.
57009
57010         * lib/obstack.c: Merge from glibc.
57011         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57012         Add libc_hidden_def (_obstack_newchunk).
57013         (_obstack_free) [! defined _LIBC]: Remove.
57014         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57015         a clone of the function body.
57016         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57017         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57018
57019         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57020         glibc.
57021         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57022         arg to memcpy.
57023
57024         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57025         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57026         Don't use lvalue casts, as GCC plans to remove support for them
57027         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57028         was also present in the non-GCC version, indicating that this
57029         code had always been buggy and had never been widely used.
57030         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57031         Use the fast variant of each macro, rather than copying the
57032         definiens of the fast variant; that way, we'll be more likely to
57033         catch future bugs in the fast variants.
57034
57035 2003-10-20  Bruno Haible  <bruno@clisp.org>
57036
57037         * modules/wait-process: New file.
57038         * MODULES.html.sh (func_all_modules): Add wait-process.
57039
57040 2003-10-20  Bruno Haible  <bruno@clisp.org>
57041
57042         * m4/wait-process.m4: New file.
57043
57044 2003-10-20  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/wait-process.h: New file, from GNU gettext.
57047         * lib/wait-process.c: New file, from GNU gettext.
57048
57049 2003-10-19  Jim Meyering  <jim@meyering.net>
57050
57051         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57052         HPUX 10.20.
57053
57054 2003-10-18  Karl Berry  <karl@gnu.org>
57055
57056         * config/config.guess: update from config.
57057
57058 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57059
57060         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57061         (getgroups): First arg is int, not size_t.
57062         Don't let 'free' mangle errno.
57063
57064 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57065
57066         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57067
57068 2003-10-16  Karl Berry  <karl@gnu.org>
57069
57070         * config/config.{guess,sub}: update from config.
57071
57072 2003-10-16  Jim Meyering  <jim@meyering.net>
57073
57074         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57075         memcpy.
57076
57077 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57078
57079         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57080         (SIZE_MAX): Remove.
57081         (new_exclude, add_exclude_file): Initial size no longer needs to
57082         be a power of 2.
57083         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57084         our own address arithmetic overflow checking.
57085
57086         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57087         (fnmatch): Do not alloca more than 2000 wide characters;
57088         instead, use malloc for large buffers.
57089         Check for address arithmetic overflow, and return -1
57090         with errno set to ENOMEM in that case.
57091         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57092         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57093         instead, return -1.  Check for address arithmetic overflow.
57094
57095 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57096
57097         Handle invalid suffixes and overflow independently, so that
57098         callers can treat them independently as needed.  Fix some bugs in
57099         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57100         suffix for a human-readable blocksize.  The major caller-visible
57101         change is the addition of a new
57102         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57103         that both overflow and suffix chars were found.
57104
57105         * lib/human.c (humblock): Don't check separately for invalid suffix
57106         char; that is xstrtoumax's job (now that its bug is fixed).
57107         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57108         INTMAX_MAX]: New macros.
57109         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57110         TYPE_MAXIMUM): New macros.
57111         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57112         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57113         if overflow occurs, as it's what __strtol does and it's more useful
57114         in practice.
57115         (__xstrtol): If __strtol reports some error other than ERANGE,
57116         reflect it to the caller as LONGINT_INVALID.  If it reports
57117         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57118         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57119         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57120         value.
57121         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57122         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57123         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57124         [defined UINTMAX_MAX]: New macros.
57125
57126 2003-10-14  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57129
57130 2003-10-14  Bruno Haible  <bruno@clisp.org>
57131
57132         * m4/sig_atomic_t: New file, from GNU gettext.
57133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57134
57135 2003-10-14  Bruno Haible  <bruno@clisp.org>
57136
57137         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57138         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57139         Also use volatile where needed.
57140
57141 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57142
57143         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57144         Change maintainer from Bruno Haible to 'all'.
57145
57146 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57147
57148         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57149
57150 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57151
57152         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57153         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57154         and define in terms of the other primitives.
57155         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57156         (SIZE_MAX): Define if not already defined.
57157         (array_size_overflow): New function.
57158         (xalloc_die): Abort instead of exiting if 'error' returns.
57159         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57160         (xmalloc, xrealloc): Use them.
57161         (xcalloc): Check for address arithmetic overflow.
57162         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57163         a bit faster than strcpy.
57164
57165 2003-10-10  Simon Josefsson  <jas@extundo.com>
57166
57167         * modules/argp (Depends-on): Add restrict and strcase.
57168
57169 2003-10-10  Simon Josefsson  <jas@extundo.com>
57170
57171         * m4/argp.m4: Add AC_C_INLINE.
57172
57173 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57174
57175         Merge getpass from libc, plus a few fixes.
57176
57177         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57178         Include <stdbool.h>.
57179         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57180         __fsetlocking to empty.
57181         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57182         do include <bits/libc-lock.h>.
57183         Do not include <fcntl.h>; not needed.
57184         [_LIBC]: Include <wchar.h>.
57185         (NOTCANCEL_MODE): New macro.
57186         (flockfile, funlockfile) [_LIBC]: New macros.
57187         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57188         [!_LIBC]: New macros.
57189         (call_fclose): New function.
57190         (getpass): Use it.  Save tty stream separately; this simplifies the
57191         code and makes it more reliable if stdin happens to equal stdout.
57192         Invoke __fsetlocking on tty.
57193         Handle thread cancellation if needed.
57194         Namespace cleanup (use __tcgetattr, __getline).
57195         Use bool for Booleans.
57196         [USE_IN_LIBIO]: Handle wide streams.
57197         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57198         stream might go where.
57199
57200         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57201         doesn't have to include <stdio.h> before us.
57202         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57203         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57204         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57205         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57206         if not declared, so that we can use getpass.c code from libc without
57207         rewriting it.
57208         (flockfile, ftrylockfile, funlockfile): New macros.
57209
57210 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57211
57212         * modules/getpass: Depend on stdbool.
57213
57214 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57215
57216         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57217
57218 2003-10-07  Karl Berry  <karl@gnu.org>
57219
57220         * config/config.{guess,sub}: update from config.
57221
57222 2003-10-06  Jim Meyering  <jim@meyering.net>
57223             Bruno Haible  <bruno@clisp.org>
57224
57225         This lets translators provide better translations for the
57226         "Written by ..." part of --version output.
57227         * lib/version-etc.h: Include stdarg.h.
57228         (version_etc_copyright): Declare as readonly.
57229         (version_etc): Make this function variadic with a NULL-terminated list
57230         of author name strings.
57231         (version_etc_va): New declaration.
57232         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57233         (version_etc_copyright): Declare as readonly.
57234         (version_etc_va): New function. Provide a different translatable string
57235         for each possible number of authors < 10. Abbreviate when there are 10
57236         authors or more.
57237         (version_etc): Make this function variadic. Call version_etc_va.
57238         Suggestion from Gary V. Vaughan.
57239
57240         * lib/long-options.h (parse_long_options): Change prototype: the
57241         authors string is moved to the end and becomes variadic.
57242         * lib/long-options.c: Include stdarg.h.
57243         (parse_long_options): Make this function variadic, too.
57244         Call version_etc_va, not version_etc.
57245
57246 2003-10-06  Bruno Haible  <bruno@clisp.org>
57247
57248         * modules/version-etc-2: Remove file.
57249         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57250
57251 2003-10-06  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/fatal-signal: New file.
57254         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57255
57256 2003-10-06  Bruno Haible  <bruno@clisp.org>
57257
57258         * m4/fatal-signal.m4: New file.
57259         * m4/signalblocking.m4: New file, from GNU gettext.
57260
57261 2003-10-06  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/version-etc-2.h: Remove file.
57264         * lib/version-etc-2.c: Remove file.
57265
57266 2003-10-06  Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/fatal-signal.h: New file, from GNU gettext.
57269         * lib/fatal-signal.c: New file, from GNU gettext.
57270
57271 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57272
57273         * README: Rework advice for preventing empty .o files.
57274         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57275         not <sys/types.h>.
57276
57277 2003-10-04  Karl Berry  <karl@gnu.org>
57278
57279         * lib/argp*: update from libc.
57280
57281 2003-10-04  Karl Berry  <karl@gnu.org>
57282
57283         * config/config.{guess,sub}: update from config.
57284
57285 2003-10-02  Bruno Haible  <bruno@clisp.org>
57286
57287         * modules/lchown (Include): Add lchown.h.
57288         * modules/time_r (Include): Use "..." syntax.
57289         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57290
57291 2003-10-01  Simon Josefsson  <jas@extundo.com>
57292
57293         * MODULES.html.sh (func_all_modules): Move gethostname from section
57294         'based on' to section 'lacking' POSIX:2001.
57295
57296 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57297
57298         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57299         to output mode on the same stream.
57300
57301 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57302
57303         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57304         Fix arg typo in previous patch.
57305
57306 2003-09-28  Jim Meyering  <jim@meyering.net>
57307
57308         * lib/error.c: Correct cpp indentation.
57309
57310 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57311
57312         * modules/free: New file.
57313
57314 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57315
57316         * m4/free.m4: New file.
57317
57318 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57319
57320         * lib/minmax.h (MIN, MAX)
57321         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57322         Omit the special code that used __typeof__, since we worry that
57323         it could be more trouble than it's worth.  See:
57324         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57325         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57326
57327         * lib/free.c: New file.
57328
57329 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57330
57331         Trivial fixes to Makefile.am parts of module listings.
57332         * modules/strstr: Append strstr.h to lib_SOURCES.
57333         * modules/strcase: Likewise, for strcase.h.
57334
57335 2003-09-27  Karl Berry  <karl@gnu.org>
57336
57337         * config/mkinstalldirs: update from automake.
57338
57339 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57340
57341         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57342         (error_tail): Do not loop, reallocating temporary buffer, since
57343         the output cannot contain more wide characters than the input
57344         contains bytes, the size must be big enough already.  This avoids
57345         one potential size overflow calculation.  Check for size overflow
57346         when calculating temporary buffer size.  Free temporary buffer
57347         when done, if it was allocated with malloc; this plugs a memory
57348         leak.  Remove casts from void * to pointers, that are no longer
57349         needed now that we're assuming C89 or better.
57350
57351         Merge error changes from glibc.
57352
57353         * lib/error.c, error.h: Update copyright notice header to match glibc.
57354         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57355         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57356         Disable cancellation while printing error.
57357         * lib/error.h: Prepend __ to parameter names.
57358
57359 2003-09-26  Jim Meyering  <jim@meyering.net>
57360
57361         * lib/error.c (error_tail): Move some declarations
57362         into inner scope where the local variables are used.
57363
57364 2003-09-26  Bruno Haible  <bruno@clisp.org>
57365
57366         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57367         stpncpy().
57368         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57369
57370 2003-09-26  Bruno Haible  <bruno@clisp.org>
57371
57372         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57373         (stpncpy): Define as alias for gnu_stpncpy.
57374         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57375
57376 2003-09-25  Simon Josefsson  <jas@extundo.com>
57377
57378         * lib/xgetdomainname.h: New file.
57379         * lib/xgetdomainname.c: New file.
57380
57381 2003-09-25  Simon Josefsson  <jas@extundo.com>
57382             Bruno Haible  <bruno@clisp.org>
57383
57384         * modules/getdomainname: New file.
57385         * modules/xgetdomainname: New file.
57386         * MODULES.html.sh (func_all_modules): Add getdomainname,
57387         xgetdomainname.
57388
57389 2003-09-25  Simon Josefsson  <jas@extundo.com>
57390             Bruno Haible  <bruno@clisp.org>
57391
57392         * m4/getdomainname.m4: New file.
57393
57394 2003-09-25  Simon Josefsson  <jas@extundo.com>
57395             Bruno Haible  <bruno@clisp.org>
57396
57397         * lib/getdomainname.h: New file.
57398         * lib/getdomainname.c: New file.
57399
57400 2003-09-25  Karl Berry  <karl@gnu.org>
57401
57402         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57403
57404 2003-09-25  Karl Berry  <karl@gnu.org>
57405
57406         * config/install-sh: update from automake.
57407
57408 2003-09-25  Bruno Haible  <bruno@clisp.org>
57409
57410         * modules/version-etc-2: New file, from modules/version-etc with
57411         modifications.
57412         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57413
57414 2003-09-25  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57417         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57418
57419 2003-09-24  Simon Josefsson  <jas@extundo.com>
57420
57421         * modules/xgethostname: Add xgethostname.h.
57422
57423 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57424
57425         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57426         the buffer associated with the argument.  Bug reported by
57427         Simon Josefsson.
57428
57429 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57430
57431         * README: Document assumptions that 'int' is at least 32 bits
57432         wide, that integer arithmetic is 2's complement without overflow,
57433         that there are no holes in integer values, that adding sizes of
57434         two nonoverlapping objects can't overflow, and that all-bits-zero
57435         yields scalar zero.  Fix spelling and capitalization typos.
57436
57437 2003-09-19  Karl Berry  <karl@gnu.org>
57438
57439         * lib/argp.h: update from libc.
57440
57441 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57442
57443         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57444         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57445         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57446
57447 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57448
57449         * gnulib-tool: Use "test -h", not "test -L", for portability
57450         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57451         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57452         (sed_extract_prog): Issue s commands one-by-one, rather than
57453         using \| in one s command.
57454
57455 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57456
57457         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57458         input error, instead of returning NULL the next time we are called
57459         (and therefore losing track of errno).
57460
57461 2003-09-16  Bruno Haible  <bruno@clisp.org>
57462
57463         * gnulib-tool (func_create_testdir): Warn about duplicated
57464         dependencies.
57465
57466 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57467
57468         * modules/argmatch, modules/fatal, modules/obstack,
57469         modules/xalloc, modules/xgethostname: Sort dependencies by
57470         importance, not alphabetically.
57471
57472 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57473
57474         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57475         fails, so that the caller gets the proper errno.
57476
57477         * lib/readutmp.c (read_utmp): Likewise.
57478         Check for fstat error.  Close stream and free storage
57479         when failing.
57480
57481 2003-09-14  Karl Berry  <karl@gnu.org>
57482
57483         * config/srclist.txt (strdup.c): disable for c89 changes.
57484
57485 2003-09-14  Jim Meyering  <jim@meyering.net>
57486
57487         * lib/getloadavg.c: Correct cpp indentation.
57488         * lib/strdup.c: Likewise.
57489         * lib/vasnprintf.c: Likewise.
57490
57491 2003-09-14  Bruno Haible  <bruno@clisp.org>
57492
57493         * modules/fwriteerror: New file.
57494         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57495
57496 2003-09-14  Bruno Haible  <bruno@clisp.org>
57497
57498         * lib/fwriteerror.h: New file.
57499         * lib/fwriteerror.c: New file.
57500
57501 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57502
57503         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57504         modules/xgethostname, modules/xalloc: Depend on exit.
57505
57506 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57507
57508         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57509
57510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57511         and AC_MINIX, too, so that their extensions are available.
57512
57513         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57514         This macro has been superseded by gl_BACKUPFILE.
57515
57516         More patches to assume C89 or better.
57517
57518         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57519
57520         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57521         unconditionally.
57522         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57523         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57524         Include <string.h>, <stdlib.h> unconditionally.
57525         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57526         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57527         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57528         headers or for string.h.
57529         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57530         or strtoul.
57531
57532         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57533         headers.
57534         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57535         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57536         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57537         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57538         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57539         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57540         memcpy, memset.
57541         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57542         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57543         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57544         strtol.
57545         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57546         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57547         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57548         strtoul.
57549
57550 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57551
57552         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57553         * lib/obstack.c [!defined _LIBC]: Likewise.
57554         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57555         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57556         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57557
57558         More changes to assume C89 or better.
57559
57560         * lib/error.c (error_tail): Assume vprintf.
57561
57562         * lib/argmatch.c (getenv): Remove decl.
57563         * lib/progreloc.c (get_full_program_name): Define via prototype.
57564         * lib/setenv.c (clearenv): Likewise.
57565         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57566         needed.
57567         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57568         (malloc, memcpy): Remove decls.
57569         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57570         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57571         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57572         (memcpy): Remove macro.
57573         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57574         (__P): Remove.  All uses removed.
57575         (PTR): Remove.  All uses changed to void *.
57576         (CHAR_BIT, NULL): Remove.
57577         (spaces, zeros, memset_space, memset_zero)
57578         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57579         Remove.
57580         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57581         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57582         Define with prototype.
57583         Remove now-unnecessary prototype decl.
57584         (extra_args_spec): Assume ANSI C.  All uses changed.
57585         (extra_args_spec_iso): Remove.
57586         (my_strftime, emacs_strftimeu): Define via prototype.
57587         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57588         unconditionally.
57589         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57590         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57591         (strtoul, strtol): Remove decls.
57592         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57593         LONG_MAX): Remove.
57594         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57595         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57596         (LOCALE_PARAM_PROTO): New macro.
57597         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57598         (INTERNAL (strtol), strtol): Define with a prototype.
57599         (PARAMS): Remove.  All uses removed.
57600         * lib/tempname.c: Include <string.h> unconditionally.
57601         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57602         * lib/xgethostname.c (main): Define with a prototype.
57603         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57604         Include <stdlib.h> unconditionally.
57605         (calloc, malloc, realloc, free): Remove decls.
57606         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57607         Include <stdlib.h> unconditionally.  Sort include file names.
57608         (strtod): Remove.
57609         (xstrtod): Define with a prototype.
57610         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57611         (strtol, strtoul): Remove decls.
57612
57613 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57614
57615         More patches to assume C89 or better.
57616         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57617         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57618         string.h, memchr, STDC_HEADERS.
57619
57620 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57621
57622         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57623         Include <stdlib.h>, <string.h> unconditionally.
57624         Remove now-unnecessary cast to char *.
57625         * lib/strnlen.c: Include <string.h> unconditionally.
57626         * lib/yesno.c (yesno): Define with a prototype.
57627
57628 2003-09-11  Bruno Haible  <bruno@clisp.org>
57629
57630         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57631
57632 2003-09-10  Jim Meyering  <jim@meyering.net>
57633
57634         * lib/error.c: Correct indentation of cpp directives.
57635
57636 2003-09-10  Bruno Haible  <bruno@clisp.org>
57637
57638         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57639         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57640         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57641         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57642         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57643         <stdlib.h> and <string.h> checks.
57644         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57645         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57646
57647 2003-09-10  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/strcspn.c: Include <string.h> unconditionally.
57650         * lib/strpbrk.c: Include <string.h> unconditionally.
57651         * lib/strstr.c: Include <string.h> unconditionally.
57652         * lib/unicodeio.c: Include <string.h> unconditionally.
57653         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57654         * lib/unsetenv.c: Likewise.
57655         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57656         * lib/yesno.c: Include <stdlib.h> unconditionally.
57657         (rpmatch): Add prototype.
57658
57659 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57660
57661         More patches to assume C89 or better.
57662         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57663         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57664         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57665         or for string.h.
57666         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57667         stdlib.h.
57668         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57669         C headers.
57670         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57671         string.h.
57672         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57673         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57674         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57675         or for string.h.
57676         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57677         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57678         C headers.
57679         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57680         memcpy.
57681         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57682         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57683         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57684         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57685         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57686         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57687         string.h, free.
57688         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57689         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57690         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57691         C headers, or for string.h.
57692         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57693         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57694         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57695         headers, memory.h, stdlib.h, string.h, strings.h.
57696         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57697         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57698         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57699         strchr.
57700         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57701         headers, memory.h, string.h.
57702         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57703         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57704         free.
57705         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57706         headers.
57707         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57708         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57709         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57710         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57711         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57712
57713 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57714
57715         More K&R removal.
57716
57717         * lib/acosl.c (main): Use a prototype.
57718         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57719         tanl.c: Likewise.
57720
57721         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57722
57723         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57724         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57725         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57726         with a prototype.
57727         * lib/getopt.c (const): Remove macro.
57728         Include <string.h> unconditionally.
57729         (my_index): Remove; all uses changed to strchr.
57730         (strlen): Remove decl.
57731         (exchange): Remove forward decl; no longer needed.
57732         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57733         Define with prototype.
57734         * lib/getopt1.c (const): Remove macro.
57735         (getopt_long, getopt_long_only, main): Define with prototype.
57736
57737         * lib/getugroups.c: Include <string.h> unconditionally.
57738
57739         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57740         (getusershell, setusershell, endusershell, readname, main):
57741         Define with prototypes.
57742
57743         * lib/group-member.c: Include group-member.h first.
57744         Include <stdlib.h> unconditionally.
57745
57746         * lib/hard-locale.c: Include hard-locale.h first.
57747         Include <stdlib.h>, <string.h> unconditionally.
57748
57749         * lib/hash.c (free, malloc): Remove decls.
57750         Include <stdlib.h> unconditionally.
57751
57752         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57753         (getenv): Do not declare.
57754
57755         * lib/idcache.c: Include <string.h> unconditionally.
57756
57757         * lib/long-options.c: Include long-options.h first, to test interface.
57758         Include <stdlib.h> unconditionally.
57759
57760         * lib/makepath.c: Include makepath.h first, to test interface.
57761         Include <stdlib.h> and <string.h> unconditionally.
57762
57763         * lib/linebuffer.c: Include <stdlib.h>.
57764         (free): Remove decl.
57765
57766         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57767         stddef.h. rpl_malloc returns void *, not char *.
57768         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57769         prototype.
57770
57771         * lib/md5.h: Include <limits.h> unconditionally.
57772         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57773         (__P): Remove; all uses removed.
57774         * lib/md5.c: Include "md5.h" first.
57775         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57776         md5_buffer, md5_process_bytes, md5_process_block):
57777         Define with prototypes.
57778         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57779         * lib/sha.c: Include "sha.h" first.
57780         Include <stdlib.h>, <string.h> unconditionally.
57781
57782         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57783         * lib/memcmp.c (__ptr_t): Likewise.
57784         * lib/memrchr.c (__ptr_t): Likewise.
57785         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57786         Include <string.h> unconditionally.
57787         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57788         * lib/memchr.c: Include <stdlib.h> unconditionally.
57789         * lib/memchr.c (LONG_MAX): Remove.
57790         * lib/memrchr.c (LONG_MAX): Likewise.
57791         * lib/memchr.c (__memchr): Define via a prototype.
57792         * lib/memrchr.c (__memrchr): Likewise.
57793         * lib/memcmp.c (__P): Remove, and remove all uses.
57794         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57795         Remove forward decls; no longer needed.
57796         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57797         Use types required by C89 in prototype.
57798
57799         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57800         * lib/savedir.c: Likewise.
57801         * lib/mkdir.c (free): Remove decl.
57802         * lib/rmdir.c (rmdir): Define with a prototype.
57803         * lib/savedir.c: Include savedir.h first, to test interface.
57804
57805         * lib/mktime.c (STDC_HEADERS): Remove.
57806         Include <stdlib.h>, <string.h> unconditionally.
57807
57808         * lib/modechange.c: Include <stdlib.h> unconditionally.
57809         (malloc): Remove decl.
57810
57811         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57812         (free): Remove decl.
57813
57814         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57815         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57816         (This type really should be intptr_t, but that's a C99ism.)
57817         (_obstack_memcpy): Remove: all uses changed to memcpy.
57818         Include <string.h> unconditionally.
57819         (struct obstack): Assume __STDC__ for types of members
57820         chunkfun, freefun, extra_arg.
57821         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57822         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57823         obstack_begin, obstack_specify_allocation,
57824         obstack_specify_allocation_with_arg, obstack_chunkfun,
57825         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57826         Remove unprototyped decls and the macros that use them.
57827         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57828         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57829         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57830         (defined __STDC__ && __STDC__)]:
57831         Remove nonprototyped code.
57832         Include <stdlib.h> unconditionally.
57833         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57834         _obstack_allocated_p, _obstack_free, obstack_free,
57835         _obstack_memory_used, print_and_abort):
57836         Define using prototypes.
57837         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57838         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57839         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57840         obstack_next_free, obstack_object_size, obstack_room) [0]:
57841         Remove unused, unprototyped code.
57842
57843         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57844
57845         * lib/physmem.c (physmem_total, physmem_available, main): Define
57846         with prototypes.
57847
57848         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57849         (main): Define with a prototype.
57850
57851         * lib/posixver.c (getenv): Remove decl.
57852
57853         * lib/putenv.c (malloc): Returns void *, not char *.
57854         Include <string.h> unconditionally.
57855         (strchr, memcpy, NULL): Do not define.
57856
57857         * lib/readtokens.c: Include readtokens.h first, to test interface.
57858         Include <stdlib.h>, <string.h> unconditionally.
57859         (init_tokenbuffer): Define with a prototype.
57860
57861         * lib/regex.c (PARAMS): Remove.  All uses removed.
57862         All uses of _RE_ARGS removed, too.
57863         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57864         unconditionally.
57865         (bzero): Assume memset exists.
57866         (memcmp, memcpy, NULL): Remove.
57867         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57868         char, or assignments to local vars of type signed char.
57869         (init_syntax_once, PREFIX(extract_number_and_incr),
57870         PREFIX(print_partial_compiled_pattern),
57871         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57872         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57873         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57874         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57875         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57876         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57877         wcs_compile_range, byte_compile_range, truncate_wchar,
57878         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57879         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57880         count_mbs_length, wcs_re_match_2_internal,
57881         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57882         PREFIX(alt_match_null_string_p),
57883         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57884         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57885         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57886         now-unnecessary declaration, if any.
57887         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57888         regcomp, regexec):
57889         Remove now-unnecessary casts among pointer types.
57890         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57891
57892         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57893         (free): Remove decl.
57894
57895         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57896
57897         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57898         (free): Remove decl.
57899
57900         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57901         * lib/xgetcwd.c: Likewise.
57902
57903         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57904         (free): Remove decl.
57905
57906         * lib/strchrnul.c (strchrnul): Define with a prototype.
57907         Fix bug: c_in was not converted to char before searching.
57908
57909         The following changes are not K&R related:
57910
57911         * lib/group-member.h: Include <sys/types.h>, so that this file is
57912         self-contained.
57913         * lib/makepath.h: Likewise.
57914
57915         * lib/getusershell.c (readname, default_index, line_size, readname):
57916         Use size_t, not int, for sizes.
57917         (readname): If the size overflows, report an error instead of
57918         looping forever.
57919
57920 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57921
57922         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57923         libc.
57924
57925 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57926
57927         * README: New section: portability guidelines.
57928
57929 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57930
57931         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57932         C89 spec.
57933
57934 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57935
57936         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57937
57938 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57939
57940         Assume C89 or better; remove K&R cruft.
57941         A few of these changes were first proposed by Derek Robert Price
57942         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57943
57944         * lib/addext.c: Include <string.h> unconditionally.
57945         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57946         Don't declare getenv or malloc.
57947
57948         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57949         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57950         (NULL): Remove.
57951         (find_stack_direction, alloca): Use prototypes.
57952
57953         * lib/atexit.c (atexit): Define using a prototype.
57954
57955         * lib/basename.c, dirname.c, stripslash.c:
57956         Include <string.h> unconditionally.
57957
57958         * lib/bcopy.c: Include <stddef.h>.
57959         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57960
57961         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57962
57963         * lib/error.h (error, error_at_line, error_print_progname)
57964         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57965         * lib/error.c: Include error.h first, to check interface.
57966         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57967         (VA_START): Remove; all uses changeed to va_start.
57968         (exit, strerror): Remove decls.
57969         (error_print_progname): Prototype uncondionally.
57970         Don't include <errno.h>; no longer needed.
57971         (private_strerror): Remove.
57972         (error_tail): Always define.
57973         (error, error_at_line): Assume C89 or better; always use prototypes.
57974         * lib/fatal.c: Include "fatal.h" first, to test interface.
57975         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57976         (VA_START): Remove; all uses changed to va_start.
57977         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57978         this case.
57979         (exit): Remove decl.
57980         (fatal): Prototype unconditionally.  Assume va_start works.
57981         Abort at end, to pacify gcc.
57982
57983         * lib/euidaccess.c (main): Define with a prototype.
57984
57985         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57986
57987         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57988
57989         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57990         prototypes.
57991         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57992         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57993         (getenv): Remove decl.
57994         (fnmatch): Define using a prototype.
57995         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57996         (FCT): Define using a prototype.
57997
57998         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57999
58000         * lib/gethostname.c: Include <stddef.h>.
58001         (gethostname): Define with prototype.  Length is size_t, not int.
58002
58003 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58004
58005         Assume C89 or better; remove K&R cruft.
58006         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58007         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58008         string.h, getenv, malloc.
58009         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58010         headers.
58011         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58012         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58013         do not check for strerror.
58014         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58015         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58016         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58017         do not check for doprnt or vprintf.
58018         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58019         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58020
58021 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58022
58023         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58024         getversion.c should have been removed then, but was accidentally
58025         preserved.
58026
58027         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58028         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58029
58030 2003-09-08  Karl Berry  <karl@gnu.org>
58031
58032         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58033                 config, forget about prep.
58034
58035         * config/depcomp, missing: update from automake.
58036
58037 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58038
58039         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58041
58042 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58043
58044         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58045         copy_tm_result.  Bug reported by Simon Josefsson in
58046         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58047
58048 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58049
58050         * m4/time_r.m4: New file.
58051         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58052         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58053         is. Check for timegm declaration.
58054         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58055         Do not check for gmtime_r.
58056         Replace mktime if __mktime_internal does not exist and if mktime
58057         hasn't been replaced already.
58058
58059 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58060
58061         * lib/time_r.c, lib/time_r.h: New files.
58062
58063         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58064         __localtime_r.
58065         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58066         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58067
58068         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58069         __gmtime_r.
58070         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58071         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58072         Include <time_r.h>.
58073
58074         * lib/timegm.c: Switch to glibc implementation, with the following
58075         changes:
58076         [defined HAVE_CONFIG_H]: Include <config.h>.
58077         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58078         (__mktime_internal) [!defined _LIBC]: New decl.
58079         (__gmtime_r) [!defined _LIBC]: New macro and function.
58080         (timegm): Use a prototype, since gnulib assumes C89.
58081         Do not bother declaring tmp to be const, as it's not really usefu.
58082         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58083         (timegm): Declare only if HAVE_DECL_TIMEGM.
58084
58085 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58086
58087         * MODULES.html.sh (func_all_modules): Add time_r.
58088         * modules/time_r: New file.
58089         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58090         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58091
58092 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58093
58094         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58095         Bug reported by Lute Kamstra in
58096         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58097
58098         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58099         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58100         course with correspondingly smaller numbers for tomorrow and
58101         yesterday.  From Tadayoshi Funaba.  Originally installed into
58102         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58103         coreutils merge?).
58104
58105 2003-08-31  Simon Josefsson  <jas@extundo.com>
58106
58107         * modules/timegm: New file.
58108         * MODULES.html.sh (func_all_modules): Add timegm.
58109
58110 2003-08-31  Simon Josefsson  <jas@extundo.com>
58111
58112         * m4/timegm.m4: New file.
58113
58114 2003-08-31  Simon Josefsson  <jas@extundo.com>
58115
58116         * lib/timegm.h: New file.
58117         * lib/timegm.c: New file.  Based on
58118         wget-1.8.2/src/http.c:mktime_from_utc.
58119
58120 2003-08-31  Karl Berry  <karl@gnu.org>
58121
58122         * lib/argp.h: update from libc.
58123
58124 2003-08-28  Bruno Haible  <bruno@clisp.org>
58125
58126         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58127         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58128         followed by '#define fnmatch fnmatch_posix' gives an error.
58129
58130 2003-08-28  Bruno Haible  <bruno@clisp.org>
58131
58132         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58133         warning on QNX, which defines O_BINARY to 000000.
58134
58135 2003-08-27  Jim Meyering  <jim@meyering.net>
58136
58137         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58138         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58139         would fail after 32.  Reported by Danny Levinson.  Details here:
58140         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58141
58142 2003-08-24  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58145         MSVC7 <stdio.h> is included later.
58146
58147 2003-08-22  Simon Josefsson  <jas@extundo.com>
58148
58149         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58150
58151 2003-08-20  Karl Berry  <karl@gnu.org>
58152
58153         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58154
58155 2003-08-20  Bruno Haible  <bruno@clisp.org>
58156
58157         * modules/progname: New file.
58158         * MODULES.html.sh (func_all_modules): Add progname.
58159
58160 2003-08-20  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/progname.h: New file, from GNU gettext.
58163         * lib/progname.c: New file, from GNU gettext.
58164         * lib/progreloc.c: New file, from GNU gettext.
58165
58166 2003-08-19  Jim Meyering  <jim@meyering.net>
58167
58168         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58169         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58170
58171 2003-08-19  Bruno Haible  <bruno@clisp.org>
58172
58173         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58174         more.
58175
58176 2003-08-19  Bruno Haible  <bruno@clisp.org>
58177
58178         * lib/xstrdup.c: Assume <string.h> exists.
58179
58180 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58181
58182         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58183         in makefile rules.
58184
58185 2003-08-18  Jim Meyering  <jim@meyering.net>
58186
58187         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58188         * m4/lib-ld.m4: Likewise.
58189
58190 2003-08-18  Jim Meyering  <jim@meyering.net>
58191
58192         * lib/setenv.h: Indent nested cpp directive.
58193         * lib/vasnprintf.c: Remove trailing blanks.
58194
58195 2003-08-17  Simon Josefsson  <jas@extundo.com>
58196
58197         * modules/xstrndup: New file.
58198         * MODULES.html.sh (func_all_modules): Add xstrndup.
58199
58200 2003-08-17  Simon Josefsson  <jas@extundo.com>
58201
58202         * modules/argp: Fix autoconf macro name. Add more dependencies.
58203
58204 2003-08-17  Simon Josefsson  <jas@extundo.com>
58205
58206         * m4/xstrndup.m4: New file.
58207
58208 2003-08-17  Simon Josefsson  <jas@extundo.com>
58209
58210         * m4/argp.m4: New file.
58211
58212 2003-08-17  Simon Josefsson  <jas@extundo.com>
58213             Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/xstrndup.h: New file.
58216         * lib/xstrndup.c: New file.
58217
58218 2003-08-17  Bruno Haible  <bruno@clisp.org>
58219
58220         * modules/strndup (Files, Include): Add lib/strndup.h.
58221
58222 2003-08-17  Bruno Haible  <bruno@clisp.org>
58223
58224         * modules/euidaccess (Files): Add lib/euidaccess.h.
58225
58226 2003-08-17  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/strndup.h: New file.
58229
58230 2003-08-17  Bruno Haible  <bruno@clisp.org>
58231
58232         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58233         like AC_GNU_SOURCE.
58234         * modules/extensions (configure.ac): Comment out the invocation of
58235         gl_USE_SYSTEM_EXTENSIONS.
58236
58237 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58238
58239         Merges from coreutils, etc.
58240         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58241         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58242         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58243         fixing a typo.
58244         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58245         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58246
58247 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58248
58249         Document merge from coreutils.
58250         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58251         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58252         * modules/utime: Add m4/utimes-null.m4.
58253
58254 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58255
58256         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58257         space, undoing this 2003-08-12 change:
58258         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58259
58260 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58261
58262         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58263         strtoul.c from libc, undoing this 2003-08-12 change:
58264         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58265
58266 2003-08-16  Jim Meyering  <jim@meyering.net>
58267
58268         Merges from coreutils.
58269         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58270         prefix.  Adjust cache variables similarly.  Create 500 rather than
58271         just 300 files, to exercise bug on Darwin6.5, too.
58272         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58273         $missing_dir.
58274         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58275         AM_SYS_POSIX_TERMIOS.
58276         Reported by mkc@mathdogs.com.
58277         Also change use of $am_cv_sys_posix_termios
58278         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58279         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58280         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58281         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58282         in /proc/mounts until it finds one with matching device number.  This
58283         is unnecessary when the FILE argument *is* a mount point.  No stat call
58284         is necessary in that case.  So, disable the statvfs-testing code on
58285         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58286         as RedHat bug# 84846.
58287         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58288         to 1MB, so as not to render systems with no stack size limit (e.g.,
58289         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58290         Include <unistd.h>.  On some systems,
58291         it is required for the definition of _SC_PAGESIZE.
58292
58293 2003-08-16  Jim Meyering  <jim@meyering.net>
58294
58295         Merge from coreutils.
58296         * lib/xstrtoimax.c: #else #if -> #elif.
58297         * lib/xstrtoumax.c: Likewise.
58298
58299 2003-08-16  Jim Meyering  <jim@meyering.net>
58300
58301         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58302         * m4/utimes.m4: Removed.
58303         * m4/utimes-null.m4: Renamed from utimes.m4.
58304
58305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58306         to 1MB, so as not to render systems with no stack size limit (e.g.,
58307         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58308         Include <unistd.h>.  On some systems,
58309         it is required for the definition of _SC_PAGESIZE.
58310
58311 2003-08-16  Jim Meyering  <jim@meyering.net>
58312         and Paul Eggert  <eggert@cs.ucla.edu>
58313
58314         Merges from coreutils, etc.
58315
58316         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58317         using the latest version from cvs.  This avoids problems with #line
58318         directives using a vendor (Sun) compiler.
58319         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58320         Don't set GETGROUPS_LIB here; now it's
58321         done via getgroups.m4's wrapper function.
58322         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58323         rather than just in sh-util/configure.in, so that the
58324         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58325         same.
58326         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58327         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58328         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58329         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58330         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58331         Remove code that is now done by the newly-required macros.
58332         Append $(EXEEXT) to DF_PROG.
58333         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58334         Do not invoke or require the following here,
58335         since prereq.m4 or some gnulib .m4 now does this for us:
58336         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58337         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58338         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58339         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58340         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58341         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58342         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58343         AC_FUNC_OBSTACK.
58344         Do not replace the following functions, as this is now the job
58345         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58346         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58347         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58348         atexit getpass, strdup, getpagesize.
58349         Replace 'raise'.
58350         Do not check for the following functions, as this is now the job
58351         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58352         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58353         setregid.
58354         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58355         Check for sys/sysctl.h.
58356         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58357         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58358         of checking for ssize_t ourselves.
58359
58360         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58361         Require every macro that gnulib/modules/* suggests for us.
58362         (jm_PREREQ_ADDEXT): New macro.
58363         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58364         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58365
58366         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58367         (gl_PHYSMEM): Use it.
58368         Also check for `table' function.
58369         Check for new headers and functions.
58370         Add check for sys/sysmp.h.
58371         With suggestions from Kaveh Ghazi.
58372         Ignore headers that are present but cannot be compiled.  This
58373         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58374         C 5.4.
58375
58376 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58377
58378         Document merge from coreutils.
58379         * modules/userspec: Depend on posixver.
58380         * modules/strftime: Depend on tzset.
58381
58382 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58383
58384         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58385         rather than tab, after '#' in shell-script copyright notices.
58386         Suggested by Bruno Haible.
58387
58388 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58389
58390         * config/srclist-update: Use three spaces, rather than tab, after '#'
58391         in shell-script copyright notices.  Suggested by Bruno Haible.
58392         Remove unnecessary parenthesization in regular expression.
58393
58394 2003-08-15  Jim Meyering  <jim@meyering.net>
58395
58396         Merge from coreutils.
58397         * lib/xgethostname.c: Include <stdlib.h>.
58398         (xghostname): Don't exit for anything other than memory-related
58399         failure; just return NULL.
58400         * lib/userspec.c: Include "posixver.h".
58401         (parse_user_spec): Accept `.' as a separator only
58402         in pre-POSIX-200112 mode.
58403         * lib/strtoimax.c: Use #elif rather than #else #if.
58404         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58405         Remove function, now that we can rely on a working tzset function.
58406         [!_LIBC]: Ensure that the required autoconf test has been run.
58407         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58408         Use underlying_strftime for %r.
58409         * lib/sha.c: Merge in some clean-up and optimization changes from
58410         glibc.
58411         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58412         Ensure that it is a multiple of 64.
58413         Rearrange loop exit tests so as to avoid performing an
58414         additional fread after encountering an error or EOF.
58415         * lib/realloc.c: Update copyright date.
58416
58417 2003-08-15  Jim Meyering  <jim@meyering.net>
58418         and Paul Eggert  <eggert@twinsun.com>
58419
58420         Merge from coreutils.
58421         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58422         member but strut utmpx does not.  Needed for AIX 4.3.3.
58423         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58424
58425 2003-08-15  Jim Meyering  <jim@meyering.net>
58426         and Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         Merges from coreutils, etc.
58429         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58430         Require gl_FUNC_TZSET_CLOBBER.
58431         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58432         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58433         members.
58434
58435 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58436
58437         Help the merge from coreutils.
58438         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58439         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58440         * m4/tzset.m4: Use it too.
58441
58442 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58443
58444         * modules/tzset: New file.
58445
58446 2003-08-14  Jim Meyering  <jim@meyering.net>
58447
58448         Merges from coreutils.
58449         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58450         variable names, rather than @FNMATCH_H@.
58451         * modules/alloca: Likewise for $(ALLOCA_H).
58452
58453         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58454         the three copies of the literal target, `fnmatch.h'.
58455         * modules/alloca (alloca.h): Likewise.
58456
58457 2003-08-14  Jim Meyering  <jim@meyering.net>
58458
58459         Merge from coreutils.
58460         * m4/tzset.m4: New file.
58461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58462         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58463         otherwise, AIX 5.1 systems would end up using the latter.
58464         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58465         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58466         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58467         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58468
58469 2003-08-14  Jim Meyering  <jim@meyering.net>
58470
58471         Merge from coreutils.
58472         * lib/obstack.h: Whitespace changes.
58473         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58474         and xcalloc return values.
58475         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58476         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58477         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58478         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58479         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58480         error from mntctl.
58481         Use mntctl's return value to drive the entry-processing loop, since
58482         we can't rely on the value of the vmt_length member in the last
58483         entry.  On some systems doing so could result in exhausting
58484         virtual memory.  Based in part on a patch from Mike Jetzer.
58485
58486 2003-08-14  Jim Meyering  <jim@meyering.net>
58487         and Paul Eggert  <eggert@twinsun.com>
58488
58489         Merges from coreutils, plus other fixes.
58490         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58491         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58492         for credits and details.  Thanks to Kaveh Ghazi for helping
58493         to keep these files in sync.
58494         (ARRAY_SIZE): Define it.
58495         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58496         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58497         (memcasecmp): Don't assume size_t fits in unsigned int.
58498         Remove casts and duplicate code.
58499         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58500         (memcpy): Remove definition.
58501         Merge in some clean-up and optimization changes from glibc.
58502         [BLOCKSIZE]: Move definition to top of file.
58503         Ensure that it is a multiple of 64.
58504         Rearrange loop exit tests so as to avoid performing an
58505         additional fread after encountering an error or EOF.
58506         * lib/md5.h (md5_uintptr): Define.
58507         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58508         return to the initial working directory.  Preserve errno
58509         for caller.
58510         * lib/idcache.c: Include "xalloc.h".
58511         (xmalloc, xrealloc): Remove decls.
58512         (getuser): Remove casts no longer required in C89.
58513         * lib/human.c: Include stdio.h, for sprintf.
58514         * lib/group-member.c: Include "xalloc.h".
58515         (xmalloc, xrealloc): Remove decls.
58516         (get_group_info): Remove casts no longer required in C89.
58517         * lib/getusershell.c (readname): Remove casts no longer required in
58518         C89.
58519         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58520         * lib/getline.c: Whitespace fix, from coreutils.
58521
58522 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58523
58524         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58525         Check for isascii.
58526
58527         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58528         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58529         Undo previous (whitespace-only) change.
58530
58531 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58532
58533         * lib/exclude.c: Include <ctype.h>
58534         (IN_CTYPE_DOMAIN): New macro.
58535         (is_space): New fn.
58536         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58537         and empty lines.
58538
58539         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58540         Undo previous (whitespace-only) change.
58541
58542 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58543
58544         * config/srclist-update: Change update back to the old behavior,
58545         leaving whitespace alone.  Use one 'sed' command rather than a
58546         pipeline.
58547         (fixlicense): Now a variable, not a function.
58548         (remove_trailing_blanks): Remove.
58549         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58550         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58551         Undo previous (whitespace-only) change.
58552
58553 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58554
58555         Merge from coreutils.
58556         * modules/euidaccess: Add lib_SOURCES, include for new
58557         file euidaccess.h
58558
58559 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58560
58561         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58562         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58563         Normalize leading white space and remove trailing white space.
58564
58565         Merge from coreutils
58566         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58567
58568         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58569         0.12.1.  These files are now being upgraded automatically by
58570         ../config/srclist-update.
58571
58572 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58573
58574         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58575         Normalize leading white space and remove trailing white space.
58576         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58577         notice, as per ../config/srclist-update.
58578
58579         Merge from coreutils.
58580         * lib/euidaccess.h: New file.
58581         * lib/euidaccess.c: Include it.
58582         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58583         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58584         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58585
58586 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58587
58588         * config/srclist-update: Add copyright notice.
58589         (remove_id_lines, remove_trailing_blanks): New constants.
58590         (fixfile): Use them to normalize spacing a bit in copied files.
58591         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58592         Normalize leading white space and remove trailing white space.
58593
58594         * config/texinfo.tex: Sync with texinfo.
58595
58596         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58597         strtoul.c from libc, to merge coreutils whitespace changes.
58598
58599         * config/srclist.txt: Get the following m4 files from gettext:
58600         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58601         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58602         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58603         wint_t.m4.
58604
58605 2003-08-12  Karl Berry  <karl@gnu.org>
58606
58607         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58608         been made.
58609
58610 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58611
58612         * modules/gnu-source, m4/gnu-source.m4:
58613         Remove; we're assuming Autoconf 2.54 or later now.
58614         Suggested by Bruno Haible.
58615         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58616
58617 2003-08-11  Bruno Haible  <bruno@clisp.org>
58618
58619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58620
58621 2003-08-11  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58624         (vasnprintf): Use it instead of wcslen.
58625
58626 2003-08-11  Bruno Haible  <bruno@clisp.org>
58627
58628         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58629         value to ensure that _Bool promotes to int. Use #define for _Bool when
58630         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58631
58632 2003-08-10  Karl Berry  <karl@gnu.org>
58633
58634         * lib/regex.h: update from libc (whitespace fix).
58635
58636 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58637
58638         Merge some files from coreutils.  These changes were
58639         originally made by Jim Meyering.
58640         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58641         many older Unixes require this.
58642         * lib/alloca.c (alloca): Remove cast to argument of free;
58643         no longer needed in C89.
58644         * lib/alloca_.h, regex.h: Fix white space to match
58645         what GNU indent does.
58646
58647 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58648
58649         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58650         apparently Emacs's Unicode mode got confused before my 2003-08-05
58651         checkin.
58652
58653 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58654
58655         * m4/extensions.m4: New file.
58656         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58657         Require gl_USE_SYSTEM_EXTENSIONS.
58658         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58659         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58660
58661 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58662
58663         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58664         * modules/extensions, modules/gnu-source: New files.
58665         * modules/timespec, modules/unlocked-io: Depend on extensions.
58666
58667 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58668
58669         * modules/restrict: New file.
58670         * MODULES.html.sh (func_all_modules): Add restrict.
58671         * modules/regex: Depend on restrict.
58672
58673 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58674
58675         * m4/restrict.m4: New file.
58676         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58677
58678 2003-08-07  Bruno Haible  <bruno@clisp.org>
58679
58680         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58681         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58682
58683 2003-08-07  Bruno Haible  <bruno@clisp.org>
58684
58685         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58686         makes the module 'getndelim2' compatible with the module 'getline'.
58687
58688 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58689
58690         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58691         byte with "\201" to avoid glitches when editing that source file
58692         with multi-gnome-terminal.
58693
58694 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58695
58696         * lib/bumpalloc.h: Remove.
58697
58698 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58699
58700         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58701         * modules/bumpalloc: Remove.
58702
58703 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58704
58705         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58706         GNU coding style.
58707
58708         Merge from coreutils.
58709         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58710         1. From glibc.
58711         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58712         from Karl Berry, implemented by Jim Meyering.
58713         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58714         from Dmitry V. Levin.
58715         Remove anachronistic cast of xrealloc.
58716         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58717         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58718         type. Otherwise, it wouldn't compile with at least /bin/cc on
58719         ymp-cray-unicos9.0.2.X.
58720         Combine two mostly-identical uses of alloca into one.
58721         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58722
58723 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58724
58725         [From Emacs.]
58726
58727         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58728         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58729         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58730         obsolete NLIST_NAME_UNION.
58731         [__GNU__]: Undef BSD and FSCALE.
58732         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58733
58734 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58735
58736         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58737         an enum type, so that it's guaranteed to promote to int.  See:
58738         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58739
58740 2003-08-03  Karl Berry  <karl@gnu.org>
58741
58742         * config/depcomp: update from automake.
58743
58744 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58745
58746         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58747         (strerror): Don't assume that a printable int fits in 14 bytes.
58748
58749 2003-07-31  Bruno Haible  <bruno@clisp.org>
58750
58751         * modules/getpass-gnu: New file.
58752         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58753
58754 2003-07-31  Bruno Haible  <bruno@clisp.org>
58755
58756         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58757
58758 2003-07-24  Karl Berry  <karl@gnu.org>
58759
58760         * config/missing: update from automake.
58761
58762 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58763             Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58766         * lib/getline.c (getline, getdelim): Likewise.
58767         Remove _GNU_SOURCE define; now it's defined in config.h through
58768         m4/getline.m4.
58769
58770 2003-07-23  Karl Berry  <karl@gnu.org>
58771
58772         * config/config.sub: update from prep.
58773
58774 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58775
58776         * modules/xalloc (Depends-on): Add exitfail.
58777         * modules/xmemcoll: Likewise.
58778
58779 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58780
58781         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58782         over-parenthesization in macros.
58783
58784         Sync with coreutils.
58785
58786         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58787         required by C99.
58788
58789         Use `exit_failure' for xalloc and xmemcoll instead of their own
58790         private exit-failure variables.
58791         * lib/xalloc.h (xalloc_exit_failure): Remove.
58792         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58793         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58794         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58795         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58796         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58797
58798 2003-07-20  Jim Meyering  <jim@meyering.net>
58799
58800         * modules/closeout (Depends-on): Add exitfail.
58801         Suggestion from Bruno Haible.
58802
58803 2003-07-19  Karl Berry  <karl@gnu.org>
58804
58805         * config/config.sub: update from prep.
58806
58807 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58808
58809         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58810         Remove.
58811         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58812         to test that it can stand by itself.  Include "exitfail.h".
58813         Clients should set exit_failure instead.
58814         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58815
58816 2003-07-18  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/getndelim2: New file.
58819         * modules/getline: Share files with module getndelim2.
58820         * modules/getnline: Depend on getndelim2 instead of sharing files with
58821         it. Add getnline.c to lib_SOURCES.
58822         * MODULES.html.sh (func_all_modules): Add getndelim2.
58823
58824 2003-07-18  Bruno Haible  <bruno@clisp.org>
58825
58826         * m4/getndelim2.m4: New file.
58827         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58828         invoke gl_PREREQ_GETNDELIM2.
58829         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58830         gl_PREREQ_GETNDELIM2.
58831         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58832         gl_GETNDELIM2.
58833
58834 2003-07-18  Bruno Haible  <bruno@clisp.org>
58835
58836         * lib/getndelim2.h: New file.
58837         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58838         getndelim2.h.
58839         (getndelim2): Make non-static. Change return type to ssize_t.
58840         * lib/getline.h: Change argument names.
58841         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58842         * lib/getnline.c: Include getndelim2.h.
58843
58844 2003-07-18  Andreas Schwab  <schwab@suse.de>
58845
58846         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58847
58848 2003-07-17  Karl Berry  <karl@gnu.org>
58849
58850         * config/config.sub: update from prep.
58851
58852 2003-07-17  Bruno Haible  <bruno@clisp.org>
58853
58854         * modules/getnline: New file.
58855         * modules/getline: Add lib/getndelim2.c to source file list.
58856         * MODULES.html.sh (func_all_modules): Add getnline.
58857
58858 2003-07-17  Bruno Haible  <bruno@clisp.org>
58859
58860         * m4/getnline.m4: New file.
58861
58862 2003-07-17  Bruno Haible  <bruno@clisp.org>
58863
58864         * m4/Makefile.am.in: Remove file.
58865         * m4/Makefile.am: Remove file.
58866         * m4/Makefile.in: Remove file.
58867
58868 2003-07-17  Bruno Haible  <bruno@clisp.org>
58869
58870         * lib/getnline.h: New file.
58871         * lib/getnline.c: New file.
58872         * lib/getndelim2.c: New file, extracted from getline.c.
58873         (getndelim2): Renamed from getdelim2, with added nmax argument.
58874         * lib/getline.c: Include getndelim2.c.
58875         (getdelim2): Moved out to getndelim2.c.
58876         (getline, getdelim): Update.
58877
58878 2003-07-17  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/Makefile.am: Remove file.
58881         * lib/Makefile.in: Remove file.
58882
58883 2003-07-17  Bruno Haible  <bruno@clisp.org>
58884
58885         * configure.in: Remove file.
58886         * Makefile.in: Remove file.
58887
58888 2003-07-17  Bruno Haible  <bruno@clisp.org>
58889
58890         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58891
58892 2003-07-16  Karl Berry  <karl@gnu.org>
58893
58894         * config/srclist-update: was running fixlicense twice, which caused
58895                 texinfo.tex to be nullified for some reason.  Simplify,
58896                 $gplsrc is no longer needed as far as I can see?
58897
58898 2003-07-16  Jim Meyering  <jim@meyering.net>
58899
58900         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58901
58902 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58903
58904         * config/srclist.txt: Get the following files from gettext-runtime/intl
58905         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58906         ref-del.sin.  From Bruno Haible.
58907         * config/srclist-update (fixfile): Change grep pattern again, since the
58908         previous fix didn't work (there was another trailing $).  Use
58909         '[$]' to escape the $s.
58910
58911 2003-07-15  Karl Berry  <karl@gnu.org>
58912
58913         * lib/vasnprintf.c: update from gettext.
58914
58915 2003-07-15  Karl Berry  <karl@gnu.org>
58916
58917         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58918         gets expanded when surrounded by '$'.
58919
58920 2003-07-15  Jim Meyering  <jim@meyering.net>
58921
58922         * modules/save-cwd: Don't depend on error.  From Derek Price.
58923
58924 2003-07-15  Jim Meyering  <jim@meyering.net>
58925
58926         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58927
58928 2003-07-14  Simon Josefsson  <jas@extundo.com>
58929
58930         * modules/mempcpy: New file.
58931         * MODULES.html.sh (func_all_modules): Add mempcpy.
58932
58933 2003-07-14  Simon Josefsson  <jas@extundo.com>
58934
58935         * m4/mempcpy.m4: New file.
58936
58937 2003-07-14  Simon Josefsson  <jas@extundo.com>
58938
58939         * lib/mempcpy.h: New file.
58940         * lib/mempcpy.c: New file.
58941
58942 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58943
58944         * modules/getdate, modules/posixtm: Depend on mktime.
58945
58946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58947
58948         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58949         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58950         unicodeio.c, unicodeio.h, unlocked-io.h:
58951         Switch from LGPL to GPL.
58952
58953 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58954
58955         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58956         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58957         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58958         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58959         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58960         updated automatically by ../config/srclist-update.  This changes
58961         their license from LPGL to GPL.
58962
58963 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58964
58965         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58966         assumed to refer to the root of the most recent stable gettext version.
58967         * config/srclistvars.sh: Add defaults for eggert.
58968         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58969         Match "This program" as well as "The program".  This is needed
58970         for gettext.
58971
58972 2003-07-14  Jim Meyering  <jim@meyering.net>
58973
58974         Don't emit diagnostics.  Let callers do that.
58975         * lib/save-cwd.c: Don't include "error.h".
58976         (save_cwd): Don't call error.  Ensure that errno is valid
58977         when returning nonzero.
58978
58979         * lib/save-cwd.h (restore_cwd): Update prototype.
58980         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58981         Simplify.  Don't call error upon failure.  Let callers do that.
58982         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58983         when auditing is enabled.  But don't bother updating the #if.
58984
58985 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58986
58987         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58988         it breaks C++ compilation.
58989         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58990
58991 2003-07-10  Simon Josefsson  <jas@extundo.com>
58992
58993         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58994
58995 2003-07-10  Jim Meyering  <jim@meyering.net>
58996
58997         * m4/clock_time.m4: Remove trailing blank.
58998         * m4/intmax_t.m4: Likewise.
58999
59000 2003-07-10  Jim Meyering  <jim@meyering.net>
59001
59002         * lib/vasnprintf.c: Remove trailing blanks.
59003         Make cpp indentation consistent.
59004
59005 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59006
59007         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59008         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59009         Switch from LGPL to GPL.
59010
59011 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59012
59013         * config/srclist.txt: Sort sublists.  Add
59014         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59015         that differ from gnulib for one reason or another; we'd like this list
59016         to be smaller but for now let's document what we have.
59017
59018 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59019
59020         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59021         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59022         and sweeter "eval x=$x".
59023         * config/srclist.txt: Get lib/argp* from glibc.
59024
59025 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59026
59027         * lib/mktime.c: Fix some boundary cases and remove need for floating
59028         point.
59029
59030         Issue a compile-time diagnostic if time_t is floating point, or if
59031         two's complement arithmetic is not in effect, or if arithmetic
59032         right shift does not propagate the sign.  These assumptions were
59033         all in the original code but they weren't checked.
59034
59035         (TIME_T_MIDPOINT, verify): New macros.
59036         (__isleap): Remove; it has integer overflow problems.
59037         (leapyear): New function, without those problems.
59038         (ydhms_tm_diff): Remove; splitting into two parts.
59039         (ydhms_diff): New function, containing the arithmetic part of
59040         the old ydhms_tm_diff function.  Issue a compile-time
59041         diagnostic if we are not using C99 integer division.
59042         Avoid casts when possible.
59043         (guess_time_tm): New function, containing the checking part of
59044         the old ydhms_tm_diff function.  Return the new value, rather than
59045         the difference between it and the old.  Accept a new argument T
59046         so that *T specifies the old value.  Check for overflow in the result.
59047
59048         (__mktime_internal): Use a time_t offset, not a long int offset.
59049         This undoes the 2003-06-04 change, which is no longer needed now
59050         that we have better overflow checking.
59051         (localtime_offset): Likewise.
59052
59053         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59054         and long are 64-bit but int is only 32-bit.
59055         (ydhms_diff): Use long int to store year1 and yday1.
59056         Issue a compile-time diagnostic if long int is not wide enough.
59057
59058         (__mktime_internal): Use long int to store adjusted year and yday.
59059         Use plain C rather than preprocessor commands, if that doesn't
59060         affect efficiency.
59061         Check for overflow (and try to repair) after each probe
59062         rather than checking only at the very end.  This avoids some bugs
59063         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59064         does not equal GMT offset at maximum time).
59065         Use integer to check for overflow rather than floating point; this
59066         is more portable to non-IEEE hosts, and is a tad faster.
59067         When we detect that we are oscillating between two values,
59068         don't check whether tm_isdst has the requested value, since
59069         we already know the answer.  When tm_isdst has the wrong value,
59070         use a different heuristic to find the right one, based on the
59071         extreme values actually observed in practice in tz2003a,
59072         rather than the (overly optimistic) "previous 3 calendar quarters".
59073
59074         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59075         "T const" to accommodate glibc style.
59076         (check_result): Use less-confusing report format.  "long" -> "long int.
59077         (main): Likewise.
59078         Don't loop if the iteration overflows time_t.
59079         Allow a negative step in the iteration.
59080
59081 2003-07-06  Karl Berry  <karl@gnu.org>
59082
59083         * config/depcomp: update from automake.
59084         * config/config.sub: update from prep.
59085
59086 2003-07-03  Karl Berry  <karl@gnu.org>
59087
59088         * config/config.guess: update from prep.
59089
59090 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59091
59092         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59093         xreadlink.c now includes it unconditionally.
59094
59095 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59096
59097         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59098         having it depend on HAVE_SYS_TYPES_H.
59099
59100 2003-07-01  Bruno Haible  <bruno@clisp.org>
59101
59102         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59103         <sys/types.h> should be sufficient.
59104         Reported by Paul Eggert.
59105
59106 2003-06-26  Karl Berry  <karl@gnu.org>
59107
59108         * config/depcomp: update from automake.
59109
59110 2003-06-26  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/human: Depend on module stdbool.
59113
59114 2003-06-25  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/readlink: New file.
59117         * modules/xreadlink: Depend on it.
59118         * MODULES.html.sh (func_all_modules): Add readlink.
59119
59120 2003-06-25  Bruno Haible  <bruno@clisp.org>
59121
59122         * m4/readlink.m4: New file.
59123
59124 2003-06-25  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/readlink.c: New file.
59127
59128 2003-06-22  Karl Berry  <karl@gnu.org>
59129
59130         * config/srclist.txt: update mkinstalldirs from automake.
59131         * config/mkinstalldirs: update.
59132
59133 2003-06-22  Bruno Haible  <bruno@clisp.org>
59134
59135         Portability to mingw32.
59136         * m4/ssize_t.m4: New file, from GNU gettext.
59137         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59138         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59139
59140 2003-06-22  Bruno Haible  <bruno@clisp.org>
59141
59142         * modules/safe-read: Add m4/ssize_t.m4.
59143         * modules/xreadlink: Add m4/ssize_t.m4.
59144
59145 2003-06-20  Bruno Haible  <bruno@clisp.org>
59146
59147         Assume C89, so PARAMS isn't needed.
59148         * lib/unicodeio.h (PARAMS): Remove.
59149         * lib/unicodeio.c: Don't use PARAMS.
59150
59151 2003-06-18  Karl Berry  <karl@gnu.org>
59152
59153         * config/config.{guess,sub}: update from prep.
59154
59155 2003-06-18  Jim Meyering  <jim@meyering.net>
59156
59157         Merge changes from coreutils.
59158         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59159         Remove explicit declarations of xmalloc and realloc.
59160         Include xalloc.h.
59161         (read_utmp): Remove anachronistic cast of xmalloc.
59162
59163 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59164
59165         Assume C89, so PARAMS isn't needed.
59166         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59167         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59168         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59169         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59170         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59171         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59172         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59173         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59174         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59175         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59176         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59177         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59178         no longer needed. Anyway, config.h should always be included before any
59179         other file.
59180
59181 2003-06-11  Simon Josefsson  <jas@extundo.com>
59182
59183         * modules/sysexits: New file.
59184         * MODULES.html.sh (func_all_modules): Add sysexits.
59185
59186 2003-06-11  Simon Josefsson  <jas@extundo.com>
59187
59188         * lib/sysexit_.h: New file.
59189
59190 2003-06-11  Derek Price  <derek@ximbiot.com>
59191
59192         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59193         necessary.
59194
59195 2003-06-11  Bruno Haible  <bruno@clisp.org>
59196
59197         * m4/sysexits.m4: New file.
59198
59199 2003-06-10  Simon Josefsson  <jas@extundo.com>
59200
59201         * lib/argp.h: New file, from glibc.
59202         * lib/argp-ba.c: New file, from glibc.
59203         * lib/argp-eexst.c: New file, from glibc.
59204         * lib/argp-fmtstream.c: New file, from glibc.
59205         * lib/argp-fmtstream.h: New file, from glibc.
59206         * lib/argp-fs-xinl.c: New file, from glibc.
59207         * lib/argp-help.c: New file, from glibc.
59208         * lib/argp-namefrob.h: New file, from glibc.
59209         * lib/argp-parse.c: New file, from glibc.
59210         * lib/argp-pv.c: New file, from glibc.
59211         * lib/argp-pvh.c: New file, from glibc.
59212         * lib/argp-xinl.c: New file, from glibc.
59213
59214 2003-06-10  Simon Josefsson  <jas@extundo.com>
59215
59216         * modules/strchrnul: New file.
59217
59218 2003-06-10  Simon Josefsson  <jas@extundo.com>
59219
59220         * modules/argp: New file.
59221
59222 2003-06-10  Simon Josefsson  <jas@extundo.com>
59223
59224         * m4/strchrnul.m4: New file.
59225
59226 2003-06-10  Simon Josefsson  <jas@extundo.com>
59227
59228         * lib/strchrnul.h: New file.
59229         * lib/strchrnul.c: New file.
59230
59231 2003-06-10  Bruno Haible  <bruno@clisp.org>
59232
59233         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59234
59235 2003-06-07  Karl Berry  <karl@gnu.org>
59236
59237         * config/config.{guess,sub}: update from prep.
59238
59239 2003-06-07  Jim Meyering  <jim@meyering.net>
59240
59241         * modules/strtod: Use $(...) notation, not @...@ for
59242         AC_REPLACE'd variables.
59243         * modules/localcharset: Likewise.
59244
59245 2003-06-07  Jim Meyering  <jim@meyering.net>
59246
59247         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59248         in place of my name in the copyright comment.
59249         Remove definition and uses of __P.
59250
59251         From coreutils.
59252         * lib/stat.c: Don't declare xmalloc explicitly.
59253         Instead, include "xalloc.h".
59254         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59255         xrealloc, and xcalloc return values.
59256         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59257         Improve comment.
59258         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59259
59260 2003-06-07  Bruno Haible  <bruno@clisp.org>
59261
59262         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59263         avoid AC_CONFIG_LINKS.
59264         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59265         fnmatch.h, to avoid AC_CONFIG_LINKS.
59266         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59267
59268 2003-06-07  Bruno Haible  <bruno@clisp.org>
59269
59270         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59271         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59272         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59273         directory.
59274         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59275         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59276         directory.
59277
59278 2003-06-06  Jim Meyering  <jim@meyering.net>
59279
59280         Merge from coreutils.
59281         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59282         Consolidate declarations and initializations of *_base* locals.
59283
59284         Merge from coreutils.
59285         This avoids a core dump on systems without GNU putenv,
59286         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59287         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59288         (unsetenv): New static function, from GNU libc.
59289         (rpl_putenv): Use it.
59290
59291         * lib/modechange.c: Remove trailing blanks.
59292
59293         Merge from coreutils.
59294         * lib/fsusage.c: Remove declaration of statfs.
59295         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59296
59297         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59298
59299 2003-06-06  Jim Meyering  <jim@meyering.net>
59300
59301         * lib/stdbool_.h: Renamed from stdbool.h.in.
59302
59303 2003-06-06  Jim Meyering  <jim@meyering.net>
59304             Bruno Haible  <bruno@clisp.org>
59305
59306         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59307         Adjust Makefile.am snippet not to redirect directly to target.
59308         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59309
59310 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59311
59312         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59313         mismatch, look in future quarters as well as past.  This fixes a
59314         bug when processing fall-backwards gaps immediately after a long
59315         period of daylight-saving time.
59316
59317         * lib/mktime.c: Assume freestanding C89 or better.
59318         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59319         (__P): Remove; not used.
59320         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59321         (mktime, not_equal_tm, print_tm, check_result,
59322         main): Use prototypes.  Use const * where appropriate.
59323         (main): Fix typo in testing code that uncovered by above changes.
59324         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59325
59326 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59327
59328         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59329         locale.h, localeconv.  This merges changes from coreutils.
59330
59331         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59332         It can be removed after the next Autoconf is released.
59333         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59334         needed.
59335
59336 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59337
59338         * lib/mktime.c: Fix Debian bug 177940
59339         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59340         (localtime_offset): Now long int, not time_t, because we want it
59341         to be guaranteed to be signed.  All uses changed.
59342         (__mktime_internal): If overflow would occur when adding offset,
59343         don't add it.
59344
59345         Merge 'human' changes from coreutils.  Rewrite to support
59346         locale-specific notations like thousands separators.
59347         * lib/human.c: Simplify authorship notice.
59348         Include human.h immediately after config.h.
59349         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59350         <limits.h>: Do not include, since human.h does.
59351         (SIZE_MAX, UINTMAX_MAX): New macros.
59352         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59353         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59354         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59355         (power_letter): Renamed from suffixes.
59356         (generate_suffix_backwards): Remove.
59357         (adjust_value): Now takes int style (because of human.h changes)
59358         and long double value (for greater precision on some platforms).
59359         (group_number): New function.
59360         (human_readable): Use it.  Use integer options, not enum.
59361         Put the options before the sizes in the arg list.
59362         Support all the new options.
59363         The old human_readable function has been removed;
59364         use inttostr.h instead.
59365         (human_readable, default_block_size, humblock):
59366         Use uintmax_t, not int, for block sizes.
59367         (human_readable_inexact, block_size_types): Remove.
59368         (block_size_opts): New constant.
59369         (human_options): Renamed from human_block_size, with new signature
59370         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59371         * lib/human.h: Add copyright and authorship notice.
59372         Include <limits.h> and <stdbool.h> unconditionally.
59373         (PARAMS): Remove.  All uses removed.
59374         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59375         (enum human_inexact_style): Remove tag; now a nameless enum.
59376         (human_floor, human_ceiling, human_round_to_even): Now have
59377         values 2, 0, 1 rather than -1, 1, 0.
59378         (human_group_digits, human_suppress_point_zero, human_autoscale,
59379         human_base_1024, human_SI, human_B): New constants.
59380         (human_readable_inexact, human_block_size): Remove.
59381         (human_readable): Size args are now uintmax_t, not int.
59382         (human_options): New decl.
59383
59384         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59385         unnecessary now that we assume C89 or better.  This change
59386         imported from coreutils.
59387
59388         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59389         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59390         in the 2003-05-30 sync from glibc.
59391
59392         .h files should stand alone, but we shouldn't include <sys/types.h>
59393         if we can get away with just <stddef.h>.
59394
59395         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59396         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59397         rather than <sys/types.h>, as we merely need size_t.
59398         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59399         to get size_t.
59400         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59401         Include <stdio.h>, to get FILE.
59402         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59403         memcasecmp.h has included <stddef.h> and all we need is size_t.
59404         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59405         our interface, instead of including <sys/types.h>
59406
59407 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59408
59409         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59410         now, as glibc mktime is buggy on non-glibc systems.
59411
59412 2003-06-03  Karl Berry  <karl@gnu.org>
59413
59414         * config/config.sub: update from prep.
59415
59416 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59417
59418         [from coreutils]
59419         Fix some minor time-related bugs with POSIX time arguments.
59420         Some valid time stamps were being rejected (notably -1, and
59421         time stamps before 1900 on 64-bit hosts).  And some invalid
59422         time stamps were being accepted, e.g. September 31.
59423
59424         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59425         that we can return (time_t) -1 successfully.
59426         * lib/posixtm.c: Likewise.
59427         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59428         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59429         (t): Remove static var.
59430         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59431         of static var.  All uses changed.
59432         (year): Do not reject years before 1900; they can occur with
59433         64-bit time_t.
59434         (posix_time_parse): Do not check for out-of-range components;
59435         that is now the caller's responsibility, since our checks were
59436         only approximations.
59437         (posixtime): Use mktime to check for out-of-range components,
59438         since it knows them exactly.
59439         If mktime returns (time_t) -1, check whether an error actually occurred
59440         by invoking localtime on -1.
59441         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59442         posixtime failures better.
59443         Improve the test data (in comments only).
59444
59445 2003-06-02  Karl Berry  <karl@gnu.org>
59446
59447         * config/mkinstalldirs (version): new variable.
59448         (--version): new option.
59449         (usage): improve message.
59450
59451 2003-05-30  Karl Berry  <karl@gnu.org>
59452
59453         * lib/mktime.c: update from libc.
59454
59455 2003-05-30  Bruno Haible  <bruno@clisp.org>
59456
59457         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59458         * config/config.rpath: Upgrade to gettext-0.12.1.
59459
59460 2003-05-30  Bruno Haible  <bruno@clisp.org>
59461
59462         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59463         * m4/nls.m4: New file, from gettext-0.12.1.
59464         * m4/po.m4: New file, from gettext-0.12.1.
59465         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59466
59467 2003-05-30  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59470         * lib/localcharset.h: Likewise.
59471         * lib/localcharset.c: Likewise.
59472
59473 2003-05-29  Karl Berry  <karl@gnu.org>
59474
59475         * config/config.rpath: update from gettext.
59476
59477 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59478
59479         Assume the headers required for C89 freestanding compilers.
59480         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59481         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59482         * m4/human.m4 (gl_HUMAN): Likewise.
59483         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59484         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59485         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59486         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59487         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59488         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59489
59490 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59491
59492         Assume the headers required for C89 freestanding compilers.
59493         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59494         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59495         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59496         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59497         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59498         define, since <limits.h> is guaranteed to do that.
59499         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59500         * lib/exclude.c: Include <stdbool.h> unconditionally.
59501         * lib/tempname.c: Include <stddef.h> unconditionally.
59502         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59503         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59504         <stddef.h> does that.
59505         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59506         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59507         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59508         needed.
59509         * lib/xstrtol.c: Likewise.
59510         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59511         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59512
59513         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59514         warnings on some platforms.
59515
59516         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59517         arbitrarily.
59518
59519 2003-05-26  Jim Meyering  <jim@meyering.net>
59520
59521         Merge in a change from coreutils:
59522         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59523         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59524         that condition, rather than `-1' which is slightly misleading.
59525         Change the name of the cache variable to have the gl_ prefix.
59526         Prompted by a patch from Richard Dawe for DJGPP.
59527
59528 2003-05-24  Karl Berry  <karl@gnu.org>
59529
59530         * config/config.guess: update from prep.
59531
59532 2003-05-22  Karl Berry  <karl@gnu.org>
59533
59534         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59535
59536 2003-05-20  Karl Berry  <karl@gnu.org>
59537
59538         * config/config.guess: update from prep.
59539
59540 2003-05-18  Karl Berry  <karl@gnu.org>
59541
59542         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59543         might actually be set by the user.
59544
59545         * config/depcomp, install-sh, mdate-sh: update from automake.
59546
59547 2003-05-17  Bruno Haible  <bruno@clisp.org>
59548
59549         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59550         invalid expansion for AC_EGREP_CPP.
59551         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59552         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59553         Suggested by Akim Demaille <akim@epita.fr> in
59554         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59555
59556 2003-05-12  Jim Meyering  <jim@meyering.net>
59557
59558         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59559         the space-padded-by-default conversion specifiers, %e, %k, %l.
59560
59561 2003-05-12  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59564         the string is longer than 4 KB.
59565
59566 2003-05-11  Karl Berry  <karl@gnu.org>
59567
59568         * config/config.{guess,sub}: update from prep.
59569
59570 2003-05-09  Bruno Haible  <bruno@clisp.org>
59571
59572         * modules/error: Add m4/strerror_r.m4 to file list.
59573
59574 2003-05-03  Bruno Haible  <bruno@clisp.org>
59575
59576         Upgrade to Unicode-4.0.
59577         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59578         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59579         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59580         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59581         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59582         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59583         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59584         Change width of U+E0100..U+E01EF from 1 to 0.
59585
59586 2003-04-25  Jim Meyering  <jim@meyering.net>
59587
59588         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59589         of type size_t, not int.
59590
59591 2003-04-25  Bruno Haible  <bruno@clisp.org>
59592
59593         * lib/copy-file.c: Include <stddef.h>, for size_t.
59594
59595 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59596
59597         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59598         code which expansion is under static control.  Patch imported from
59599         Akim Demaille's patch to Bison; see
59600         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59601
59602 2003-04-14  Bruno Haible  <bruno@clisp.org>
59603
59604         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59605
59606 2003-04-11  Jim Meyering  <jim@meyering.net>
59607
59608         Merge changes from Coreutils.
59609
59610         2003-03-22  Jim Meyering  <jim@meyering.net>
59611
59612         * lib/strftime.c (widen): Cast alloca return value to proper type.
59613
59614         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59615
59616         From GNU libc.
59617         * lib/strftime.c (my_strftime): Handle very large width
59618         specifications for numeric values correctly.  Improve checks for
59619         overflow.
59620
59621         2003-01-19  Jim Meyering  <jim@meyering.net>
59622
59623         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59624         definitions.
59625         (nl_get_alt_digit) [! defined my_strftime]: Define.
59626         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59627         _nl_get_alt_digit and _nl_get_walt_digit.
59628
59629         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59630         libc. These changes have no effect outside of _LIBC.
59631
59632 2003-04-10  Bruno Haible  <bruno@clisp.org>
59633
59634         * modules/findprog: New file.
59635         * MODULES.html.sh (func_all_modules): Add it.
59636
59637 2003-04-10  Bruno Haible  <bruno@clisp.org>
59638
59639         * m4/findprog.m4: New file.
59640         * m4/eaccess.m4: New file.
59641
59642 2003-04-10  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/findprog.h: New file, from GNU gettext.
59645         * lib/findprog.c: New file, from GNU gettext.
59646
59647 2003-04-05  Jim Meyering  <jim@meyering.net>
59648
59649         Merge changes from Coreutils.
59650
59651         * lib/exclude.h (PARAMS): Remove definition and uses.
59652         * lib/exclude.c: Remove uses of `PARAMS'.
59653
59654         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59655         Add test-cases for DOS filenames. Declare program_name.
59656         (main): Set up program_name.  Patch by Rich Dawe.
59657
59658         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59659         error from mntctl.
59660         Use mntctl's return value to drive the entry-processing loop, since
59661         we can't rely on the value of the vmt_length member in the last
59662         entry.  On some systems doing so could result in exhausting
59663         virtual memory.  Based in part on a patch from Mike Jetzer.
59664
59665 2003-04-04  Bruno Haible  <bruno@clisp.org>
59666
59667         * modules/linebreak: New file.
59668         * MODULES.html.sh (func_all_modules): Add it.
59669
59670 2003-04-04  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/linebreak.m4: New file.
59673
59674 2003-04-04  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/linebreak.h: New file, from GNU gettext.
59677         * lib/linebreak.c: New file, from GNU gettext with slight
59678         modifications.
59679         * lib/lbrkprop.h: New file, from GNU gettext.
59680
59681 2003-04-03  Bruno Haible  <bruno@clisp.org>
59682
59683         * modules/utf8-ucs4: New file.
59684         * modules/utf16-ucs4: New file.
59685         * modules/ucs4-utf8: New file.
59686         * modules/ucs4-utf16: New file.
59687         * MODULES.html.sh (func_all_modules): Add them.
59688
59689 2003-04-03  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/utf-ucs4.m4: New file.
59692         * m4/ucs4-utf.m4: New file.
59693
59694 2003-04-03  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/utf8-ucs4.h: New file, from GNU gettext.
59697         * lib/utf16-ucs4.h: New file, from GNU gettext.
59698         * lib/ucs4-utf8.h: New file, from GNU gettext.
59699         * lib/ucs4-utf16.h: New file, from GNU gettext.
59700
59701 2003-04-02  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/binary-io: New file.
59704         * MODULES.html.sh (func_all_modules): Add it.
59705
59706 2003-04-02  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/binary-io.h: New file, from GNU gettext.
59709
59710 2003-04-01  Bruno Haible  <bruno@clisp.org>
59711
59712         * modules/pathname: New file.
59713         * MODULES.html.sh (func_all_modules): Add it.
59714
59715 2003-04-01  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/pathname.h: New file, from GNU gettext.
59718         * lib/concatpath.c: New file, from GNU gettext.
59719
59720 2003-03-30  Bruno Haible  <bruno@clisp.org>
59721
59722         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59723
59724 2003-03-30  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59727         function chown() doesn't exist.
59728
59729 2003-03-28  Bruno Haible  <bruno@clisp.org>
59730
59731         * modules/copy-file: New file.
59732         * MODULES.html.sh (func_all_modules): Add it.
59733
59734 2003-03-28  Bruno Haible  <bruno@clisp.org>
59735
59736         * m4/copy-file.m4: New file.
59737
59738 2003-03-28  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/copy-file.h: New file, from GNU gettext.
59741         * lib/copy-file.c: New file, from GNU gettext.
59742
59743 2003-03-18  Jim Meyering  <jim@meyering.net>
59744
59745         * lib/quote.c (quote_n): Fix typo in comment.
59746
59747 2003-03-18  Bruno Haible  <bruno@clisp.org>
59748
59749         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59750         checking.
59751         * m4/onceonly_2_57.m4: Likewise.
59752
59753 2003-03-17  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59756         (m4_quote): Remove macro.
59757         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59758
59759 2003-03-14  Jim Meyering  <jim@meyering.net>
59760
59761         Merge changes from Coreutils.
59762         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59763         to be const, in order to avoid warnings.
59764         (obstack_room): Likewise.
59765         (obstack_empty_p): Likewise.
59766
59767 2003-03-14  Bruno Haible  <bruno@clisp.org>
59768
59769         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59770         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59771
59772 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59773
59774         Merge changes from Bison.
59775         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59776         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59777         when compiling Bison 1.875's `bitset bset = obstack_alloc
59778         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59779         * lib/hash.c: Include <stdbool.h> unconditionally.
59780
59781 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59782
59783         * m4/onceonly.m4 (m4_quote): New macro.
59784         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59785         Quote AC_FOREACH variable-expansions properly.
59786
59787 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59788
59789         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59790
59791 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59792
59793         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59794         Reported by Bruce Becker; see:
59795         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59796
59797 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59798             Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59801         Reported by John Hughes, see
59802         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59803
59804 2003-02-20  Bruno Haible  <bruno@clisp.org>
59805
59806         * MODULES.html.sh (func_all_modules): Add poll.
59807
59808 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59809
59810         * modules/poll: New file.
59811
59812 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59813
59814         * lib/poll_.h: New file.
59815         * lib/poll.c: New file.
59816
59817 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59818
59819         * m4/poll.m4: New file.
59820
59821 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59822
59823         * modules/mathl: New file.
59824
59825 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59826
59827         * lib/mathl.h: New file.
59828         * lib/acosl.c: New file.
59829         * lib/asinl.c: New file.
59830         * lib/atanl.c: New file.
59831         * lib/ceill.c: New file.
59832         * lib/cosl.c: New file.
59833         * lib/expl.c: New file.
59834         * lib/floorl.c: New file.
59835         * lib/frexpl.c: New file.
59836         * lib/ldexpl.c: New file.
59837         * lib/logl.c: New file.
59838         * lib/sincosl.c: New file.
59839         * lib/sinl.c: New file.
59840         * lib/sqrtl.c: New file.
59841         * lib/tanl.c: New file.
59842         * lib/trigl.c: New file.
59843         * lib/trigl.h: New file.
59844
59845 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59846
59847         * m4/mathl.m4: New file.
59848
59849 2003-02-18  Bruno Haible  <bruno@clisp.org>
59850
59851         * MODULES.html.sh (func_all_modules): Add mathl.
59852
59853 2003-02-17  Bruno Haible  <bruno@clisp.org>
59854
59855         * modules/mkdtemp: New module.
59856         * MODULES.html.sh (func_all_modules): Add it.
59857
59858 2003-02-17  Bruno Haible  <bruno@clisp.org>
59859
59860         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59861
59862 2003-02-17  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/mkdtemp.h: New file, from GNU gettext.
59865         * lib/mkdtemp.c: New file, from GNU gettext.
59866
59867 2003-02-02  Jim Meyering  <jim@meyering.net>
59868
59869         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59870         e.g. glibc-2.2.93.
59871
59872 2003-01-31  Bruno Haible  <bruno@clisp.org>
59873
59874         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59875         'rpl_rename'.
59876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59877         'rpl_strnlen'.
59878         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59879         'rpl_strtod'.
59880         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59881         'rpl_utime'.
59882
59883 2003-01-31  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/rename.c: #undef rename before defining rpl_rename.
59886         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59887
59888 2003-01-30  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/vasnprintf, modules/vasprintf: New modules.
59891         * MODULES.html.sh (func_all_modules): Add them.
59892
59893 2003-01-30  Bruno Haible  <bruno@clisp.org>
59894
59895         * m4/signed.m4: New file, from GNU gettext.
59896         * m4/longdouble.m4: New file, from GNU gettext.
59897         * m4/wchar_t.m4: New file, from GNU gettext.
59898         * m4/wint_t.m4: New file, from GNU gettext.
59899         * m4/vasnprintf.m4: New file.
59900         * m4/vasprintf.m4: New file.
59901
59902 2003-01-30  Bruno Haible  <bruno@clisp.org>
59903
59904         * lib/printf-args.h: New file, from GNU gettext.
59905         * lib/printf-args.c: New file, from GNU gettext.
59906         * lib/printf-parse.h: New file, from GNU gettext.
59907         * lib/printf-parse.c: New file, from GNU gettext.
59908         * lib/vasnprintf.h: New file, from GNU gettext.
59909         * lib/vasnprintf.c: New file, from GNU gettext.
59910         * lib/asnprintf.c: New file, from GNU gettext.
59911         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59912         * lib/vasprintf.c: New file, from GNU gettext.
59913         * lib/asprintf.c: New file, from GNU gettext.
59914
59915 2003-01-29  Bruno Haible  <bruno@clisp.org>
59916
59917         * modules/stpncpy: New module.
59918         * MODULES.html.sh (func_all_modules): Add it.
59919
59920 2003-01-29  Bruno Haible  <bruno@clisp.org>
59921
59922         * m4/stpncpy.m4: New file.
59923
59924 2003-01-29  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59927         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59928
59929 2003-01-28  Bruno Haible  <bruno@clisp.org>
59930
59931         * modules/c-ctype: New module.
59932         * MODULES.html.sh (func_all_modules): Add it.
59933
59934 2003-01-28  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59937         Paul Eggert.
59938         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59939         Paul Eggert.
59940
59941 2003-01-27  Bruno Haible  <bruno@clisp.org>
59942
59943         * modules/xsetenv: New module.
59944         * MODULES.html.sh (func_all_modules): Add it.
59945
59946 2003-01-27  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/xsetenv.h: New file, from GNU gettext.
59949         * lib/xsetenv.c: New file, from GNU gettext.
59950
59951 2003-01-23  Jim Meyering  <jim@meyering.net>
59952
59953         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59954         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59955
59956 2003-01-23  Bruno Haible  <bruno@clisp.org>
59957
59958         * modules/minmax: New module.
59959         * MODULES.html.sh (func_all_modules): Add it.
59960
59961 2003-01-23  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59964         Eggert.
59965
59966 2003-01-22  Bruno Haible  <bruno@clisp.org>
59967
59968         * modules/exit: New module.
59969         * MODULES.html.sh (func_all_modules): Add it.
59970
59971 2003-01-22  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/exit.h: New file, from GNU gettext.
59974
59975 2003-01-19  Bruno Haible  <bruno@clisp.org>
59976
59977         * gnulib-tool: Recognize option --extract-maintainer.
59978         (func_get_maintainer): New function.
59979         * modules/*: Add Maintainer entry.
59980
59981 2003-01-16  Jim Meyering  <jim@meyering.net>
59982
59983         * m4/regex.m4: The `regex' struct is both input and output.
59984         Initialize it before each use.  Patch by Tim Waugh.
59985
59986 2003-01-16  Bruno Haible  <bruno@clisp.org>
59987
59988         * MODULES.html.sh: Add a table of contents. Add the module name as
59989         leftmost column. Add hyperlinks.
59990
59991 2003-01-15  Bruno Haible  <bruno@clisp.org>
59992
59993         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59994
59995 2003-01-15  Bruno Haible  <bruno@clisp.org>
59996
59997         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59998         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59999         suffix.
60000
60001 2003-01-15  Bruno Haible  <bruno@clisp.org>
60002
60003         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60004
60005 2003-01-15  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60008         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60009
60010 2003-01-14  Jim Meyering  <jim@meyering.net>
60011
60012         * lib/same.c (same_name): Tweak a comment.
60013
60014 2003-01-14  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60017         when a string comparison is sufficient.
60018
60019 2003-01-14  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60022         'unsigned int'.
60023
60024 2003-01-14  Bruno Haible  <bruno@clisp.org>
60025
60026         * lib/hash-pjw.c: Add comment about low quality of this function.
60027
60028 2003-01-13  Bruno Haible  <bruno@clisp.org>
60029
60030         * modules/stpcpy: Distribute lib/stpcpy.h.
60031         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60032
60033 2003-01-13  Bruno Haible  <bruno@clisp.org>
60034
60035         * modules/*: Add a description.
60036         * modules/strpbrk: Fix Makefile.am snippet.
60037         * modules/strtoimax: Fix dependencies.
60038         * modules/strtoumax: Likewise.
60039
60040 2003-01-13  Bruno Haible  <bruno@clisp.org>
60041
60042         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60043         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60044         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60045
60046 2003-01-13  Bruno Haible  <bruno@clisp.org>
60047
60048         * gnulib-tool (func_create_testdir): Store config/* files in the main
60049         directory.
60050         * config.rpath: Move to ...
60051         * config/config.rpath: ... here.
60052         * modules/gettext: Contains config/config.rpath, not config.rpath.
60053         * modules/iconv: Likewise.
60054
60055 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60056
60057         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60058         to avoid collisions with libcurses and libreadline.
60059
60060         * m4/getstr.m4: Remove.
60061         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60062
60063 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60064
60065         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60066         to avoid collisions with libcurses and libreadline.
60067
60068         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60069         * lib/getstr.h, getstr.c: Remove.
60070         * lib/getline.c: Include "getline.h", to check interface.
60071         Move body of old getstr.c here: this defines MIN_CHUNK and
60072         declares getdelim2, which is renamed from getstr.
60073         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60074
60075         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60076         All uses changed.
60077         * lib/linebuffer.h: Likewise.
60078         (readline): Remove backward-compatibility macro.
60079
60080 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60081
60082         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60083         to avoid collisions with libcurses and libreadline.
60084         * getstr: Remove.
60085         * MODULES.html.sh: Remove getstr.
60086         * modules/getline: Depend on unlocked-io, not getstr.
60087
60088 2003-01-12  Jim Meyering  <jim@meyering.net>
60089
60090         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60091
60092 2003-01-10  Bruno Haible  <bruno@clisp.org>
60093
60094         * modules/alloca: Change Makefile.am requirements. Simplify Include
60095         requirements. Add lib/alloca_.h to file list.
60096
60097 2003-01-10  Bruno Haible  <bruno@clisp.org>
60098
60099         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60100
60101 2003-01-10  Bruno Haible  <bruno@clisp.org>
60102
60103         * lib/alloca_.h: New file.
60104         * lib/getdate.y: Unconditionally include alloca.h.
60105         * lib/makepath.c: Likewise.
60106         * lib/setenv.c: Likewise.
60107         * lib/userspec.c: Likewise.
60108
60109 2003-01-09  Karl Berry  <karl@gnu.org>
60110
60111         * MODULES.html.sh: include `dirname $0` in PATH, to find
60112         gnulib-tool.
60113
60114 2003-01-09  Bruno Haible  <bruno@clisp.org>
60115
60116         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60117         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60118
60119 2003-01-09  Bruno Haible  <bruno@clisp.org>
60120
60121         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60122
60123 2003-01-09  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/stdbool.h.in: New file.
60126
60127 2003-01-09  Bruno Haible  <bruno@clisp.org>
60128
60129         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60130         * MODULES.html.sh: Likewise.
60131
60132 2003-01-08  Jim Meyering  <jim@meyering.net>
60133
60134         * lib/full-write.c: Undefine and define-away `const' after inclusion
60135         of errno.h, not before.  Suggestion from Bruno Haible.
60136
60137 2003-01-08  Bruno Haible  <bruno@clisp.org>
60138
60139         * modules/full-read: Depend on full-write.
60140
60141 2003-01-08  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/safe-read.c: Include specification header first, to ensure its
60144         selfcontainedness.
60145         * lib/full-write.c: Likewise.
60146
60147 2003-01-07  Jim Meyering  <jim@meyering.net>
60148
60149         * lib/full-write.c: Rework so that it may serve to define full_read,
60150         too.
60151         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60152
60153 2003-01-07  Bruno Haible  <bruno@clisp.org>
60154
60155         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60156         <inttypes.h>.
60157         * lib/xstrtol.h: Likewise.
60158         * lib/xstrtoimax.c: Likewise.
60159         * lib/xstrtoumax.c: Likewise.
60160         * lib/human.h: Likewise.
60161
60162         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60163         on systems that have <inttypes.h> but not <stdint.h>.
60164
60165 2003-01-07  Bruno Haible  <bruno@clisp.org>
60166
60167         * MODULES.html.sh: Add copyright notice.
60168         (missed_files): Omit CVS directory entries.
60169         (func_module): Make it work with sed-3.02.
60170         * MODULES.txt: Remove file.
60171
60172 2003-01-06  Jim Meyering  <jim@meyering.net>
60173
60174         * lib/version-etc.c: Update year in translatable copyright string.
60175
60176 2003-01-03  Karl Berry  <karl@gnu.org>
60177
60178         * config/config.{guess,sub}: update from prep.
60179
60180 2003-01-02  Karl Berry  <karl@gnu.org>
60181
60182         * doc/COPYING.DOC: belatedly updated to 1.2.
60183
60184 2003-01-01  Karl Berry  <karl@gnu.org>
60185
60186         * gnulib-tool (func_verify_module): report module name $module in
60187         error message, not $1.
60188         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60189         be created, only if it doesn't exist.
60190         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60191
60192 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60193
60194         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60195
60196 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60197
60198         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60199         memcmp if strcoll doesn't work.
60200
60201 2002-12-31  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60204         nonempty.
60205
60206 2002-12-31  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/memcoll.c (STRCOLL): New macro.
60209         (memcoll): Use it.
60210
60211 2002-12-31  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/localcharset.h: New file.
60214         * lib/localcharset.c: Include it.
60215         * lib/unicodeio.c: Likewise.
60216
60217 2002-12-31  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60220         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60221
60222 2002-12-31  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/getline.h: Include <stddef.h>, for size_t.
60225
60226         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60227         * lib/unicodeio.c: Don't include <stddef.h>.
60228
60229 2002-12-31  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60232         HAVE_TM_ZONE.
60233
60234 2002-12-24  Karl Berry  <karl@gnu.org>
60235
60236         * config/config.guess: update from prep.
60237
60238 2002-12-24  Bruno Haible  <bruno@clisp.org>
60239
60240         General infrasructure.
60241         * m4/README: Rewritten.
60242         * m4/onceonly.m4: New file.
60243         * m4/onceonly_2_57.m4: New file.
60244
60245         Module atexit.
60246         * m4/atexit.m4: New file.
60247
60248         Module strtod.
60249         * m4/strtod.m4: New file.
60250
60251         Module strtol.
60252         * m4/strtol.m4: New file.
60253
60254         Module strtoul.
60255         * m4/strtoul.m4: New file.
60256
60257         Module memchr.
60258         * m4/memchr.m4: New file.
60259
60260         Module memcmp.
60261         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60262         (jm_FUNC_MEMCMP): Invoke it.
60263
60264         Module memcpy.
60265         * m4/memcpy.m4: New file.
60266
60267         Module memmove.
60268         * m4/memmove.m4: New file.
60269
60270         Module memset.
60271         * m4/memset.m4: New file.
60272
60273         Module strcspn.
60274         * m4/strcspn.m4: New file.
60275
60276         Module strpbrk.
60277         * m4/strpbrk.m4: New file.
60278
60279         Module strstr.
60280         * m4/strstr.m4: New file.
60281
60282         Module strerror.
60283         * m4/strerror.m4: New file.
60284
60285         Module mktime.
60286         * m4/mktime.m4: Renamed from jm-mktime.m4.
60287         (gl_PREREQ_MKTIME): New macro.
60288         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60289
60290         Module malloc.
60291         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60292         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60293         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60294
60295         Module realloc.
60296         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60297         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60298         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60299
60300         Module strftime.
60301         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60302         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60303         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60304         gl_TM_GMTOFF.
60305         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60306
60307         Module xalloc.
60308         * m4/xalloc.m4: New file.
60309
60310         Module alloca.
60311         * m4/alloca.m4: New file.
60312
60313         Module putenv.
60314         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60315         (jm_FUNC_PUTENV): Invoke it.
60316
60317         Module setenv.
60318         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60319         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60320         when invoked twice.
60321         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60322         gt_FUNC_SETENV.
60323
60324         Module memrchr.
60325         * m4/memrchr.m4: New file.
60326
60327         Module stpcpy.
60328         * m4/stpcpy.m4: New file.
60329
60330         Module strcase.
60331         * m4/strcase.m4: New file.
60332
60333         Module strdup.
60334         * m4/strdup.m4: New file.
60335
60336         Module strnlen.
60337         * m4/strnlen.m4: New file.
60338
60339         Module strndup.
60340         * m4/strndup.m4: New file.
60341
60342         Module xstrtod.
60343         * m4/xstrtod.m4: New file.
60344
60345         Module xstrtol.
60346         * m4/xstrtol.m4: New file.
60347
60348         Module getdate.
60349         * m4/getdate.m4: New file.
60350
60351         Module unlocked-io.
60352         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60353         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60354         * m4/jm-glibc-io.m4n: Remove file.
60355
60356         Module long-options.
60357         * m4/long-options.m4: New file.
60358
60359         Module md5.
60360         * m4/md5.m4: New file.
60361
60362         Module sha.
60363         * m4/sha.m4: New file.
60364
60365         Module getstr.
60366         * m4/getstr.m4: New file.
60367
60368         Module getline.
60369         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60370         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60371         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60372         simply getline. Infoke gl_PREREQ_GETLINE.
60373
60374         Module obstack.
60375         * m4/obstack.m4: New file.
60376
60377         Module hash.
60378         * m4/hash.m4: New file.
60379
60380         Module readtokens.
60381         * m4/readtokens.m4: New file.
60382
60383         Module strverscmp.
60384         * m4/strverscmp.m4: New file.
60385
60386         Module stdbool.
60387         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60388         OSF/1.
60389
60390         Module strtoll.
60391         * m4/strtoll.m4: New file.
60392
60393         Module strtoull.
60394         * m4/strtoull.m4: New file.
60395
60396         Module strtoimax.
60397         * m4/strtoimax.m4: New file.
60398
60399         Module strtoumax.
60400         * m4/strtoumax.m4: New file.
60401
60402         Module xstrtoimax.
60403         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60404         jm_AC_PREREQ_XSTRTOIMAX.
60405         Moved the strtol prerequisites to strtol.m4.
60406         Moved the strtoll prerequisites to strtoll.m4.
60407         Moved the strtoimax prerequisites to strtoimax.m4.
60408
60409         Module xstrtoumax.
60410         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60411         jm_AC_PREREQ_XSTRTOUMAX.
60412         Moved the strtoul prerequisites to strtoul.m4.
60413         Moved the strtoull prerequisites to strtoull.m4.
60414         Moved the strtoumax prerequisites to strtoumax.m4.
60415
60416         Module chown.
60417         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60418         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60419
60420         Module dup2.
60421         * m4/dup2.m4: New file.
60422
60423         Module ftruncate.
60424         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60425         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60426
60427         Module getgroups.
60428         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60429         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60430
60431         Module gettimeofday.
60432         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60433         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60434         gl_PREREQ_GETTIMEOFDAY.
60435
60436         Module mkdir.
60437         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60438         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60439
60440         Module mkstemp.
60441         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60442         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60443         jm_AC_TYPE_UINTMAX_T.
60444         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60445
60446         Module stat.
60447         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60448         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60449
60450         Module lstat.
60451         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60452         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60453
60454         Module timespec.
60455         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60456         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60457         * m4/st_mtim.m4: Indentation.
60458
60459         Module nanosleep.
60460         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60461         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60462         gl_PREREQ_NANOSLEEP.
60463
60464         Module regex.
60465         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60466         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60467         (gl_REGEX): New macro.
60468
60469         Module rename.
60470         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60471         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60472
60473         Module rmdir.
60474         * m4/rmdir.m4: New file.
60475
60476         Module utime.
60477         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60478         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60479         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60480
60481         Module dirname.
60482         * m4/dirname.m4: New file.
60483
60484         Module getopt.
60485         * m4/getopt.m4: New file.
60486
60487         Module unistd-safer.
60488         * m4/unistd-safer.m4: New file.
60489
60490         Module fnmatch.
60491         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60492         declaration.
60493         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60494         (gl_FUNC_FNMATCH_POSIX): New macro.
60495         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60496         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60497         simply fnmatch.
60498
60499         Module exclude.
60500         * m4/exclude.m4: New file.
60501
60502         Module human.
60503         * m4/human.m4: New file.
60504
60505         Module acl.
60506         * m4/acl.m4: Nop.
60507
60508         Module backupfile.
60509         * m4/backupfile.m4: New file.
60510         * m4/d-ino.m4: Indentation.
60511
60512         Module fsusage.
60513         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60514         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60515         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60516
60517         Module dirfd.
60518         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60519         requirements.
60520
60521         Module euidaccess.
60522         * m4/euidaccess.m4: New file.
60523
60524         Module file-type.
60525         * m4/file-type.m4: New file.
60526
60527         Module fileblocks.
60528         * m4/fileblocks.m4: New file.
60529
60530         Module filemode.
60531         * m4/filemode.m4: New file.
60532
60533         Module isdir.
60534         * m4/isdir.m4: New file.
60535
60536         Module lchown.
60537         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60538         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60539
60540         Module makepath.
60541         * m4/makepath.m4: New file.
60542
60543         Module modechange.
60544         * m4/modechange.m4: New file.
60545
60546         Module mountlist.
60547         * m4/mountlist.m4: New file.
60548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60549         Indentation.
60550
60551         Module path-concat.
60552         * m4/path-concat.m4: New file.
60553
60554         Module pathmax.
60555         * m4/pathmax.m4: New file.
60556
60557         Module same.
60558         * m4/same.m4: New file.
60559
60560         Module save-cwd.
60561         * m4/save-cwd.m4: New file.
60562
60563         Module savedir.
60564         * m4/savedir.m4: New file.
60565
60566         Module xgetcwd.
60567         * m4/xgetcwd.m4: New file.
60568         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60569
60570         Module xreadlink.
60571         * m4/xreadlink.m4: New file.
60572
60573         Module safe-read.
60574         * m4/safe-read.m4: New file.
60575
60576         Module safe-write.
60577         * m4/safe-write.m4: New file.
60578
60579         Module closeout.
60580         * m4/closeout.m4: New file.
60581
60582         Module stdio-safer.
60583         * m4/stdio-safer.m4: New file.
60584
60585         Module getpass.
60586         * m4/getpass.m4: New file.
60587
60588         Module getugroups.
60589         * m4/getugroups.m4: New file.
60590
60591         Module group-member.
60592         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60593         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60594
60595         Module idcache.
60596         * m4/idcache.m4: New file.
60597
60598         Module userspec.
60599         * m4/userspec.m4: New file.
60600
60601         Module gettime.
60602         * m4/clock_time.m4: New file.
60603         * m4/gettime.m4: New file.
60604
60605         Module settime.
60606         * m4/settime.m4: New file.
60607
60608         Module posixtm.
60609         * m4/posixtm.m4: New file.
60610
60611         Module gethostname.
60612         * m4/gethostname.m4: New file.
60613
60614         Module canon-host.
60615         * m4/canon-host.m4: New file.
60616
60617         Module gettext.
60618         * m4/codeset.m4: New file, from gettext-0.11.5.
60619         * m4/gettext.m4: New file, from gettext-0.11.5.
60620         * m4/glibc21.m4: New file, from gettext-0.11.5.
60621         * m4/iconv.m4: New file, from gettext-0.11.5.
60622         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60623         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60624         * m4/inttypes.m4: New file, from gettext-0.11.5.
60625         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60626         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60627         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60628         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60629         * m4/lib-link.m4: New file, from gettext-0.11.5.
60630         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60631         * m4/progtest.m4: New file, from gettext-0.11.5.
60632         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60633         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60634         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60635
60636         Module localcharset.
60637         * m4/localcharset.m4: New file.
60638
60639         Module hard-locale.
60640         * m4/hard-locale.m4: New file.
60641
60642         Module mbswidth.
60643         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60644         onceonly macros.
60645         * m4/mbrtowc.m4: Add comment.
60646
60647         Module memcasecmp.
60648         * m4/memcasecmp.m4: New file.
60649
60650         Module memcoll.
60651         * m4/memcoll.m4: New file.
60652
60653         Module unicodeio.
60654         * m4/unicodeio.m4: New file.
60655
60656         Module rpmatch.
60657         * m4/rpmatch.m4: New file.
60658
60659         Module yesno.
60660         * m4/yesno.m4: New file.
60661
60662         Module exitfail.
60663         * m4/exitfail.m4: New file.
60664
60665         Module c-stack.
60666         * m4/c-stack.m4 (gl_C_STACK): New macro.
60667         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60668
60669         Module error.
60670         * m4/error.m4 (gl_ERROR): New macro.
60671         (jm_PREREQ_ERROR): Use onceonly macros.
60672
60673         Module fatal.
60674         * m4/fatal.m4: New file.
60675
60676         Module getloadavg.
60677         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60678         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60679
60680         Module getpagesize.
60681         * m4/getpagesize.m4: New file.
60682
60683         Module getusershell.
60684         * m4/getusershell.m4: New file.
60685
60686         Module physmem.
60687         * m4/physmem.m4: New file.
60688
60689         Module posixver.
60690         * m4/posixver.m4: New file.
60691
60692         Module quotearg.
60693         * m4/quotearg.m4: New file.
60694
60695         Module quote.
60696         * m4/quote.m4: New file.
60697
60698         Module readutmp.
60699         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60700
60701         Module sig2str.
60702         * m4/sig2str.m4: New file.
60703
60704         Other.
60705         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60706         ulonglong.m4.
60707         * m4/intmax_t.m4: New file.
60708         * m4/d-type.m4: Indentation.
60709         * m4/jm-macros.m4: Update.
60710         * m4/prereq.m4 (jm_PREREQ): Update.
60711         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60712         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60713         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60714         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60715         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60716         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60717         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60718         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60719         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60720         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60721         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60722         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60723         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60724         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60725         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60726         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60727         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60728         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60729         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60730
60731 2002-12-24  Bruno Haible  <bruno@clisp.org>
60732
60733         * MODULES.txt: Update according to m4/ changes.
60734
60735         Module gettext.
60736         * config.rpath: New file, from gettext-0.11.5.
60737
60738         * modules/*: New module descriptions.
60739         * gnulib-tool: New file.
60740         * MODULES.html.sh: New file.
60741
60742 2002-12-21  Karl Berry  <karl@gnu.org>
60743
60744         * doc/fdl.texi: update to version 1.2.
60745
60746 2002-12-19  Karl Berry  <karl@gnu.org>
60747
60748         * config/config.guess: update from prep.
60749
60750 2002-12-18  Bruno Haible  <bruno@clisp.org>
60751
60752         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60753         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60754
60755 2002-12-17  Bruno Haible  <bruno@clisp.org>
60756
60757         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60758         stdlib.h, string.h.
60759
60760 2002-12-17  Bruno Haible  <bruno@clisp.org>
60761
60762         * lib/canon-host.c (strdup): Remove unused declaration.
60763
60764         * lib/fsusage.c: Include full_read.h.
60765         (get_fs_usage): Use full_read instead of safe_read.
60766
60767         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60768
60769 2002-12-12  Karl Berry  <karl@gnu.org>
60770
60771         * config/config.guess: update from prep.
60772
60773 2002-12-11  Bruno Haible  <bruno@clisp.org>
60774
60775         * m4/setenv.m4: New file, from gettext-0.11.5.
60776
60777 2002-12-11  Bruno Haible  <bruno@clisp.org>
60778
60779         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60780         not unsetenv().
60781         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60782         modifications:
60783
60784         2002-12-11  Bruno Haible  <bruno@clisp.org>
60785
60786                 * setenv.c (alloca): Fall back to malloc.
60787                 (freea): New macro.
60788                 (setenv): Use freea() to free memory allocated with alloca().
60789
60790         2002-11-13  Bruno Haible  <bruno@clisp.org>
60791
60792                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60793                 function declarations.
60794                 * unsetenv.c (unsetenv): Likewise.
60795
60796         2002-03-04  Bruno Haible  <bruno@clisp.org>
60797
60798                 Portability to AIX 4.3.3.
60799                 * unsetenv.c: New file, extracted from setenv.c.
60800                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60801
60802         2001-12-20  Bruno Haible  <bruno@clisp.org>
60803
60804                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60805                 use malloc instead. For SunOS 4.
60806
60807         2001-12-11  Bruno Haible  <bruno@clisp.org>
60808
60809                 * setenv.c: Declare alloca.
60810                 (compar_fn_t): New typedef.
60811                 (KNOWN_VALUE, STORE_VALUE): Use it.
60812
60813         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60814         setenv.h.
60815
60816 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60817
60818         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60819         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60820         Choose values that are less likely to collide with system fnmatch
60821         options.
60822         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60823         defined (e.g., a pure POSIX system).
60824         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60825         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60826
60827 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60828
60829         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60830         a pain in practice to deal with generated m4 files.  This change
60831         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60832
60833         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60834         and jm-glibc-io.m4, as they are no longer a special case.
60835         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60836         kludge and the auto-generation stuff.  Check only whether the
60837         functions are declared, not whether they exist, since older hosts
60838         that don't declare the functions can't use the optimization anyway.
60839
60840 2002-12-06  Jim Meyering  <jim@meyering.net>
60841
60842         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60843
60844         Merge in changes from libc's misc/error.c, in preparation
60845         for the merge of gnulib's changes back into libc.
60846
60847         * lib/error.c (_): Define only if not already defined.
60848         Move definition to follow all #include directives.
60849         Include unlocked-io.h only if !_LIBC.
60850         [_LIBC]: Include <libio/libioP.h>.
60851         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60852         (fflush): Tweak definition to use INTUSE.
60853         (putc): Define.
60854
60855 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60856
60857         * lib/alloca.c [defined emacs]: Include "lisp.h".
60858         (xalloc_die) [defined emacs]: New macro.
60859         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60860         [! defined emacs]: Include <xalloc.h>.
60861         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60862         (pointer): Typedef to POINTER_TYPE *.
60863         (malloc): Remove decl; we now always use xmalloc.
60864         (alloca): Use old-style definition, since Emacs needs this.
60865         Check for arithmetic overflow when computing combined size.
60866
60867 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60868
60869         Do not generate unlocked-io.h automatically, since it's easier to
60870         maintain it by hand.
60871
60872         * lib/unlocked-io.h: New file, from GNU diffutils,
60873         but with proper copyright notice and attribution.
60874         * lib/gen-uio: Remove.
60875         * lib/Makefile.am: Add copyright notice.
60876         (libfetish_a_SOURCES): Add unlocked-io.h.
60877         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60878         (DISTCLEANFILES, io_functions): Remove macros.
60879         (EXTRA_DIST): Remove gen_uio.
60880         (unlocked-io.h): Remove rule.
60881
60882 2002-12-04  Jim Meyering  <jim@meyering.net>
60883
60884         Reflect the fact that stat.c and lstat.c are no longer generated.
60885         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60886         (DISTCLEANFILES): Likewise.
60887         (EXTRA_DIST): Likewise.
60888         (all_local): Don't depend on stat.c or lstat.c.
60889         (stat.c, lstat.c): Remove rules.
60890         (EXTRA_DIST): Remove xstat.in.
60891
60892         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60893         * lib/stat.c: New file.  Contents mostly from xstat.in.
60894         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60895         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60896
60897         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60898         too.
60899         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60900
60901 2002-12-03  Jim Meyering  <jim@meyering.net>
60902
60903         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60904         but not semantics, to minimize the differences between these two files.
60905         (safe_read): Change comment to mention SAFE_READ_ERROR.
60906
60907         * lib/safe-read.c (IS_EINTR): Define.
60908         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60909
60910 2002-12-02  Jim Meyering  <jim@meyering.net>
60911
60912         * lib/safe-read.c (EINTR): Define.
60913         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60914         (INT_MAX): Provide fallback.
60915         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60916
60917         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60918
60919 2002-12-02  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60922         Define, taken from safe-read.c.
60923         (INT_MAX): Provide fallback.
60924         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60925         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60926
60927         * lib/safe-read.c (EINTR): Remove definition.
60928         (safe_read): Don't use EINTR if it is absent.
60929
60930 2002-12-01  Jim Meyering  <jim@meyering.net>
60931
60932         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60933         zero.
60934         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60935
60936 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60937
60938         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60939         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60940         with `if (! (value < limit)) abort ();', for readability.
60941
60942 2002-11-26  Karl Berry  <karl@gnu.org>
60943
60944         * lib/strdup.c: copy from libc again, with jim's ok.
60945         * lib/.cppi-disable: re-add strdup.c
60946
60947 2002-11-25  Karl Berry  <karl@gnu.org>
60948
60949         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60950         instead of "strtol.c".
60951
60952 2002-11-25  Karl Berry  <karl@gnu.org>
60953
60954         * config/install-sh: update from automake for variable quoting, $0 in
60955         error msgs, etc.
60956
60957         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60958         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60959         entry.
60960
60961 2002-11-25  Jim Meyering  <jim@meyering.net>
60962
60963         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60964
60965 2002-11-24  Karl Berry  <karl@gnu.org>
60966
60967         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60968         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60969
60970 2002-11-24  Jim Meyering  <jim@meyering.net>
60971
60972         Update from coreutils:
60973
60974         * lib/mktime.c: Merge in changes from libc.
60975
60976         Avoid a link-time failure on some Linux systems.
60977         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60978         (otherwise).
60979         (__mon_yday): Declare with the STATIC attribute.
60980         (__mktime_internal): Likewise.
60981         Based on a report from Greg Schafer.
60982
60983 2002-11-23  Jim Meyering  <jim@meyering.net>
60984
60985         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60986         Use `unsigned', not `int', as type of index.
60987
60988         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60989
60990         * lib/fsusage.c: Remove unneeded parentheses around operands of
60991         `defined'.
60992
60993 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60994
60995         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60996         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60997         so that we can be included first.
60998         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60999         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61000         No need to include stddef.h or sys/types.h any more.
61001         Surround local include files with "", not "<>".
61002         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61003         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61004         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61005         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61006         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61007         (ISPRINT): Remove; no longer needed now that we assume C89.
61008
61009         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61010         Preserve errno.
61011
61012         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61013         quotearg_char): Use SIZE_MAX rather than
61014         (size_t) -1 when we are talking about "infinity".
61015
61016         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61017
61018 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61019
61020         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61021         hint that one should use `if (! x) abort ();' rather than `assert
61022         (x);', and anyway it's one less thing to worry about configuring.
61023         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61024         hash_rehash, hash_insert): Use abort rather than assert.
61025
61026 2002-11-22  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/safe-read.h: Assume C89. Add comments.
61029         (safe_read): Change return type to size_t.
61030         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61031         byte counts > SSIZE_MAX correctly.
61032         * lib/safe-write.h: New file.
61033         * lib/safe-write.c: New file.
61034         * lib/full-read.h: New file.
61035         * lib/full-read.c: New file.
61036         * lib/full-write.h: Assume C89. Add comments.
61037         * lib/full-write.c: Include safe-write.h.
61038         (full_write): Rewritten to use safe_write.
61039         Suggested by Jim Meyering and Paul Eggert.
61040
61041 2002-11-21  Jim Meyering  <jim@meyering.net>
61042
61043         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61044
61045         Merge in changes from the coreutils.
61046
61047         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61048         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61049         <stdint.h>.
61050         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61051         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61052         int.  Work more efficiently if X is the same width as uintmax_t.
61053         Do not compare X to -1, to avoid bogus compiler warning.
61054         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61055         Don't assume that f_frsize and f_bsize are the same type.
61056
61057         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61058         warning on FreeBSD.
61059
61060         * lib/makepath.c (make_path): Restore umask *before* creating the final
61061         component.
61062         (make_path): Minor reformatting.
61063
61064         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61065         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61066         HAVE_MALLOC/HAVE_REALLOC.
61067
61068         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61069         dummy ones.  At least on GNU/Linux systems, `auto' means something
61070         else.
61071         From Michael Stone.
61072
61073 2002-11-21  Bruno Haible  <bruno@clisp.org>
61074
61075         Remove case insensitive option matching.
61076         * lib/argmatch.h (argcasematch): Remove declaration.
61077         (ARGCASEMATCH): Remove macro.
61078         (__xargmatch_internal): Remove case_sensitive argument.
61079         (XARGMATCH): Update.
61080         (XARGCASEMATCH): Remove macro.
61081         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61082         case_sensitive argument.
61083         (argcasematch): Remove function.
61084         (__xargmatch_internal): Remove case_sensitive argument.
61085         (main): Use XARGMATCH instead of XARGCASEMATCH.
61086
61087         * lib/xmalloc.c: Change compile-time error message. Add comment about
61088         required autoconf version.
61089
61090 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61091
61092         Merge argmatch cleanups from Bison.  Assume C89.
61093
61094         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61095         Include stdlib.h, for EXIT_FAILURE.
61096         Always include <string.h>, since we assume C89.
61097         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61098         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61099         Include <stddef.h> instead, since it's all we need for size_t.
61100         (PARAMS): Remove.  All uses removed.
61101         (ARRAY_CARDINALITY): Do not bother to #undef.
61102         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61103         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61104         Remove unnecessary parentheses.
61105         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61106         Insert necessary parentheses.
61107         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61108         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61109
61110 2002-11-19  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61113         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61114
61115         * lib/mbswidth.h (PARAMS): Remove macro.
61116         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61117         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61118
61119         * lib/gcd.h (PARAMS): Remove macro.
61120         (gcd): Use ANSI C function declarations.
61121         * lib/gcd.c (gcd): Likewise.
61122
61123 2002-11-15  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/strcspn.c: Include <stddef.h>.
61126         (strcspn): Use ANSI C function declaration. Change return type to
61127         size_t. Use NULL.
61128         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61129         (strpbrk): Use NULL.
61130         * lib/strpbrk.h (PARAMS): Remove macro.
61131         (strpbrk): Use ANSI C function declaration.
61132         * lib/strstr.c: Don't include <sys/types.h>.
61133         * lib/strstr.h (PARAMS): Remove macro.
61134         (strstr): Use ANSI C function declarations.
61135
61136 2002-11-14  Karl Berry  <karl@gnu.org>
61137
61138         * config/mkinstalldirs: `do' on separate line, instead of
61139         `for var; do'.
61140
61141 2002-11-06  Bruno Haible  <bruno@clisp.org>
61142
61143         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61144         * lib/gcd.c (gcd): Likewise.
61145
61146 2002-11-05  Bruno Haible  <bruno@clisp.org>
61147
61148         * lib/gcd.h: New file, from gettext-0.11.5.
61149         * lib/gcd.c: New file, from gettext-0.11.5.
61150
61151 2002-11-05  Bruno Haible  <bruno@clisp.org>
61152
61153         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61154         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61155         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61156         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61157
61158         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61159         <libintl.h>.
61160         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61161         <libintl.h>.
61162
61163         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61164         * lib/human.c: Include gettext.h instead of <libintl.h>.
61165         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61166         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61167         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61168         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61169         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61170         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61171         (textdomain): Remove definition.
61172         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61173
61174         * lib/long-options.c: Remove include of <libintl.h> and definition of
61175         _.
61176         * lib/same.c: Remove include of <libintl.h> and definition of _.
61177
61178 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61179
61180         * lib/config.charset: A few additions for Solaris.
61181
61182 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61183
61184         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61185         * lib/localcharset.c (locale_charset): Declare as extern "C".
61186
61187 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61188
61189         * lib/config.charset: msdos in uk_UA uses CP1125.
61190
61191 2002-11-04  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61194         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61195         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61196         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61197         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61198
61199 2002-11-04  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/localcharset.c (locale_charset): Don't return an empty string.
61202
61203 2002-11-04  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61206         aliases.
61207
61208 2002-11-04  Bruno Haible  <bruno@clisp.org>
61209
61210         * lib/config.charset: Update for newest glibc. Add canonical names
61211         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61212
61213 2002-11-04  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/config.charset: Add support for NetBSD.
61216
61217 2002-11-04  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61220
61221 2002-11-01  Bruno Haible  <bruno@clisp.org>
61222
61223         * configure.in: Add AC_CONFIG_AUX_DIR call.
61224         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61225         test/Makefile.
61226         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61227
61228 2002-09-28  Karl Berry  <karl@gnu.org>
61229
61230         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61231         installed automake until the next release, since changes have been
61232         made.
61233
61234 2002-09-25  Karl Berry  <karl@gnu.org>
61235
61236         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61237         * lib/getopt*: copy from libc/posix.
61238         * lib/gettext.h: copy from gettext.
61239         * lib/.cppi-disable: add strdup.c, gettext.h.
61240
61241 2002-09-25  Karl Berry  <karl@gnu.org>
61242
61243         * config/srclist.txt: enable gettext.h check.
61244         * config/config.{guess,sub}: update from prep.
61245         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61246                 from automake 1.6.3.
61247         See srclist*.
61248
61249 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61250
61251         * regex.c (PATFETCH): Remove the translating fetch.
61252         (PATFETCH_RAW): Rename to PATFETCH.
61253         (set_image_of_range): New fun.
61254         (SET_RANGE_TABLE_WORK_AREA): Use it.
61255         (regex_compile): Don't translate the pattern chars so eagerly.
61256         Only do it when inserting an `exactn' bytecode or when handling
61257         a char-range.
61258         (mutually_exclusive_p): Avoid empty statement.
61259
61260 2002-07-06  Jim Meyering  <meyering@lucent.com>
61261
61262         * m4/README: Don't mention Makefile.am.in.
61263         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61264
61265 2002-07-01  Jim Meyering  <meyering@lucent.com>
61266
61267         * lib/c-stack.c: Include sys/time.h.
61268         From Volker Borchert.
61269
61270 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61271
61272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61273
61274 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61275
61276         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61277         New macro.  Use it uniformly instead of
61278         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61279         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61280         reported by Vin Shelton.
61281
61282 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61283
61284         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61285         Do not assume SA_SIGINFO behavior.
61286         Bug reported by Jim Meyering on NetBSD 1.5.2.
61287
61288 2002-06-22  Jim Meyering  <meyering@lucent.com>
61289
61290         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61291         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61292
61293         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61294         now that configure.ac uses AC_GNU_SOURCE.
61295         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61296         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61297
61298         Update to latest tools.  Suggestions from Paul Eggert.
61299         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61300         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61301         * m4/fnmatch.m4: Likewise.
61302         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61303         to AC_HEADER_STDBOOL
61304
61305 2002-06-22  Jim Meyering  <meyering@lucent.com>
61306
61307         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61308         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61309
61310 2002-06-22  Jim Meyering  <meyering@lucent.com>
61311
61312         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61313
61314         * lib/exitfail.c, exitfail.h: Likewise.
61315         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61316
61317         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61318         of fnmatch.h.
61319         (EXTRA_DIST): Add fnmatch_loop.c.
61320         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61321
61322         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61323         * lib/fnmatch.c: Update from diffutils-2.8.2.
61324         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61325         * lib/fnmatch.h: Remove file.
61326
61327 2002-06-21  Jim Meyering  <meyering@lucent.com>
61328
61329         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61330         * m4/mbrtowc.m4: Likewise.
61331
61332         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61333         * m4/mbswidth.m4: Reflect name change:
61334         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61335         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61336
61337         * m4/lib-link.m4: Update from gettext-0.11.2.
61338         * m4/gettext.m4: Likewise.
61339
61340         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61341         From Alfred M. Szmidt.
61342
61343 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61344
61345         * lib/file-type.h: Report an error if neither S_ISREG nor
61346         S_IFREG is defined, instead of using a test specific to glibc
61347         2.2.  This should be safe, since POSIX requires S_ISREG and
61348         Unix Version 7 had S_IFREG.  We don't need to check for
61349         <sys/types.h> since we don't use any symbols that it defines.
61350
61351 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61352
61353         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61354         $@-t, so that each temporary file name is unique and valid in the first
61355         8 characters, for operation under DOS.
61356
61357 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61358
61359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61360
61361 2002-06-15  Jim Meyering  <meyering@lucent.com>
61362
61363         Work even with DJGPP 2.03, which lacks support for symlinks.
61364         From Richard Dawe.
61365         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61366         is defined.
61367         * lib/lchown.c (S_ISLNK): Likewise.
61368
61369 2002-06-15  Jim Meyering  <meyering@lucent.com>
61370
61371         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61372         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61373         have been included before this file.
61374
61375 2002-06-14  Jim Meyering  <meyering@lucent.com>
61376
61377         * lib/file-type.h: Use the version from diffutils-2.8.2.
61378         * lib/file-type.c: Likewise.
61379
61380 2002-06-07  Jim Meyering  <meyering@lucent.com>
61381
61382         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61383         They're needed at least for NetBSD 1.5.2.
61384         ($statxfs_includes): Include those same headers.
61385         ($statxfs_includes): Include sys/vfs.h if available.
61386         ($statxfs_includes): Likewise for sys/statvfs.h.
61387         Check for the following members in both structs statfs and statvfs:
61388         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61389
61390 2002-06-01  Jim Meyering  <meyering@lucent.com>
61391
61392         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61393         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61394
61395 2002-05-28  Jim Meyering  <meyering@lucent.com>
61396
61397         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61398         Reported by Volker Borchert.
61399
61400 2002-05-27  Jim Meyering  <meyering@lucent.com>
61401
61402         Fix a problem seen only on nonconforming systems whereby ls.c's
61403         use of localtime, and then of gettimeofday would cause trouble:
61404         the localtime call used to initialize rpl_gettimeofday's save
61405         mechanism would clobber ls's current local time information so
61406         that in any long listing the first file would always be listed
61407         with date 1970-01-01.  Analysis by Volker Borchert.
61408
61409         * lib/gettimeofday.c (localtime): Undefine.
61410         (rpl_localtime): New function.
61411
61412 2002-05-27  Jim Meyering  <meyering@lucent.com>
61413
61414         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61415         localtime.
61416
61417         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61418         use the replacement function; it wouldn't resolve at link time.
61419         Reported by Volker Borchert.
61420
61421 2002-05-22  Jim Meyering  <meyering@lucent.com>
61422
61423         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61424         file-type.h.
61425         * lib/file-type.h: New file.
61426         * lib/file-type.c (file_type): New file/function.  Extracted from
61427         diffutils.
61428
61429 2002-04-30  Jim Meyering  <meyering@lucent.com>
61430
61431         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61432
61433 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61434
61435         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61436
61437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61438
61439         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61440         Do not check for alloca.h (no longer used) or stdbool.h (was never
61441         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61442
61443 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61444
61445         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61446
61447 2002-04-29  Jim Meyering  <meyering@lucent.com>
61448
61449         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61450         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61451         Use AC_FUNC_STRNLEN here instead.
61452
61453         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61454         With autoconf-2.53a, it's part of AC_PROG_CC.
61455
61456 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61457
61458         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61459         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61460
61461 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61462
61463         * lib/sig2str.h, lib/sig2str.c: New files.
61464         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61465
61466 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61467
61468         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61469         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61470         of 127, since 64 is the largest conceivable number for ancient
61471         nonstandard hosts.
61472         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61473
61474 2002-04-28  Jim Meyering  <meyering@lucent.com>
61475
61476         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61477
61478 2002-04-24  Jim Meyering  <meyering@lucent.com>
61479
61480         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61481         (jm_PREREQ): Use it.
61482
61483         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61484         mach/mach.h fcntl.h.
61485         Check for this function: setlocale.
61486
61487 2002-04-24  Jim Meyering  <meyering@lucent.com>
61488
61489         * lib/gettext.h: New file, from Gettext.
61490         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61491         (libfetish_a_SOURCES): Add gettext.h.
61492
61493 2002-04-16  Jim Meyering  <meyering@lucent.com>
61494
61495         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61496         ut_pid, ut_id, ut_exit.
61497
61498 2002-04-16  Jim Meyering  <meyering@lucent.com>
61499
61500         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61501         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61502         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61503
61504 2002-04-12  Jim Meyering  <meyering@lucent.com>
61505
61506         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61507         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61508         existence of the getmntinfo function.  Needed for Darwin 5.3.
61509
61510         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61511         This is necessary at least on Darwin 5.3.
61512
61513         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61514         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61515         strnlen.o in the library, and that makes some versions of ranlib
61516         object.
61517
61518 2002-04-12  Jim Meyering  <meyering@lucent.com>
61519
61520         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61521
61522 2002-04-09  Jim Meyering  <meyering@lucent.com>
61523
61524         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61525         to be more precise.  Rather than saying we're checking whether the
61526         function `works', say what we're testing.
61527         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61528         Reported by Bruno Haible.
61529
61530 2002-03-10  Jim Meyering  <meyering@lucent.com>
61531
61532         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61533         Suggestion from Santiago Vila.
61534
61535 2002-03-08  Jim Meyering  <meyering@lucent.com>
61536
61537         * lib/rename.c: Mention that this wrapper is needed also on
61538         mips-dec-ultrix4.4 systems.
61539
61540 2002-03-02  Jim Meyering  <meyering@lucent.com>
61541
61542         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61543         not HAVE_CLOCK_SETTIME.
61544
61545 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61546
61547         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61548         Check for clock_settime.
61549
61550 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61551
61552         * lib/nanosleep.h: Rename to....
61553         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61554
61555         * lib/gettime.c: New file.
61556         * lib/settime.c: New file.
61557         * lib/stime.c: Remove.
61558
61559         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61560         timespec.h.  Remove nanosleep.h.
61561
61562 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61563
61564         * m4/acl.m4: New file.
61565         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61566         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61567
61568 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61569
61570         * lib/acl.c, lib/acl.h: New files.
61571         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61572
61573 2002-02-24  Jim Meyering  <meyering@lucent.com>
61574
61575         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61576         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61577         cause trouble.  Reported by Nelson Beebe.
61578
61579 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61580
61581         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61582         compilers that don't know that xalloc_die never returns.
61583
61584 2002-02-20  Jim Meyering  <meyering@lucent.com>
61585
61586         * lib/getdate.c: Regenerate using bison-1.33.
61587
61588 2002-02-17  Jim Meyering  <meyering@lucent.com>
61589
61590         * config/config.guess (main): Don't use `head -1'; it's no longer
61591         portable. Use `sed 1q' instead.
61592
61593 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61594
61595         * m4/codeset.m4: Upgrade to gettext-0.11.
61596         * m4/gettext.m4: Upgrade to gettext-0.11.
61597         * m4/glibc21.m4: Upgrade to gettext-0.11.
61598         * m4/iconv.m4: Upgrade to gettext-0.11.
61599         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61600         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61601         * m4/lib-ld.m4: New file, from gettext-0.11.
61602         * m4/lib-link.m4: New file, from gettext-0.11.
61603         * m4/lib-prefix.m4: New file, from gettext-0.11.
61604         * m4/progtest.m4: Upgrade to gettext-0.11.
61605
61606 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61607
61608         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61609         (jm_PREREQ): Use it.
61610
61611 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61612
61613         * lib/posixver.c, lib/posixver.h: New files.
61614         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61615
61616 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61617             Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61620         (fwrite_success_callback): New declaration.
61621         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61622         print_unicode_char. Call failure callback instead of error.
61623         (fwrite_success_callback): New function.
61624         (exit_failure_callback): New function.
61625         (fallback_failure_callback): New function.
61626         (print_unicode_char): Call unicode_to_mb.
61627
61628 2002-01-26  Jim Meyering  <meyering@lucent.com>
61629
61630         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61631         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61632
61633 2002-01-26  Jim Meyering  <meyering@lucent.com>
61634
61635         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61636
61637 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61638
61639         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61640
61641 2002-01-22  Jim Meyering  <meyering@lucent.com>
61642
61643         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61644         Otherwise, some versions of automake would omit the rule that makes
61645         Makefile from Makefile.in.
61646
61647 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61648
61649         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61650         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61651         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61652         (memcoll): Set errno to zero if there is no error.
61653
61654         * lib/quotearg.c (quotearg_buffer_restyled):
61655         Fix bug with quoting buffers containing NUL when backslashing escapes.
61656         This bug was exposed by the other changes in this patch.
61657         (quotearg_n_options): New arg ARGSIZE.
61658         All callers changed.
61659         (quoting_options_from_style): New function.
61660         (quotearg_n_style): Use it.
61661         (quotearg_n_style_mem): New function.
61662
61663         * lib/quotearg.h (quotearg_n_style_mem): New function.
61664
61665 2002-01-19  Jim Meyering  <meyering@lucent.com>
61666
61667         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61668         Remove useless quotes: DF_PROG="df".
61669         * m4/strnlen.m4: New file.
61670
61671 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61672
61673         * lib/backupfile.c (ISDIGIT): Comment fix.
61674         * lib/getdate.y (ISDIGIT): Likewise.
61675         * lib/posixtm.c (ISDIGIT, year): Likewise.
61676         * lib/strverscmp.c (ISDIGIT): Likewise.
61677         * lib/userspec.c (ISDIGIT): Likewise.
61678
61679 2002-01-16  Jim Meyering  <meyering@lucent.com>
61680
61681         * lib/getdate.y: Add three semicolons, each just before a closing
61682         brace. Bison (as of version 1.31) no longer papers over that mistake.
61683
61684 2002-01-05  Jim Meyering  <meyering@lucent.com>
61685
61686         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61687
61688 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61689
61690         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61691         not silently exit merely because the output buffer happens to
61692         have nothing pending.
61693
61694 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61695
61696         See the big note in ../ChangeLog.
61697         * lib/human.c (suffixes): Prefer K to k for 1024.
61698         (generate_suffix_backwards): New function.
61699         (human_readable_inexact): Use it.
61700         * lib/xstrtol.c (__xstrtol): If there is no number but there
61701         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61702         Accept 'K' as well as 'k'.
61703
61704 2001-12-15  Jim Meyering  <meyering@lucent.com>
61705
61706         * lib/regex.h (__restrict_arr): Update from libc.
61707
61708         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61709         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61710         (STREQ): Define.
61711
61712 2001-12-14  Jim Meyering  <meyering@lucent.com>
61713
61714         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61715         Suggestion from Bruno Haible.
61716
61717 2001-12-10  Jim Meyering  <meyering@lucent.com>
61718
61719         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61720         xrealloc, Instead, include "xalloc.h".
61721         (initbuffer): Don't cast xmalloc return value to char*.
61722         (readline): Reword comment.
61723         Don't cast xrealloc return value to char*
61724         Return NULL, not 0.
61725
61726 2001-12-09  Jim Meyering  <meyering@lucent.com>
61727
61728         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61729         about `signed and unsigned type in conditional expression'.
61730         * lib/posixtm.c (posix_time_parse): Likewise.
61731
61732         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61733
61734         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61735         to avoid a pedantic warning.
61736
61737         * lib/getstr.c: Don't include assert.h.
61738         (getstr): Remove warning-evoking assertions.
61739         Return -1 if offset parameter is out of bounds.
61740         Change the type of a local from int to size_t.
61741
61742         * lib/strftime.c (my_strftime_localtime_r): Include this function
61743         definition in the `#if ! HAVE_TM_GMTOFF' block.
61744
61745         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61746         Include xalloc.h instead.
61747
61748 2001-12-02  Jim Meyering  <meyering@lucent.com>
61749
61750         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61751         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61752         included.
61753
61754         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61755         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61756
61757 2001-11-30  Akim Demaille  <akim@epita.fr>
61758
61759         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61760         before being defined.
61761
61762 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61763
61764         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61765         First arg is int, not unsigned.
61766         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61767         (SIZE_MAX, UINT_MAX): New macros.
61768         (quotearg_n_options): Abort if N is negative.
61769         Avoid overflow check on hosts where size_t is 64 bits and int
61770         is 32 bits, as overflow is impossible there.
61771         Fix off-by-one typo that caused unnecessary reallocation.
61772
61773 2001-11-27  Jim Meyering  <meyering@lucent.com>
61774
61775         * lib/tempname.c: Merge with version from libc.
61776         * lib/regex.c: Likewise.
61777
61778         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61779         systems for which STDC_HEADERS is 0, it was not included, resulting in
61780         a warning about an integer-to-pointer conversion problem with getenv.
61781         Reported by Volker Borchert.
61782
61783 2001-11-26  Jim Meyering  <meyering@lucent.com>
61784
61785         * lib/gtod.h: Remove file.
61786         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61787         * lib/gettimeofday.c: Don't include gtod.h.
61788         (GTOD_init): Remove function.
61789         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61790         Suggestion from Volker Borchert.
61791
61792 2001-11-23  Jim Meyering  <meyering@lucent.com>
61793
61794         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61795         it.
61796         * lib/hash.c (struct hash_table): Define it here instead.
61797
61798 2001-11-22  Jim Meyering  <meyering@lucent.com>
61799
61800         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61801
61802 2001-11-20  Jim Meyering  <meyering@lucent.com>
61803
61804         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61805         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61806
61807 2001-11-19  Jim Meyering  <meyering@lucent.com>
61808
61809         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61810         directory.  Use "conftestXXXXXX" as the template.
61811         Suggestion from Paul Eggert.
61812
61813         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61814         immediately, so the test doesn't mistakenly hit the max-open-files
61815         limit.
61816
61817 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61818
61819         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61820         (TEMPORARIES): New macro.
61821         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61822         removes an artificial limitation (e.g. HP-UX 10.20, where
61823         TMP_MAX is 17576).
61824
61825 2001-11-18  Jim Meyering  <meyering@lucent.com>
61826
61827         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61828
61829 2001-11-18  Jim Meyering  <meyering@lucent.com>
61830
61831         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61832         on SunOS 4.
61833
61834         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61835         files will be created before anything else.
61836
61837 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61838
61839         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61840         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61841
61842 2001-11-17  Jim Meyering  <meyering@lucent.com>
61843
61844         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61845         Prompted by a report from Bob Proulx.
61846
61847         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61848         Instead, require UTILS_FUNC_MKSTEMP.
61849
61850 2001-11-17  Jim Meyering  <meyering@lucent.com>
61851
61852         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61853         Now, that's done as part of AC_FUNC_STRTOD.
61854
61855 2001-11-17  Jim Meyering  <meyering@lucent.com>
61856
61857         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61858         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61859         rather than group writable.  Patch by Juan F. Codagnone.
61860
61861         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61862         xrealloc, Instead, include "xalloc.h".
61863
61864         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61865         Remove explicit declarations of xmalloc, xrealloc,
61866         and xstrdup.  Instead, include "xalloc.h".
61867
61868         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61869         unlocked-io.h.
61870         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61871         Likewise.
61872         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61873
61874         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61875         Reported by Padraig Brady.
61876
61877         * lib/mkstemp.c: #undef mkstemp.
61878         Include config.h.
61879         (rpl_mkstemp): Rename from mkstemp.
61880         Protoize.
61881
61882 2001-11-16  Jim Meyering  <meyering@lucent.com>
61883
61884         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61885         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61886         determine the amount of total physical memory, use pstat_getstatic.
61887         HPUX-11 doesn't define _SC_PHYS_PAGES.
61888         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61889         If sysconf couldn't be used to determine the amount of available
61890         physical memory, use both pstat_getstatic and pstat_getdynamic.
61891         Based on a patch from Bob Proulx.
61892
61893 2001-11-10  Jim Meyering  <meyering@lucent.com>
61894
61895         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61896         (jm_PREREQ): Use it.
61897
61898 2001-11-09  Jim Meyering  <meyering@lucent.com>
61899
61900         * m4/jm-macros.m4: Require autoconf-2.52f.
61901         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61902         Use these AC_-prefixed names, not the AM_-prefixed ones.
61903
61904         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61905
61906 2001-11-05  Jim Meyering  <meyering@lucent.com>
61907
61908         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61909
61910 2001-11-04  Jim Meyering  <meyering@lucent.com>
61911
61912         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61913         $DEFS.
61914
61915 2001-11-03  Jim Meyering  <meyering@lucent.com>
61916
61917         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61918         of AC_DEFUN.
61919
61920         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61921         know the name of the variable in the macro definition.
61922
61923 2001-11-03  Jim Meyering  <meyering@lucent.com>
61924
61925         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61926         in argmatch_to_argument call.
61927
61928         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61929         argument.
61930
61931         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61932         e.g., a fault due to an attempt to free a NULL pointer.
61933
61934 2001-11-01  Jim Meyering  <meyering@lucent.com>
61935
61936         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61937         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61938
61939 2001-11-01  Jim Meyering  <meyering@lucent.com>
61940
61941         * lib/dirfd.c, lib/dirfd.h: New files.
61942         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61943
61944         * lib/hash.c (hash_print) [TESTING]: Clean up.
61945
61946 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61947
61948         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61949         to avoid a warning if -Wall.
61950
61951 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61952
61953         * README: New file
61954         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61955         (per RMS's instructions, this is now the canonical source)
61956         * lgpl/, gpl/: New directories.
61957
61958 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61959
61960         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61961
61962 2001-10-21  Jim Meyering  <meyering@lucent.com>
61963
61964         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61965         this code would end up calling gettext even in packages built
61966         with --disable-nls.
61967         * lib/getopt.c (_): Likewise.
61968         * lib/regex.c (_): Likewise.
61969
61970 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61971
61972         * m4/error.m4 (jm_PREREQ_ERROR):
61973         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61974         AC_FUNC_STRERROR_R does that.
61975         Check for strerror declaration.
61976
61977         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61978         are supposed to have them these days.
61979         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61980         Merge changes from latest Autoconf CVS.
61981         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61982         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61983         POSIX decided to standardize on the int flavor of strerror_r.
61984
61985 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61986
61987         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61988         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61989         Use strerror_r that is only a macro, even if it is not a function.
61990         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61991         (private_strerror): Use prototypes, not old-style function definition.
61992         (print_errno_message): New function.
61993         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61994         char*-flavored one.
61995         (error_tail, error, error_at_line): Use it.
61996
61997 2001-10-11  Jim Meyering  <meyering@lucent.com>
61998
61999         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62000         and quote_n (1, ... to avoid clobbering a buffer.
62001
62002 2001-10-05  Jim Meyering  <meyering@lucent.com>
62003
62004         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62005         hash-pjw.h.
62006         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62007         * lib/hash-pjw.h: New file.
62008
62009 2001-09-30  Jim Meyering  <meyering@lucent.com>
62010
62011         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62012         `struct fsstat' has the `f_fstypename' member.
62013         Use that to define FS_TYPE, which is now used to make
62014         the getfsstat link test tighter.
62015
62016 2001-09-30  Jim Meyering  <meyering@lucent.com>
62017
62018         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62019         Include <sys/ucred.h>, for Apple Darwin.
62020         Include sys/mount.h and sys/fs_types.h only if available.
62021         (FS_TYPE): Define.
62022         (read_filesystem_list): Use FS_TYPE.
62023
62024 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62025
62026         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62027         a boolean context.
62028
62029 2001-09-29  Jim Meyering  <meyering@lucent.com>
62030
62031         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62032         [one-argument getmntent function]): Include stdio.h before mntent.h.
62033         SunOS 4.1.x needs it for the declaration of `FILE'.
62034         Patch by Volker Borchert.
62035
62036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62037         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62038         sys/fs_types.h, and make the link-test for getfsstat guard #include
62039         directives with appropriate #if HAVE_*_H tests so that we can
62040         detect getfsstat on Apple Darwin1.3.7 systems.
62041         Reported by Nelson Beebe.
62042         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62043
62044 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62045
62046         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62047         #defines strtoimax.  Also treat the other strto* functions
62048         like strtoimax.
62049
62050         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62051         Check for strtoul and strtoumax,
62052         as those declarations are made even in the signed case.
62053         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62054         Likewise, for strtol and strtoimax.
62055
62056 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62057
62058         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62059         #defines strtoimax.  Also treat the other strto* functions
62060         like strtoimax.
62061
62062         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62063         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62064         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62065
62066 2001-09-26  Jim Meyering  <meyering@lucent.com>
62067
62068         Most macros in unlocked-io.h had the wrong number of arguments.
62069         * lib/gen-uio: New script.
62070         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62071         * lib/unlocked-io.hin: Remove file.
62072         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62073         rather than trying to embed it here.
62074         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62075         Reported by Padraig Brady.
62076
62077 2001-09-25  Volker Borchert  <bt@teknon.de>
62078
62079         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62080         `result'.
62081
62082 2001-09-24  Jim Meyering  <meyering@lucent.com>
62083
62084         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62085
62086 2001-09-23  Jim Meyering  <meyering@lucent.com>
62087
62088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62089         instead of the mere test for existence of mntent.h.  The latter
62090         would get a false-positive on AIX 3.4 systems.
62091         In the outer getmntent if-block, don't die if neither of the getmntent
62092         tests succeeds.  Instead, just fall through and continue with the
62093         remaining tests.
62094
62095 2001-09-23  Jim Meyering  <meyering@lucent.com>
62096
62097         * lib/mountlist.c: Remove useless parentheses in #if directives.
62098         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62099         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62100
62101 2001-09-22  Jim Meyering  <meyering@lucent.com>
62102
62103         * m4/gettext.m4: New file.  From gettext.
62104         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62105         * m4/progtest.m4: Likewise
62106         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62107         * m4/glibc21.m4: Likewise.
62108
62109         * m4/libintl.m4: Remove.  No longer used.
62110
62111 2001-09-22  Jim Meyering  <meyering@lucent.com>
62112
62113         * lib/localcharset.c: Update from latest gettext.
62114         * lib/config.charset: Likewise.
62115
62116 2001-09-20  Jim Meyering  <meyering@lucent.com>
62117
62118         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62119         strtoimax.
62120         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62121         strtoumax.
62122
62123 2001-09-20  Jim Meyering  <meyering@lucent.com>
62124
62125         * lib/xstrtol.c (strtoimax): Guard declaration with
62126         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62127         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62128         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62129         (strtoumax): Likewise, for completeness (it wasn't necessary).
62130
62131 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62132
62133         * lib/strtoimax.c (HAVE_LONG_LONG):
62134         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62135         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62136         to work around bug in IBM C compiler.
62137
62138 2001-09-17  Jim Meyering  <meyering@lucent.com>
62139
62140         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62141         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62142         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62143         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62144         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62145         whenever the right hand side need not be expanded by the shell.
62146
62147 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62148
62149         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62150         library.  It's not correct, as some older glibcs are buggy.
62151         fnmatch wasn't fixed until glibc 2.2.
62152
62153         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62154         special shell magic here.
62155
62156 2001-09-16  Jim Meyering  <meyering@lucent.com>
62157
62158         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62159         * m4/jm-macros.m4: Require it.
62160
62161 2001-09-16  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/mkdir.c: New file.
62164
62165 2001-09-15  Jim Meyering  <meyering@lucent.com>
62166
62167         * m4/jm-macros.m4: Check for help2man.
62168
62169 2001-09-11  Jim Meyering  <meyering@lucent.com>
62170
62171         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62172         The body, by Paul Eggert, was moved here from configure.in.
62173         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62174
62175 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62176
62177         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62178         (jm_PREREQ): Use it.
62179
62180 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62181
62182         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62183         Use ssize_t, not int, to store result of readlink.
62184         Check for ssize_t overflow as well as size_t overflow,
62185         as POSIX says the result of readlink is implementation-defined
62186         when ssize_t overflows.
62187         Remove unnecessary cast to char*.
62188         Use free+malloc instead of realloc, as the storage doesn't need
62189         to be preserved and it's clearer and can be more efficient that way.
62190         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62191         * lib/xreadlink.h (xreadlink): Update prototype.
62192
62193 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62194
62195         * lib/xgetcwd.c: Revert some of the previous change; intead,
62196         fix the HAVE_GETCWD_NULL code to behave more like the
62197         !HAVE_GETCWD_NULL code used to.
62198
62199         Include "xalloc.h".
62200         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62201         invoke xalloc_die.
62202
62203 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62204
62205         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62206         sys/param.h, as pathmax.h includes them.
62207
62208 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62209
62210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62211         (jm_PREREQ_XGETCWD): New macro.
62212
62213         * m4/getcwd.m4: New file.
62214
62215 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62216
62217         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62218         like the HAVE_GETCWD_NULL code.
62219         Include pathmax.h if not HAVE_GETCWD.
62220         Do not include xalloc.h.
62221         (INITIAL_BUFFER_SIZE): New symbol.
62222         Do not use xmalloc / xrealloc, since the caller is responsible for
62223         handling errors.  Preserve errno around `free' during failure.
62224         Do not overrun buffer when using getwd.
62225
62226 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62227
62228         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62229         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62230         getcwd (NULL, 0).
62231
62232 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62233
62234         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62235         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62236         spotted by Jim Meyering.
62237
62238 2001-09-03  Jim Meyering  <meyering@lucent.com>
62239
62240         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62241         failure.
62242
62243 2001-09-02  Jim Meyering  <meyering@lucent.com>
62244
62245         * lib/error.c: Update from GNU libc.
62246
62247 2001-09-01  Jim Meyering  <meyering@lucent.com>
62248
62249         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62250         Used by df.
62251
62252 2001-09-01  Jim Meyering  <meyering@lucent.com>
62253
62254         * lib/xreadlink.c: New file.
62255         * lib/xreadlink.h: New file.
62256         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62257         xreadlink.h.
62258
62259         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62260         doesn't conflict with sparc Solaris 7's definition in
62261         /usr/include/sys/int_types.h.
62262
62263         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62264         files.
62265         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62266         and strncasecmp as r-values.  Unixware didn't have declarations.
62267
62268 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62269
62270         * lib/xstrtol.h: Add copyright notice.
62271         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62272         LONGINT_INVALID_SUFFIX_CHAR.
62273
62274 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62275
62276         * lib/xstrtol.c (strtoimax): New decl.
62277
62278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62279
62280         * lib/xgetcwd.c: Don't include pathmax.h.
62281         Include stdlib.h and unistd.h if available.
62282         Include xalloc.h.
62283         (xmalloc, xstrdup, free): Remove decls.
62284         (xgetcwd): Don't assume sizes fit in unsigned.
62285         Check for overflow when computing sizes.
62286         Simplify reallocation code.
62287
62288 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62289
62290         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62291         a directory's st_size can have an arbitrary value, so the old
62292         usage could waste an arbitrary amount of memory.  All uses
62293         changed.
62294         * lib/savedir.h: Update prototype.
62295
62296 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62297
62298         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62299
62300         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62301         old strtoimax.c.
62302
62303         Also, make the following further changes to make this file's
62304         configuration more similar to that of strtol.c:
62305         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62306         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62307         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62308         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62309         changed to signed values.
62310
62311         And make the following changes as well:
62312         Fix copyright notice, as 1999 was missing.
62313         (verify): New macro.
62314         (strtoimax): Check sizes at compile-time, not run-time.
62315         Prefer strtol to strtoll if both work.
62316         (main): Remove; it was not that useful and was a pain to maintain.
62317
62318         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62319
62320 2001-08-31  Jim Meyering  <meyering@lucent.com>
62321
62322         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62323         Use an initial, malloc'd, buffer of length 128 rather than
62324         a statically allocated one of length 1024.
62325
62326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62327
62328         Simplify code, partly by assuming autoconf 2.52 semantics.
62329
62330         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62331
62332         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62333         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62334         All uses removed.
62335         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62336         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62337         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62338         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62339         jm_AC_HEADER_INTTYPES_H.
62340         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62341
62342         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62343
62344         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62345         Quote first arg of AC_DEFUN.
62346         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62347         since they are needed to parse the include file even if we need
62348         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62349         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62350         but with opposite signedness.
62351
62352 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62353
62354         Merge 'exclude' changes from tar 1.13.22.
62355         This fixes one or two unlikely storage allocation overflow bugs,
62356         but doesn't change user-visible behavior otherwise.
62357
62358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62359
62360         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62361         (jm_PREREQ_EXCLUDE): New macro.
62362
62363 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62364
62365         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62366         tm to be declared.
62367
62368 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62369
62370         * lib/hash.c: Remove '2001' from copyright notice.
62371
62372 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62373
62374         * lib/full-write.h: New file.
62375         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62376         * lib/full-write.c: Correct credits, as cccp.c no longer
62377         exists and anyway it was so heavily changed from the old cccp
62378         code as to be unrecognizable.  Include full-write.h.
62379         (full_write) Return size_t, with short writes meaning failure.
62380         All callers changed.  This fixes a bug with large buffers
62381         on 64-bit hosts.
62382         * lib/utime.c: Include full-write.h.
62383
62384 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62385
62386         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62387         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62388         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62389         Include if available.
62390         (<xalloc.h>): Include
62391         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62392         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62393         collide with FNM macros.
62394         (struct patopts): New struct.
62395         (struct exclude): Use it, as exclude patterns now come with options.
62396         (new_exclude): Support above changes.
62397         (new_exclude, add_exclude_file):
62398         Initial size must now be a power of two to simplify overflow checking.
62399         (free_exclude, fnmatch_no_wildcards): New function.
62400         (excluded_filename): No longer requires options arg, as the options
62401         are determined by add_exclude.  Now returns bool, not int.
62402         (excluded_filename, add_exclude):
62403         Add support for the fancy new exclusion options.
62404         (add_exclude, add_exclude_file): Now takes int options arg.
62405         Check for arithmetic overflow when computing sizes.
62406         (add_exclude_file): xrealloc might modify errno, so don't
62407         realloc until after errno might be used.
62408
62409         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62410         New macros.
62411         (free_exclude): New decl.
62412         (add_exclude, add_exclude_file): Now takes int options arg.
62413         (excluded_filename): No longer requires options arg, as the options
62414         are determined by add_exclude.  Now returns bool, not int.
62415
62416 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62417
62418         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62419
62420 2001-08-27  Jim Meyering  <meyering@lucent.com>
62421
62422         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62423
62424         * lib/version-etc.c (N_): Remove definition.
62425         Revert most of last change.
62426         Instead, simply don't mark the `Copyright...' string for translation.
62427         Based on advice from Paul Eggert.
62428
62429         * lib/strtoxmax.c: Tweak comment.
62430
62431 2001-08-26  Jim Meyering  <meyering@lucent.com>
62432
62433         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62434
62435         * m4/xstrtoimax.m4: New file.
62436         * m4/xstrtoumax.m4: Add comments explaining why we
62437         AC_REPLACE_FUNCS(strtol).
62438
62439 2001-08-26  Jim Meyering  <meyering@lucent.com>
62440
62441         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62442         of copyright with `%s' so translators don't get an untranslated
62443         message in 2002.
62444         (COPYRIGHT_YEAR): Define.
62445         (version_etc): Use fprintf rather than fputs.
62446         Suggestion from Ulrich Drepper.
62447
62448         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62449
62450         * lib/strtoll.c: New file, from GNU libc.
62451         * lib/xstrtoimax.c: New file.
62452
62453         * lib/xstrtol.h: Add xstrtoimax.
62454         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62455         * lib/strtoimax.c: New file.  Likewise, but first define
62456         STRTOUXMAX_SIGNED.
62457
62458         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62459         ...
62460         * lib/strtoxmax.c: ... then renamed to this.
62461
62462 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62463
62464         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62465         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62466         (jm_AC_TYPE_INTMAX_T): New macro.
62467         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62468
62469         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62470
62471         * m4/longlong.m4: Renamed from ulonglong.m4.
62472         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62473         * m4/uintmax_t.m4: Removed.
62474
62475 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62476
62477         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62478         Port to Solaris 8, where 'sed' requires a space after the 'r'
62479         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62480         Redirect output to $tmp just once.
62481
62482 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62483
62484         * lib/addext.c (<errno.h>): Include.
62485         (errno): Declare if not defined.
62486         (addext): Work correctly when pathconf returns -1 and leaves
62487         errno alone because there is no limit.  Also, work even if
62488         pathconf returns a value greater than SIZE_MAX.
62489
62490 2001-08-12  Jim Meyering  <meyering@lucent.com>
62491
62492         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62493         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62494         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62495         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62496         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62497         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62498         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62499         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62500         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62501         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62502         utime.m4, utimes.m4, xstrtoumax.m4:
62503         Quote the first argument in each use of AC_DEFUN.
62504
62505 2001-08-12  Jim Meyering  <meyering@lucent.com>
62506
62507         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62508         Simply `return getcwd (NULL, 0);'.
62509         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62510         Use 1300 as initial value for length, not PATH_MAX.
62511
62512         * lib/pathmax.h: Clean up cpp syntax.
62513
62514 2001-08-12  Jim Meyering  <meyering@lucent.com>
62515
62516         * lib/gettimeofday.c: New file.
62517         * lib/gtod.h: New file.
62518         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62519
62520 2001-08-05  Jim Meyering  <meyering@lucent.com>
62521
62522         * m4/jm-macros.m4: Require autoconf-2.52.
62523
62524 2001-08-04  Jim Meyering  <meyering@lucent.com>
62525
62526         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62527         stmt, to get in sync with glibc.
62528
62529 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62530
62531         The following changes are from gettext 0.10.39 as maintained by
62532         Bruno Haible.
62533
62534         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62535         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62536         with inverted sense.  All uses changed.
62537
62538         * lib/mbswidth.c: Don't include <limits.h>.
62539         Include <stdlib.h> and <string.h> unconditionally.
62540         (iswcntrl, mbsinit, ISCNTRL): New macros.
62541         (mbsnwidth): Use K&R style function declarations.
62542         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62543         can optimize it when MB_CUR_MAX == 1.
62544         The width of control characters is zero, not 1.
62545
62546 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62547
62548         The following changes are from gettext 0.10.39 as maintained by
62549         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62550
62551         * m4/codeset.m4: Upgrade to serial AM1.
62552         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62553         all uses changed.  Quote first arg of AC_DEFUN.
62554         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62555
62556         * m4/iconv.m4: Upgrade to serial AM2.
62557         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62558         Add --with-libconv-prefix.
62559         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62560         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62561         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62562         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62563         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62564
62565         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62566         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62567         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62568         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62569         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62570         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62571         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62572         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62573         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62574
62575         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62576         string.h any more.
62577
62578         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62579         not the default value.
62580
62581         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62582         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62583         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62584         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62585         Also check for iswcntrl, used for wcwidth fallback.
62586         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62587         to Autoconf 2.13.
62588
62589 2001-08-03  Jim Meyering  <meyering@lucent.com>
62590
62591         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62592         as it was in the original.  Reported by Paul Eggert.
62593
62594 2001-07-16  Jim Meyering  <meyering@lucent.com>
62595
62596         * m4/gettimeofday.m4: New file.
62597         Prompted by a report from Bernhard Baehr.
62598
62599 2001-07-15  Jim Meyering  <meyering@lucent.com>
62600
62601         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62602         stuff. Now it's in ../Makefile.cfg.
62603
62604 2001-07-15  Jim Meyering  <meyering@lucent.com>
62605
62606         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62607         (BUILT_SOURCES): Add unlocked-io.h.
62608         (io_functions): Define.
62609         (unlocked-io.h): New rule.
62610         (DISTCLEANFILES): Add unlocked-io.h.
62611         (all-local): Depend on unlocked-io.h, to ensure it is created.
62612
62613         * lib/unlocked-io.hin: New file
62614
62615         * lib/regex.c: Update from glibc.
62616
62617 2001-07-05  Jim Meyering  <meyering@lucent.com>
62618
62619         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62620         recommendation.
62621         (libfetish_a_SOURCES): Put all .h files here instead.
62622         Remove a thus-exposed (better checks in automake) duplicate and
62623         two unnecessary .h files.
62624
62625 2001-07-04  Jim Meyering  <meyering@lucent.com>
62626
62627         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62628         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62629         distcheck failure.
62630
62631 2001-07-02  Jim Meyering  <meyering@lucent.com>
62632
62633         The following changes were prompted by suggestions from Bruno Haible.
62634
62635         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62636         is now generated.
62637         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62638         definition of EXTRA_DIST.
62639         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62640         ensure that the generated file is created/updated whenever the list
62641         of $(unlocked_functions) is changed.
62642         (jm-glibc-io.m4): New rule.
62643         (unlocked-io.h): New rule -- currently unused.
62644
62645 2001-06-24  Jim Meyering  <meyering@lucent.com>
62646
62647         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62648         unmatched right bracket, rather than kludging it with an extra,
62649         falsely-matching quote in a comment.  Patch by Akim Demaille.
62650
62651 2001-06-11  Jim Meyering  <meyering@lucent.com>
62652
62653         * lib/regex.c: Update from GNU libc.
62654
62655 2001-05-27  Jim Meyering  <meyering@lucent.com>
62656
62657         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62658         Check for ut_type in struct utmp.
62659
62660 2001-05-27  Jim Meyering  <meyering@lucent.com>
62661
62662         * lib/readutmp.h (UT_TYPE): Define.
62663
62664 2001-05-24  Jim Meyering  <meyering@lucent.com>
62665
62666         * lib/argmatch.c: Include "quote.h".
62667         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62668         quote function.  Reported by Göran Uddeborg.
62669
62670 2001-05-22  Jim Meyering  <meyering@lucent.com>
62671
62672         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62673         now that we use the package-supplied version unconditionally.
62674         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62675
62676 2001-05-21  Jim Meyering  <meyering@lucent.com>
62677
62678         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62679         shell syntax errors.
62680
62681 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62682
62683         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62684
62685 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62686
62687         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62688         Don't bother to check library strftime, since
62689         we'll be using our own my_strftime function anyway.
62690         Define my_strftime instead of strftime.
62691
62692 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62693
62694         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62695         which is not yet declared.
62696
62697 2001-05-15  Jim Meyering  <meyering@lucent.com>
62698
62699         * m4/regex.m4: Use proper quoting so brackets appear in the test
62700         program.
62701         Reported by, and with help from, Bruno Haible.
62702
62703 2001-05-13  Jim Meyering  <meyering@lucent.com>
62704
62705         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62706         undefined.
62707
62708 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62709
62710         dirname code cleanup.  base_name now behaves more compatibly
62711         with POSIX basename when given file names that have trailing
62712         slashes, and similarly for dir_name.  Add new primitives
62713         base_len and dir_len.  Put the directory-name-related decls
62714         into dirname.h.
62715
62716         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62717         * lib/backupfile.c (base_name): Likewise.
62718         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62719         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62720         * lib/makepath.c (strip_trailing_slashes): Likewise.
62721         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62722         ISSLASH): Likewise.
62723         * lib/rename.c (strip_trailing_slashes): Likewise.
62724         * lib/same.c (base_name): Likewise.
62725         * lib/stripslash.c (ISSLASH): Likewise.
62726
62727         * lib/addext.c: Include <dirname.h> after size_t is defined.
62728         * lib/backupfile.c: Likewise.
62729
62730         * lib/addext.c (addext): Use base_len to trim redundant
62731         trailing slashes instead of doing it ourselves.
62732         But do not trim the last slash if it is not redundant.
62733
62734         * lib/backupfile.c (find_backup_file_name,
62735         max_backup_version): Use base_len instead of rolling it ourselves.
62736         Handle the case of "" and (on DOS) "C:" correctly.
62737
62738         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62739         needed. Include <string.h>, <dirname.h>.
62740         (base_name): Allow file names ending in slashes, other than names
62741         that are all slashes.  In this case, return the basename followed
62742         by the slashes.  This is more general, and can be used in places
62743         where the original base_name purposely had an assertion failure.
62744         (base_len): New function.
62745
62746         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62747         Do not include <assert.h>; no longer needed.
62748         Include xalloc.h.
62749         (memrchr): Remove decl.
62750         (dir_name_r): Remove.
62751         (dir_len): Renamed from dirlen.  All callers changed.
62752         Rewrite in terms of base_name, for simplicity and consistency.
62753         (dir_name): Never return NULL.  All callers changed.
62754         Do not include <stdlib.h> in test program; no longer needed.
62755         return 0; is fine for test program.
62756
62757         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62758         New macros.
62759         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62760
62761         * lib/path-concat.c (path_concat): Use base_len to compute
62762         base length, not strlen; this means we cannot rely on memcpy
62763         to null-terminate.
62764
62765         * lib/same.c (STREQ): Remove.
62766         (same_name): Handle the case where the basename ends in trailing '/'.
62767
62768         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62769         a slash was stripped.  Do not strip the last slash after a
62770         file system prefix.
62771
62772 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62773
62774         * lib/Makefile.am (libfetish_a_SOURCES):
62775         Add strftime.c, since we now compile it on all hosts.
62776
62777         * lib/strftime.c (my_strftime):
62778         Define to nstrftime if emacs, but only if my_strftime is not defined.
62779         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62780         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62781         Add one more extra argument: a nanoseconds value.
62782         All uses changed.
62783         (ns): New macro.
62784         (my_strftime function): Add %N format.
62785         (emacs_strftimeu): Renamed from emacs_strftime,
62786         with extra ut argument.
62787
62788 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62789
62790         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62791
62792 2001-04-21  Jim Meyering  <meyering@lucent.com>
62793
62794         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62795         doesn't interfere.
62796
62797 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62798
62799         * m4/ftruncate.m4: Check for chsize.
62800         Link with ftruncate.o unconditionally if ftruncate is missing.
62801         This was required when cross-compiling to i586-mingw32msvc.
62802
62803 2001-04-08  Jim Meyering  <meyering@lucent.com>
62804
62805         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62806         recomputed; that's necessary when the offset spans a DST transition.
62807         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62808
62809 2001-04-02  Jim Meyering  <meyering@lucent.com>
62810
62811         * lib/regex.h, regex.c: Update from GNU libc.
62812
62813 2001-03-24  Jim Meyering  <meyering@lucent.com>
62814
62815         * m4/jm-macros.m4: Require autoconf-2.49d.
62816
62817 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62818
62819         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62820
62821 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62822
62823         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62824
62825 2001-03-17  Jim Meyering  <meyering@lucent.com>
62826
62827         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62828         now that the version in autoconf is equivalent.
62829         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62830
62831         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62832         Suggestion from Akim Demaille.
62833
62834         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62835         (jm_PREREQ_TEMPNAME): New function.
62836
62837 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62838
62839         * lib/tempname.c (uint64_t): Define to uintmax_t if
62840         not defined, and if UINT64_MAX is not defined.
62841         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62842         Reported by John David Anglin.
62843
62844 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62845
62846         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62847         resolve alias if codeset is empty.
62848         * lib/config.charset (BeOS): Use wildcard syntax.
62849
62850 2001-03-13  Jim Meyering  <meyering@lucent.com>
62851
62852         * lib/path-concat.c (path_concat)
62853         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62854         concatenating e.g., `C:' and `foo'.
62855         From Bruno Haible.
62856
62857 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62858
62859         * lib/localcharset.c (locale_charset): Don't use
62860         setlocale(LC_CTYPE,NULL). Don't return NULL.
62861         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62862
62863 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62864
62865         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62866         support for DOS/DJGPP.
62867
62868 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62869
62870         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62871         lacks mkstemp.  Compile our own tempname.c if we compile our own
62872         mkstemp.c, as mkstemp relies on tempname.
62873
62874 2001-03-01  Jim Meyering  <meyering@lucent.com>
62875
62876         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62877         AH_VERBATIM really does output its argument verbatim.
62878
62879 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62880
62881         * lib/Makefile.am (libfetish_a_SOURCES):
62882         Add dup-safer.c, fopen-safer.c.
62883         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62884
62885         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62886         * lib/unistd-safer.h: New files.
62887
62888 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62889
62890         The mkstemp replacement is taken from glibc 2.2.2, with some
62891         portability fixes for use outside glibc, as follows:
62892
62893         * lib/tempname.c (struct_stat64): New macro.
62894         (direxists, __gen_tempname): Use it.
62895         This avoids a portability problem with Solaris 8.
62896
62897         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62898         (<stddef.h>, <stdint.h>, <string.h>):
62899         Include only if STDC_HEADERS || _LIBC.
62900         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62901         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62902         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62903         (__set_errno): Define this macro if <errno.h> doesn't.
62904         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62905         Define these macros if <stdio.h> doesn't.
62906         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62907         Define these macros if <sys/stat.h>
62908         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62909         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62910         __xstat64): Define if not _LIBC.
62911         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62912         (__gen_tempname): Invoke gettimeofday only if
62913         HAVE_GETTIMEOFDAY || _LIBC;
62914         otherwise, fall back on plain "time".
62915         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62916
62917         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62918
62919         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62920
62921 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62922
62923         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62924
62925 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62926
62927         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62928         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62929         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62930         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62931
62932 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62933
62934         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62935         Remove workaround macros for hosts that have mbrtowc but not
62936         mbstate_t, as we now insist on proper declarations for both
62937         before using mbrtowc.
62938
62939 2001-02-17  Jim Meyering  <meyering@lucent.com>
62940
62941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62942         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62943         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62944         UnixWare 7.1.1.
62945
62946         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62947         rather than AC_CACHE_VAL.
62948
62949 2001-02-17  Jim Meyering  <meyering@lucent.com>
62950
62951         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62952         around included file name.
62953
62954         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62955
62956         * lib/strftime.c: Update from GNU libc (the only changes were to
62957         comments).
62958
62959 2001-02-17  Jim Meyering  <meyering@lucent.com>
62960
62961         * lib/regex.c: Update from libc.
62962
62963 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62964
62965         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62966         clash.
62967
62968 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62969
62970         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62971         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62972         Reported by Mark Hounschell via Paul Eggert.
62973
62974 2001-02-07  Jim Meyering  <meyering@lucent.com>
62975
62976         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62977
62978 2001-02-05  Jim Meyering  <meyering@lucent.com>
62979
62980         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62981         it includes the patch required for `large file' support with at least
62982         HP-UX's 10.20 /bin/cc.
62983
62984 2001-02-03  Jim Meyering  <meyering@lucent.com>
62985
62986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62987         AS_IF, now that it works once again (mysteriously).
62988         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62989
62990 2001-01-30  Jim Meyering  <meyering@lucent.com>
62991
62992         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62993         * m4/chown.m4: Rename conftestchown to conftest.chown.
62994         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62995         s/conftestdir2/conftest.d2/.
62996         * m4/utimes.m4: s/conftestdata/conftest.data/
62997         Inspired by Pavel Roskin's change in autoconf.
62998
62999 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63000
63001         * lib/config.charset: Update for FreeBSD 4.2.
63002
63003 2001-01-27  Jim Meyering  <meyering@lucent.com>
63004
63005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63006         a use of AS_IF.
63007         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63008
63009 2001-01-26  Jim Meyering  <meyering@lucent.com>
63010
63011         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63012         quotearg.c includes it.
63013
63014 2001-01-26  Jim Meyering  <meyering@lucent.com>
63015
63016         * lib/quotearg.c: Include stddef.h.
63017         * lib/quote.c: Include stddef.h.
63018         Reported by Axel Kittenberger.
63019
63020         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63021         line in double quotes so that it evokes a better diagnostic.
63022         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63023         Reported by Axel Kittenberger.
63024
63025 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63026
63027         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63028         as if it was a `charset'.
63029
63030 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63031
63032         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63033         has const.
63034
63035 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63036
63037         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63038         to avoid a warning.  Add back 'const' to inptr.
63039
63040 2001-01-20  Jim Meyering  <meyering@lucent.com>
63041
63042         Be sure that headers are checked before used in code compiled
63043         for the type checks.
63044         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63045         In place of that, invoke jm_CHECK_ALL_TYPES.
63046         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63047         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63048         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63049         The check for ssize_t was mistakenly run before the test for unistd.h.
63050
63051         The configure-time check for stdbool.h was missing.
63052         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63053         (jm_PREREQ_HASH): New function.
63054
63055 2001-01-17  Jim Meyering  <meyering@lucent.com>
63056
63057         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63058         for autoconf-2.49c.
63059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63060
63061 2001-01-16  Jim Meyering  <meyering@lucent.com>
63062
63063         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63064         From Bruno Haible.
63065
63066 2001-01-14  Jim Meyering  <meyering@lucent.com>
63067
63068         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63069         foo and bar.  Create conftestdir/ in the script, not in the C code.
63070         Remove directories in the script, not in the C code.
63071         Remove conftestdir{,2} before trying to create the directory.
63072         Make the entire configure script fail if the mkdir fails.
63073
63074 2001-01-14  Jim Meyering  <meyering@lucent.com>
63075
63076         * lib/rename.c: New file.  From Volker Borchert.
63077         Include stdlib.h, string.h or strings.h, and xalloc.h.
63078         Use strip_trailing_slashes rather than open-coding it.
63079
63080 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63081
63082         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63083
63084 2001-01-03  Jim Meyering  <meyering@lucent.com>
63085
63086         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63087         of local `inptr' to avoid warning with some system declarations of
63088         iconv.
63089
63090 2001-01-02  Volker Borchert  <bt@teknon.de>
63091
63092         * m4/rename.m4: New file.
63093         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63094
63095 2001-01-01  Jim Meyering  <meyering@lucent.com>
63096
63097         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63098         even on systems with utmpx.h.  It's necessary for the declaration of
63099         utmp's ut_user member.  Reported by Andreas Jaeger.
63100
63101         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63102         available. They are required for the declarations of getgrgid and
63103         getpwuid resp.
63104         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63105         Reported by Andreas Jaeger.
63106
63107 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63108
63109         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63110         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63111         so `make install' also works in VPATH builds.
63112
63113 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63114
63115         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63116         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63117         can be used in subdirectories.
63118
63119 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63120
63121         * lib/modechange.c: Do not assume that mode_t uses the
63122         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63123         the other-execute bit of FOO even if S_IXOTH != 1.
63124
63125         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63126         WOTH, XOTH, ALLM): New macros.
63127         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63128          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63129         Use them.
63130         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63131         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63132         (mode_compile):
63133         No need to use uintmax_t; unsigned long is long enough.
63134         Don't bother to get suffix since we don't use it.
63135
63136 2000-12-26  Jim Meyering  <meyering@lucent.com>
63137
63138         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63139         better with autoheader.
63140
63141 2000-12-24  Jim Meyering  <meyering@lucent.com>
63142
63143         * lib/hash.c (is_prime): Return explicit boolean values.
63144         (hash_get_first): Return NULL to appease Irix5.6's 89.
63145         Reported by Nelson Beebe.
63146
63147 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63148
63149         * lib/localcharset.c (locale_charset): Add support for Win32.
63150
63151 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63152
63153         * lib/physmem.h, lib/physmem.c: New files.
63154
63155         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63156         (noinst_HEADERS): Add physmem.h.
63157
63158         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63159         't' for compatibility with Solaris 8 sort.
63160
63161 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63162
63163         * lib/config.charset: Add support for BeOS.
63164
63165 2000-12-17  Jim Meyering  <meyering@lucent.com>
63166
63167         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63168         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63169
63170 2000-12-16  Jim Meyering  <meyering@lucent.com>
63171
63172         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63173         N and M) would have treated it like `chown N:N FILE'.
63174
63175         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63176
63177 2000-12-16  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63180         SHELLS_FILE to a file name that's useful on djgpp systems.
63181         Include stdlib.h.
63182         (ADDITIONAL_DEFAULT_SHELLS): Define.
63183         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63184         Based mostly on a patch from Prashant TR.
63185
63186 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63187
63188         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63189         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63190         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63191
63192 2000-12-08  Andreas Schwab  <schwab@suse.de>
63193
63194         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63195         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63196
63197 2000-12-07  Jim Meyering  <meyering@lucent.com>
63198
63199         * lib/stripslash.c (ISSLASH): Define.
63200         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63201         `/'.
63202         From Prashant TR.
63203
63204         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63205         (dir_name_r): Declare this function as static.
63206         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63207         manifest itself on a name containing a mix of slashes and
63208         backslashes.
63209         Make this function work with names starting with a DOS-style
63210         drive letter and colon prefix.
63211         (dir_name): Append `.' if necessary.
63212         Based mostly on patches from Prashant TR and Eli Zaretskii.
63213
63214         * lib/dirname.h (dir_name_r): Remove prototype.
63215
63216 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63217
63218         * m4/off_t-format.m4: Remove this file.
63219         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63220
63221 2000-12-06  Jim Meyering  <meyering@lucent.com>
63222
63223         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63224         replacement strtoull, we may well need the replacement strtoul, too.
63225         Check for declarations of strtoul and strtoull.
63226         Check for strtol.  Mainly as a cue to cause automake to include
63227         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63228         Check for limits.h -- strtol.c needs it.
63229
63230 2000-12-05  Jim Meyering  <meyering@lucent.com>
63231
63232         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63233
63234 2000-12-04  Jim Meyering  <meyering@lucent.com>
63235
63236         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63237         Also include memory.h, stdlib.h, unistd.h if appropriate.
63238         Reported by Andreas Jaeger (conflicting declaration of malloc).
63239
63240 2000-12-02  Jim Meyering  <meyering@lucent.com>
63241
63242         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63243         * m4/jm-macros.m4 (jm_MACROS): require it.
63244
63245 2000-12-02  Jim Meyering  <meyering@lucent.com>
63246
63247         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63248
63249 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63250
63251         * lib/memrchr.c: Include <config.h> before any system include file.
63252
63253 2000-11-30  Jim Meyering  <meyering@lucent.com>
63254
63255         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63256
63257 2000-11-30  Jim Meyering  <meyering@lucent.com>
63258
63259         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63260
63261 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63262
63263         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63264
63265 2000-11-26  Jim Meyering  <meyering@lucent.com>
63266
63267         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63268
63269 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63270
63271         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63272         size of (size_t) -1; it's not portable.
63273
63274 2000-11-17  Jim Meyering  <meyering@lucent.com>
63275
63276         * lib/strstr.c: Update from GNU libc.
63277
63278 2000-11-17  Akim Demaille  <akim@epita.fr>
63279
63280         * lib/obstack.h: Formatting changes.
63281         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63282         prevent type checking.
63283         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63284         cast the value to (void *): assigning a `foo *' to a `void *'
63285         variable is valid.
63286         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63287
63288 2000-11-16  Jim Meyering  <meyering@lucent.com>
63289
63290         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63291
63292 2000-11-11  Jim Meyering  <meyering@lucent.com>
63293
63294         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63295
63296 2000-11-10  Jim Meyering  <meyering@lucent.com>
63297
63298         * lib/obstack.h: Update from GNU libc.
63299         * lib/obstack.c: Likewise.
63300
63301 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63302
63303         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63304
63305 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63306
63307         * lib/getusershell.c (setusershell): Use rewind rather than
63308         fseek/fseeko, to avoid configuration hassles with fseeko.
63309         Don't bother opening SHELLS_FILE if shellstream is NULL;
63310         it's not necessary.
63311
63312 2000-11-05  Jim Meyering  <meyering@lucent.com>
63313
63314         * lib/makepath.h (make_dir): Declare.
63315         * lib/makepath.c (make_dir): Remove `static' attribute.
63316         Tweak a comment.
63317
63318 2000-11-04  Jim Meyering  <meyering@lucent.com>
63319
63320         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63321
63322 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63323
63324         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63325         last one in a bucket, advance to the next bucket.
63326
63327 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63328
63329         * lib/fnmatch.c: Do not comment out all the code if we are using
63330         the GNU C library, because in some cases we are replacing buggy
63331         code in the GNU C library itself.
63332
63333 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63334
63335         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63336         (regex_compile): Catch bogus \(\1\).
63337
63338 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63339
63340         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63341         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63342         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63343
63344 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63345
63346         * lib/error.h, getline.h, modechange.h:
63347         Remove "2000" from Copyright line, as the file hasn't been
63348         changed this year other than in the copyright notice.
63349
63350         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63351         was changed this year.
63352
63353 2000-10-29  Jim Meyering  <meyering@lucent.com>
63354
63355         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63356         renaming.
63357         * m4/ls-mntd-fs.m4: Likewise
63358
63359 2000-10-29  Jim Meyering  <meyering@lucent.com>
63360
63361         * lib/xstat.in: Fix grammar in comment.
63362
63363 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63364
63365         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63366         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63367         doesn't define __restrict_arr.
63368
63369 2000-10-28  Jim Meyering  <meyering@lucent.com>
63370
63371         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63372         (jm_PREREQ_MEMCHR): New function.
63373
63374 2000-10-28  Jim Meyering  <meyering@lucent.com>
63375
63376         * lib/memchr.c: Update from libc.
63377         Adjust for portability:
63378         [HAVE_STDLIB_H]: Include stdlib.h.
63379         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63380         Undef __memchr, too.
63381         [!weak_alias]: Define __memchr to memchr.
63382
63383         * lib/regex.c: Update from libc.
63384         * lib/regex.h: Likewise.
63385         * lib/getopt1.c: Likewise.
63386         * lib/memcmp.c: Likewise.
63387
63388         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63389         Avoid using fseek, when possible -- it's broken by design.
63390         Patch by Ulrich Drepper.
63391
63392 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63393
63394         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63395         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63396         Giving in to popular pressure to shut up the compiler with casts.
63397
63398 2000-10-26  Jim Meyering  <meyering@lucent.com>
63399
63400         * lib/strftime.c: Update from libc.
63401
63402 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63403
63404         * regex.c: More `unsigned char' -> `re_char' changes.
63405         Also change several `int' into `re_wchar_t'.
63406         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63407         (PUSH_FAILURE_POINTER): Don't cast any more.
63408         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63409         We want GCC to complain, since this piece of code makes
63410         re_match non-reentrant, which *should* be fixed.
63411         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63412         (EXTEND_BUFFER): Use RETALLOC.
63413         (SET_LIST_BIT): Don't cast.
63414         (re_wchar_t): New type.
63415         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63416         that those two functions will always properly return.
63417         (IMMEDIATE_QUIT_CHECK): Cast to void.
63418         (analyse_first): Use recursion rather than an explicit stack.
63419         (re_compile_fastmap): Can't fail anymore.
63420         (re_search_2): Don't check re_compile_fastmap for failure.
63421         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63422         Now also sets the new value (passed in a new argument).
63423         (re_match_2_internal): Use it.
63424         Also, use a new var `reg' of type size_t when looping through regs
63425         rather than reuse the inappropriate `mcnt'.
63426
63427 2000-10-25  Jim Meyering  <meyering@lucent.com>
63428
63429         * lib/obstack.c: Update from libc.
63430
63431 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63432
63433         * regex.c (regex_compile): Change the way of handling a range from
63434         a char less than 256 to a char not less than 256.
63435
63436 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63437
63438         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63439         NT-Emacs only.
63440         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63441         so that re_search functions only quit when callers expect them to.
63442
63443 2000-10-23  Jim Meyering  <meyering@lucent.com>
63444
63445         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63446         wrong.  That set_locale call must not have any side effects.
63447         From Paul Eggert.
63448
63449 2000-10-22  Jim Meyering  <meyering@lucent.com>
63450
63451         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63452         [CYCLIC]: Remove now-unused definition.
63453
63454         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63455         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63456         Suggestion from Ulrich Drepper.
63457
63458 2000-10-21  Jim Meyering  <meyering@lucent.com>
63459
63460         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63461         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63463
63464 2000-10-21  Jim Meyering  <meyering@lucent.com>
63465
63466         * lib/dirname.c (memrchr): Declare if necessary.
63467         (dir_name): Remove the restriction that there be no
63468         trailing slashes.  Now, this code skips past them, effectively
63469         ignoring them.
63470         [TEST_DIRNAME] (main): New unit tests.
63471
63472         * lib/memrchr.c: New file from GNU libc.
63473         Undef __memrchr, too.
63474         [!weak_alias]: Define __memrchr to memrchr.
63475         Guard weak_alias use with `#ifdef weak_alias'.
63476
63477 2000-10-21  Jim Meyering  <meyering@lucent.com>
63478
63479         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63480         (dir_name): Use dir_name_r.
63481         * lib/dirname.h (dir_name_r): Declare it.
63482
63483 2000-10-17  Jim Meyering  <meyering@lucent.com>
63484
63485         * lib/quote.h (PARAMS): Define and use.
63486         Reported by Akim Demaille.
63487
63488         * lib/getopt.c: Update from libc.
63489
63490 2000-10-16  Jim Meyering  <meyering@lucent.com>
63491
63492         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63493         setlocale.
63494         From Jan Fedak.
63495
63496 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63497
63498         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63499
63500 2000-09-25  Jim Meyering  <meyering@lucent.com>
63501
63502         * lib/md5.h (rol): Define (from GnuPG).
63503
63504         * lib/sha.c: Give credit (GnuPG) where due.
63505         (M): Use rol rather than open-coding it.
63506         Add a FIXME comment.
63507
63508 2000-09-21  Jim Meyering  <meyering@lucent.com>
63509
63510         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63511         Reported by Michael Stone.
63512
63513 2000-09-20  Jim Meyering  <meyering@lucent.com>
63514
63515         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63516         (noinst_HEADERS): Add sha.h.
63517         Based on code from Scott G. Miller and from GnuPG.
63518
63519 2000-09-18  Jim Meyering  <meyering@lucent.com>
63520
63521         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63522         LIBS. Otherwise, everyone ends up linking with -lelf for some
63523         configurations.
63524         Reported by Mike Stone.
63525
63526 2000-09-15  Jim Meyering  <meyering@lucent.com>
63527
63528         * lib/regex.c: Update from libc.
63529
63530 2000-09-10  Jim Meyering  <meyering@lucent.com>
63531
63532         * lib/getopt.c (_getopt_internal): Update from glibc.
63533
63534 2000-09-09  Jim Meyering  <meyering@lucent.com>
63535
63536         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63537         think it should be used as a general replacement for isascii.
63538         * lib/fnmatch.c: Likewise.
63539         * lib/mbswidth.c: Likewise
63540         * lib/regex.c: Likewise.
63541
63542         Don't use atoi.
63543         * lib/userspec.c: Include sys/param.h and limits.h.
63544         Include xstrtol.h.
63545         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63546         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63547         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63548         UID, GID.  Check range.
63549
63550 2000-09-06  Jim Meyering  <meyering@lucent.com>
63551
63552         * lib/getopt.c (_getopt_internal): Update from glibc.
63553
63554 2000-08-30  Jim Meyering  <meyering@lucent.com>
63555
63556         * lib/strftime.c: Merge in changes from GNU libc.
63557
63558 2000-08-26  Jim Meyering  <meyering@lucent.com>
63559
63560         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63561         * m4/fpending.m4: New file.
63562
63563 2000-08-26  Jim Meyering  <meyering@lucent.com>
63564
63565         * lib/closeout.c: Include "__fpending.h".
63566         (close_stdout_status): Return right away if there's nothing to flush.
63567
63568         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63569         * lib/__fpending.c: New file.
63570         * lib/__fpending.h: New file.
63571
63572 2000-08-20  Jim Meyering  <meyering@lucent.com>
63573
63574         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63575         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63576         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63577
63578 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63579
63580         Improve fileutils installation on systems where running
63581         programs (like install) can't be unlinked.
63582         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63583         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63584
63585 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63586
63587         Standardize on "memory exhausted" instead of "Memory exhausted"
63588         or "virtual memory exhausted".
63589         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63590         "virtual memory exhausted".
63591         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63592         our own message.
63593         * lib/userspec.c (parse_user_spec): Likewise.
63594         * lib/bumpalloc.h: comment fix
63595         * lib/same.c, userspec.c: Include xalloc.h.
63596
63597         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63598         not char *const and pointing to a constant array.
63599         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63600         (xrealloc): Comment fix.
63601
63602         * lib/userspec.c (parse_user_spec):
63603         Don't translate a message until just before returning,
63604         to avoid unnecessary translation.
63605
63606 2000-08-07  Jim Meyering  <meyering@lucent.com>
63607
63608         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63609         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63610         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63611         getgroups.c, gethostname.c, getopt.h, group-member.c,
63612         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63613         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63614         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63615         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63616         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63617         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63618         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63619         yesno.c: Back out Copyright date changes for each file with no change
63620         this year.  This eases coordination with other programs using the same
63621         source code modules.  From Paul Eggert.
63622
63623 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63624
63625         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63626         not char, for compatibility with glibc 2.1.3 strftime.c.
63627
63628 2000-08-03  Greg McGary  <greg@mcgary.org>
63629
63630         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63631         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63632         (EXTEND_BUFFER): Use them.
63633
63634 2000-08-01  Jim Meyering  <meyering@lucent.com>
63635
63636         * lib/dirname.c (ISSLASH): Define.
63637         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63638         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63639         both `\' and `/' may be use as path separators.
63640         Based on a patch from Prashant TR.
63641
63642 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63643
63644         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63645         slot vector a constant, since it might get modified.
63646
63647 2000-07-31  Jim Meyering  <meyering@lucent.com>
63648
63649         * lib/xmalloc.c: Use `virtual memory exhausted', not
63650         `Memory exhausted'.
63651         * lib/obstack.c (print_and_abort): Likewise.
63652
63653 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63654
63655         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63656         buffer, so that the caller can always quote one small
63657         component of a "memory exhausted" message in slot 0.
63658         From a suggestion by Jim Meyering.
63659
63660 2000-07-30  Jim Meyering  <meyering@lucent.com>
63661
63662         * lib/makepath.c (make_path): Quote the other instance, too.
63663
63664         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63665         (STATIC_BUF_SIZE): Define.
63666         (quotearg_n_options): Use only statically allocated storage when
63667         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63668         than STATIC_BUF_SIZE.
63669
63670 2000-07-29  Jim Meyering  <meyering@lucent.com>
63671
63672         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63673         * lib/dirname.c (dir_name): Likewise.
63674
63675         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63676         `/'.
63677
63678         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63679         (dir_name): Assert that there are no trailing slashes.
63680
63681 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63682
63683         * lib/mbswidth.h (mbswidth): Add a flags argument.
63684         (mbswidth): New declaration.
63685         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63686         * lib/mbswidth.c (mbswidth): Add a flags argument.
63687         (mbsnwidth): New function.
63688
63689 2000-07-24  Jim Meyering  <meyering@lucent.com>
63690
63691         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63692
63693 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63694
63695         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63696
63697 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63698
63699         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63700         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63701         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63702         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63703         invoke multibyte primitives.
63704
63705 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63706
63707         * lib/quotearg.c:
63708         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63709         so that mbstate_t is always defined.
63710
63711         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63712         be 1 in at least one GCC installation, and this configuration
63713         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63714         performance on hosts that have mbrtowc but have only unibyte
63715         locales, but I assume these hosts are rare.
63716
63717 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63718
63719         * lib/mbswidth.c (_XOPEN_SOURCE):
63720         Don't define; this causes problems on Solaris 7.
63721         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63722
63723 2000-07-23  Jim Meyering  <meyering@lucent.com>
63724
63725         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63726         too: getgrgid, getpwuid, getuid.
63727
63728 2000-07-23  Jim Meyering  <meyering@lucent.com>
63729
63730         * lib/basename.c (base_name): Add an assertion.
63731
63732 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63733
63734         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63735         shadow its mbsinit function.
63736
63737 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63738
63739         * lib/mbswidth.h: New file.
63740         * lib/mbswidth.c: New file.
63741         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63742         (noinst_HEADERS): Add mbswidth.h.
63743
63744 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63745
63746         * lib/config.charset: Add support for FreeBSD. Improve support for
63747         HP-UX and IRIX 6.
63748
63749 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63750
63751         * m4/mbswidth.m4: New file.
63752         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63753
63754 2000-07-15  Jim Meyering  <meyering@lucent.com>
63755
63756         * lib/makepath.c: Include quote.h.
63757         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63758         corresponding argument in a `quote (...)' call.
63759         Give better diagnostics.
63760
63761         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63762         (noinst_HEADERS): Add quote.h.
63763
63764         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63765         from tar's src/misc.c.
63766         * lib/quote.h: New file.  Prototypes for same.
63767
63768 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63769
63770         From a suggestion by Bruno Haible.
63771         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63772         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63773         to decide whether to define the BeOS workaround macro;
63774         this adjusts to the change to AC_MBSTATE_T.
63775
63776 2000-07-14  Jim Meyering  <meyering@lucent.com>
63777
63778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63779         jm_AC_TYPE_UINTMAX_T.
63780
63781 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63782
63783         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63784
63785         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63786         quotearg_buffer_restyled): Add support for
63787         clocale_quoting_style.  Undo previous change to
63788         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63789         and "{RIGHT QUOTATION MARK}" msgids.
63790
63791 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63792
63793         From a suggestion by Bruno Haible.
63794         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63795         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63796         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63797         and mbstate_t, to a single-part test that simply defines mbstate_t.
63798         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63799         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63800
63801 2000-07-10  Jim Meyering  <meyering@lucent.com>
63802
63803         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63804
63805         * m4/gnu-source.m4: Output to confdefs.h directly.
63806         Suggestion from Akim Demaille.
63807
63808 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63809
63810         The old behavior of quoting `like this' doesn't look good with
63811         newer, ISO-style fonts.  See:
63812         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63813
63814         Instead, quote "like this" by default.  Let the translator
63815         tailor the locale-specific quoting behavior by providing
63816         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63817
63818         * lib/quotearg.c (N_): New macro.
63819         (gettext_default): New function.
63820         (quotearg_buffer_restyled): Use
63821         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63822         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63823
63824 2000-07-09  Jim Meyering  <meyering@lucent.com>
63825
63826         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63827         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63828
63829         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63831
63832 2000-07-09  Jim Meyering  <meyering@lucent.com>
63833
63834         * lib/Most files: Update copyright dates to include 2000.
63835
63836 2000-07-08  Jim Meyering  <meyering@lucent.com>
63837
63838         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63839         if not defined.
63840         (xgethostname): Remove now-unnecessary #ifdef.
63841         Move declaration of `err' into loop where it's used.
63842
63843 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63844         and Bruno Haible  <haible@clisp.cons.org>
63845
63846         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63847         only if the test for an object-type mbstate_t fails.  This
63848         prevents us from mistakenly reporting that mbstate_t is a
63849         system object type after we "#define mbstate_t int" to work
63850         around its lack.
63851
63852 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63853         and Bruno Haible  <haible@clisp.cons.org>
63854
63855         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63856
63857 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63858
63859         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63860         to strerror_r.
63861         Include <ctype.h> for use of isalpha.
63862
63863 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63864
63865         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63866         by allocating a larger buffer. Test the gethostname return value for
63867         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63868         returns an error and ENAMETOOLONG isn't defined.
63869
63870 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63871
63872         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63873         dimension.
63874
63875 2000-07-04  Jim Meyering  <meyering@lucent.com>
63876
63877         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63878         of the deprecated AC_CHECKING.
63879
63880 2000-07-04  Jim Meyering  <meyering@lucent.com>
63881
63882         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63883         Reported by Bruno Haible.
63884
63885 2000-07-04  Jim Meyering  <meyering@lucent.com>
63886
63887         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63888         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63889         lacks mbrtowc.
63890
63891 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63892
63893         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63894         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63895
63896 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63897         and Bruno Haible  <haible@clisp.cons.org>
63898
63899         * lib/quotearg.c (mbrtowc):
63900         Assign to *pwc, and return 1 only if result is nonzero.
63901         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63902
63903 2000-07-03  Jim Meyering  <meyering@lucent.com>
63904
63905         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63906
63907 2000-07-03  Jim Meyering  <meyering@lucent.com>
63908
63909         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63910         This is necessary to get a definition of e.g., UTMP_FILE on
63911         HP-UX 10.20.
63912         From Bob Proulx.
63913
63914 2000-07-02  Jim Meyering  <meyering@lucent.com>
63915
63916         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63917
63918         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63919         AC_LIBOBJ(function_name).
63920         * m4/chown.m4: Likewise.
63921         * m4/fnmatch.m4: Likewise.
63922         * m4/ftruncate.m4: Likewise.
63923         * m4/getgroups.m4: Likewise.
63924         * m4/getline.m4: Likewise.
63925         * m4/group-member.m4: Likewise.
63926         * m4/jm-macros.m4: Likewise.
63927         * m4/lstat.m4: Likewise.
63928         * m4/malloc.m4: Likewise.
63929         * m4/memcmp.m4: Likewise.
63930         * m4/nanosleep.m4: Likewise.
63931         * m4/putenv.m4: Likewise.
63932         * m4/realloc.m4: Likewise.
63933         * m4/regex.m4: Likewise.
63934         * m4/stat.m4: Likewise.
63935         * m4/strftime.m4: Likewise.
63936
63937 2000-07-02  Jim Meyering  <meyering@lucent.com>
63938
63939         * lib/quotearg.c (mbstate_t): Don't define here.
63940
63941 2000-07-02  Jim Meyering  <meyering@lucent.com>
63942
63943         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63944
63945 2000-07-01  Jim Meyering  <meyering@lucent.com>
63946
63947         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63948
63949 2000-07-01  Jim Meyering  <meyering@lucent.com>
63950
63951         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63952         problem.
63953
63954 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63955
63956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63957         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63958
63959 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63960
63961         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63962         per change in ../m4/ls-mntd-fs.m4.
63963         (read_filesystem_list): Ignore symbolic links.
63964
63965 2000-06-29  Jim Meyering  <meyering@lucent.com>
63966
63967         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63968         for declaration of strcmp.
63969
63970         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63971
63972         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63973         Avoid warning by casting result to `char *' to remove `const'.
63974
63975 2000-06-28  Jim Meyering  <meyering@lucent.com>
63976
63977         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63978         included by quotearg.c, for which we perform this test.  From
63979         Bruno Haible.
63980
63981 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63982
63983         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63984         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63985         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63986
63987 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63988
63989         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63990
63991 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63992
63993         savedir now sets errno on failure and invokes xmalloc to get memory.
63994         Fix a couple of other minor bugs while we're at it.
63995
63996         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63997         (NAMLEN): Remove macro.
63998         (malloc, realloc): Remove decls.
63999         (stpcpy): Likewise.
64000         ("xalloc.h"): Include.
64001         (NAME_SIZE_DEFAULT): New macro.
64002         (savedir): Use xmalloc / xrealloc to allocate memory.
64003         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64004         Skip "" directory entries.
64005         Use strlen to calculate directory entry length, since the old method
64006         is rarely used these days and isn't worth supporting.
64007         Don't use a pointer after freeing it.
64008         Check for integer overflow when calculating allocation size.
64009         Use memcpy to copy entries, instead of stpcpy.
64010         Set errno properly when returning NULL.
64011         Check for readdir error.
64012
64013 2000-06-26  Jim Meyering  <meyering@lucent.com>
64014
64015         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64016
64017 2000-06-25  Jim Meyering  <meyering@lucent.com>
64018
64019         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64020         Linux header bug when _XOPEN_SOURCE is defined to 500.
64021
64022 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64023
64024         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64025         deficiency.
64026
64027 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64028
64029         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64030         Include xalloc.h.
64031         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64032
64033 2000-06-24  Jim Meyering  <meyering@lucent.com>
64034
64035         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64036         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64037         for which strerror does return char*, but which lacks a conveniently
64038         accessible declaration of the function.  If the compile-test says
64039         strerror_r doesn't work, then resort to a `run'-test that works on
64040         BeOS and segfaults on DEC Unix.
64041
64042 2000-06-24  Jim Meyering  <meyering@lucent.com>
64043
64044         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64045
64046 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64047
64048         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64049         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64050
64051 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64052
64053         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64054         (mbrtowc, mbstate_t): Define substitutes if
64055         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64056         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64057         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64058
64059 2000-06-23  Jim Meyering  <meyering@lucent.com>
64060
64061         * m4/afs.m4: Add missing AC_MSG_RESULT.
64062         Reported by Bruno Haible.
64063
64064         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64065         Suggestion from Bruno Haible.
64066
64067 2000-06-23  Jim Meyering  <meyering@lucent.com>
64068
64069         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64070
64071 2000-06-21  Jim Meyering  <meyering@lucent.com>
64072
64073         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64074
64075 2000-06-21  Jim Meyering  <meyering@lucent.com>
64076
64077         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64078         (noinst_HEADERS): Add getstr.h.
64079
64080         * lib/getline.c (getstr): Move into a separate file.
64081         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64082         the following changes: new parameter, delim2; both delim[12]
64083         parameters have type `int', not `char'.  The latter would lose
64084         with 8-bit delimiters.
64085         * lib/getstr.h: New file.
64086
64087 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64088
64089         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64090         than 1024, return a memory chunk of least possible size, instead
64091         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64092         Use free/xmalloc instead of xrealloc to avoid copying for very long
64093         paths.
64094
64095 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64096
64097         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64098         the empty string.
64099
64100 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64101
64102         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64103         address, not strdup.  Include <stdlib.h> and don't declare free().
64104
64105 2000-06-19  Jim Meyering  <meyering@lucent.com>
64106
64107         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64108
64109 2000-06-18  Jim Meyering  <meyering@lucent.com>
64110
64111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64112
64113         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64114         `checking whether...' message to be consistent with that of the
64115         lstat test.
64116
64117 2000-06-18  Jim Meyering  <meyering@lucent.com>
64118
64119         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64120         Besides, these days every porting target provides a mkdir function.
64121
64122         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64123         needed. (this snippet comes from src/system.h).
64124
64125 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64126
64127         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64128
64129 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64130
64131         * lib/human.c (adjust_value): New function.
64132         (human_readable_inexact): Apply rounding style even when
64133         printing approximate values.
64134
64135 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64136
64137         * lib/human.c (human_readable_inexact): Allow an input block
64138         size that is not a multiple of the output block size, and vice versa.
64139         Reported by Piergiorgio Sartor.
64140
64141 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64142
64143         * lib/getdate.y (get_date): Apply relative times after time
64144         zone indicator, not before.  Reported by Todd A. Jacobs.
64145
64146 2000-06-13  Jim Meyering  <meyering@lucent.com>
64147
64148         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64149
64150         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64151
64152 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64153
64154         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64155
64156 2000-06-12  Jim Meyering  <meyering@lucent.com>
64157
64158         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64159         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64160         optional argument.
64161         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64162         the optional argument, `lib'.
64163
64164 2000-06-08  Jim Meyering  <meyering@lucent.com>
64165
64166         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64167
64168 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64169
64170         Rewrite largefile configuration so that we don't need to run
64171         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64172         AC_CANONICAL_HOST in configure.in -- jmm]
64173
64174         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64175         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64176         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64177         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64178         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64179         All uses changed.
64180         Instead of inspecting the output of getconf, try to compile the
64181         test program without and with the macro definition.
64182         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64183         for getconf.  Instead, check for the needed flags by compiling
64184         test programs.
64185
64186 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64187
64188         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64189
64190 2000-06-04  Jim Meyering  <meyering@lucent.com>
64191
64192         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64193         SunOS 4.1.4 for which gid_t is an unsigned type.
64194
64195 2000-06-03  Jim Meyering  <meyering@lucent.com>
64196
64197         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64198         now that autoconf requires that.
64199
64200         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64201         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64202         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64203
64204 2000-06-03  Jim Meyering  <meyering@lucent.com>
64205
64206         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64207
64208 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64209
64210         * m4/glibc21.m4: New file.
64211         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64212
64213 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64214
64215         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64216         newer, don't install charset.alias.
64217         * lib/config.charset: Change the Linux/glibc rules so they become empty
64218         on glibc-2.1 or newer.
64219
64220 2000-06-02  Jim Meyering  <meyering@lucent.com>
64221
64222         * lib/mountlist.c: Back out last change.  Instead, do this...
64223         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64224         me_dummy member using the same `ignore'-testing code.
64225         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64226         fs_type strings.
64227         From Mark D. Roth.
64228
64229 2000-05-29  Jim Meyering  <meyering@lucent.com>
64230
64231         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64232         mounts with the `ignore' attribute.  Based on a patch from
64233         Mark D. Roth.
64234
64235 2000-05-28  Jim Meyering  <meyering@lucent.com>
64236
64237         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64238         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64239         * m4/stat.m4: Likewise.
64240         * m4/lstat.m4: Likewise.
64241         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64242
64243         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64244         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64245
64246 2000-05-26  Jim Meyering  <meyering@lucent.com>
64247
64248         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64249
64250 2000-05-24  Jim Meyering  <meyering@lucent.com>
64251
64252         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64253         autoconf requires that.
64254         * m4/lib-check.m4: Likewise.
64255         * m4/jm-macros.m4: Likewise.
64256         * m4/strftime.m4: Likewise.
64257
64258         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64259         AC_CHECK_DECLS, now that autoconf requires that.
64260
64261 2000-05-22  Jim Meyering  <meyering@lucent.com>
64262
64263         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64264         * m4/lstat.m4: Likewise.
64265
64266 2000-05-22  Jim Meyering  <meyering@lucent.com>
64267
64268         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64269
64270 2000-05-20  Jim Meyering  <meyering@lucent.com>
64271
64272         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64273         (jm_PREREQ): Use it.
64274
64275 2000-05-18  Jim Meyering  <meyering@lucent.com>
64276
64277         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64278         back, too, since it may have been modified by allocate_entry.
64279         (hash_delete): Rewrite to use neither the assignment operator
64280         nor the comma operator in an if-expression.
64281
64282 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64283
64284         * lib/closeout.c:
64285         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64286         Remove; no longer needed.
64287         "quotearg.h": Add include.
64288         (file_name): Do not bother to explicitly initialize to NULL; it's less
64289         efficient on some hosts.
64290         (close_stdout_status): Remove test as to whether stdout was already
64291         closed; it breaks for the case "echo x | sort >&-".
64292         Quote file name colons.
64293         Do not assume that _("write error") lacks format strings.
64294
64295 2000-05-15  Jim Meyering  <meyering@lucent.com>
64296
64297         * lib/version-etc.c (version_etc_copyright): Update the copyright
64298         string used in all --version output.
64299
64300 2000-05-14  Jim Meyering  <meyering@lucent.com>
64301
64302         * lib/closeout.c (close_stdout_set_file_name): New function.
64303         (close_stdout_status): Use new file-scoped global.
64304         Return right away if fstat says the stdout file descriptor is invalid.
64305         * lib/closeout.h (close_stdout_set_file_name): Declare.
64306
64307 2000-05-10  Jim Meyering  <meyering@lucent.com>
64308
64309         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64310         (close_stdout_set_status): New function.
64311         * lib/closeout.h (close_stdout_set_status): Declare.
64312
64313 2000-05-09  Jim Meyering  <meyering@lucent.com>
64314
64315         * m4/gettext.m4: Rename this...
64316         * m4/libintl.m4: ...to this.
64317
64318 2000-05-08  Jim Meyering  <meyering@lucent.com>
64319
64320         * lib/long-options.c: Don't include closeout.h.
64321         (parse_long_options): Don't call close_stdout for --version.
64322
64323 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64324
64325         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64326         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64327         2.1.3 bug.  This avoids a clash when files like regex.c define
64328         _GNU_SOURCE.
64329
64330 2000-05-06  Jim Meyering  <meyering@lucent.com>
64331
64332         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64333         (AC_REPLACE_FUNCS): Add strnlen.
64334
64335         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64336         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64337
64338         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64339         AC_SEARCH_LIBS call for nanosleep.
64340         (LIB_NANOSLEEP): Set and AC_SUBST.
64341
64342 2000-05-06  Jim Meyering  <meyering@lucent.com>
64343
64344         * lib/strnlen.c: Undefine __strnlen and strnlen.
64345         [!weak_alias]: Define __strnlen to strnlen.
64346
64347         * lib/atexit.c: New file, from libiberty.
64348
64349 2000-05-06  Jim Meyering  <meyering@lucent.com>
64350
64351         * lib/closeout.c (close_stdout_status): Also check for errors on the
64352         stderr stream.
64353
64354 2000-05-05  Jim Meyering  <meyering@lucent.com>
64355
64356         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64357         AC_SEARCH_LIBS call for clock_gettime.
64358         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64359
64360         * m4/search-libs.m4: Update from autoconf.
64361
64362         su doesn't work on Solaris 2.6.
64363         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64364         <shadow.h>.  Reported by Dragos Harabor.
64365
64366 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64367
64368         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64369         memcpy instead of xmalloc, xrealloc, path_concat.
64370         (locale_charset): Treat empty environment variables as absent.
64371         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64372
64373 2000-05-04  Jim Meyering  <meyering@lucent.com>
64374
64375         * lib/getopt.c: Update from glibc.
64376         * lib/obstack.c: Likewise.
64377         * lib/obstack.h: Likewise.
64378         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64379         file
64380
64381         * lib/regex.h: Likewise.
64382         * lib/strndup.c: Likewise.
64383         * lib/strnlen.c: New file, from glibc.
64384
64385 2000-05-03  Jim Meyering  <meyering@lucent.com>
64386
64387         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64388
64389 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64390
64391         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64392         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64393         compile-time test, rather than inspecting host and OS, to
64394         decide whether to define _LARGEFILE_SOURCE.
64395
64396 2000-05-01  Jim Meyering  <meyering@lucent.com>
64397
64398         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64399
64400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64401         Based on a patch from Bruno Haible.
64402
64403 2000-05-01  Jim Meyering  <meyering@lucent.com>
64404
64405         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64406
64407 2000-04-29  Jim Meyering  <meyering@lucent.com>
64408
64409         * lib/path-concat.c: Declare strdup only if it's not defined.
64410         * lib/canon-host.c: Likewise.
64411
64412 2000-04-28  Jim Meyering  <meyering@lucent.com>
64413
64414         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64415         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64416         is included first, then limits.h is included by locale.h by libintl.h.
64417         From John David Anglin.
64418
64419 2000-04-25  Jim Meyering  <meyering@lucent.com>
64420
64421         * lib/makepath.c (S_IRWXUGO): Define.
64422         (make_path): Always perform explicit chmod if MODE specifies any
64423         of the `special' permission bits.  Prompted by a bug report against
64424         install from Mate Wierdl and Joost van Baal.
64425
64426 2000-04-18  Jim Meyering  <meyering@lucent.com>
64427
64428         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64429         (jm_PREREQ): Use it.
64430
64431 2000-04-18  Jim Meyering  <meyering@lucent.com>
64432
64433         * lib/README: New file.
64434
64435         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64436         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64437
64438 2000-04-17  Jim Meyering  <meyering@lucent.com>
64439
64440         Get it right :-)
64441         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64442         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64443         Suggestion from Akim Demaille.
64444
64445 2000-04-17  Jim Meyering  <meyering@lucent.com>
64446
64447         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64448         the definition of it to rpl_strftime also defined-away the system's
64449         declaration.
64450
64451 2000-04-15  Jim Meyering  <meyering@lucent.com>
64452
64453         Use `C' to denote so-called `contiguous' files, the same way
64454         that tar does.
64455         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64456         (ftypelet): Use S_ISCTG.
64457         From Michael Deutschmann.
64458
64459 2000-04-14  Jim Meyering  <meyering@lucent.com>
64460
64461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64462         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64463         clobbered.
64464
64465 2000-04-14  Jim Meyering  <meyering@lucent.com>
64466
64467         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64468
64469 2000-04-13  Jim Meyering  <meyering@lucent.com>
64470
64471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64472         AH_VERBATIM to insert required #ifndef into config.h.in.
64473         Suggestion from Akim Demaille.
64474
64475 2000-04-12  Jim Meyering  <meyering@lucent.com>
64476
64477         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64478         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64479         Christian Krackowizer.
64480
64481         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64482         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64483         (AC_SYS_LARGEFILE): Require.
64484         (AM_C_PROTOTYPES): Require.
64485
64486 2000-04-08  Jim Meyering  <meyering@lucent.com>
64487
64488         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64489         names don't conflict.  Reported by Eli Zaretskii.
64490
64491 2000-04-07  Jim Meyering  <meyering@lucent.com>
64492
64493         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64494         sys/types.h, to work around system header problems on AIX 3.2.5.
64495         From Bruno Haible.
64496
64497 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64498
64499         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64500         bug.  Deal with the different error behavior of Irix iconv.
64501
64502 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64503
64504         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64505         IRIX if the installer said otherwise.
64506
64507 2000-04-05  Jim Meyering  <meyering@lucent.com>
64508
64509         Portability tweaks required for ultrix4.3.
64510         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64511         (jm_CHECK_DECLS): Add getutent to the list of functions.
64512         (_jm_DECL_HEADERS): Add utmpx.h.
64513         From John David Anglin.
64514
64515         * m4/strftime.m4: Back out the 2000-04-02 change.
64516         Instead of that change, simply undefine putenv in the test program.
64517
64518 2000-04-05  Jim Meyering  <meyering@lucent.com>
64519
64520         Portability tweaks required for ultrix4.3.
64521         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64522         getutent.
64523         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64524         * lib/canon-host.c: Declare strdup.
64525         * lib/path-concat.c: Likewise.
64526         From John David Anglin.
64527
64528 2000-04-04  Jim Meyering  <meyering@lucent.com>
64529
64530         Be more DOS 8.3-friendly.
64531         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64532         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64533         * lib/Makefile.am: Reflect renaming.
64534         Reported by Eli Zaretskii.
64535
64536         Use a temporary file name that won't clash with `charset.alias'
64537         in the DOS 8.3 name space.
64538         * lib/Makefile.am (charset_tmp): Define.
64539         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64540         (uninstall-local): Likewise.
64541         Reported by Eli Zaretskii.
64542
64543 2000-04-03  Jim Meyering  <meyering@lucent.com>
64544
64545         * m4/gettext.m4: Fix typo in comment.
64546
64547         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64548         textutils/configure.in).  Suggestion from Paul Eggert.
64549         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64550
64551 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64552
64553         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64554         variable in the shell rather than using putenv, which isn't
64555         portable.  This avoids the configure-time inter-test dependency
64556         on the potentially-renamed putenv function.
64557
64558 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64559
64560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64561         before checking struct stat.st_blksize, so that
64562         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64563
64564 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64565
64566         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64567         since strftime.c uses HAVE_STRFTIME to decide whether to use
64568         the underlying strftime.
64569
64570 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64571
64572         * lib/time/strftime.c (my_strftime): Make sure we call the system
64573         strftime, not ourselves, when invoking the underlying strftime.
64574
64575 2000-03-24  Jim Meyering  <meyering@lucent.com>
64576
64577         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64578         (charset_alias): Define.
64579         (install-exec-local): Factor out common code.
64580         (uninstall-local): Split lines longer than 80.
64581         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64582         (SUFFIXES): Define.
64583         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64584         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64585
64586 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64587
64588         * lib/config.charset: Output a line containing "Packages using this
64589         file".
64590         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64591         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64592         ref-del.sed): New rules.
64593
64594 2000-03-17  Jim Meyering  <meyering@lucent.com>
64595
64596         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64597         Otherwise, include <strings.h>
64598
64599 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64600
64601         * lib/unicodeio.c (utf8_wctomb): New function.
64602         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64603         format instead of in UCS-4 with platform dependent endianness.
64604
64605 2000-03-10  Jim Meyering  <meyering@lucent.com>
64606
64607         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64608         From Marco Franzen.
64609
64610 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64611
64612         * lib/savedir.c (savedir): Work even if directory size is
64613         negative; this can happen with some screwy NFS configurations.
64614
64615 2000-03-06  Jim Meyering  <meyering@lucent.com>
64616
64617         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64618         if it's NULL (because we ran out of memory).  From Bruno Haible.
64619
64620 2000-03-05  Jim Meyering  <meyering@lucent.com>
64621
64622         * lib/localcharset.c ("path-concat.h"): Include.
64623         (get_charset_aliases): Use path_concat instead of ANSI string
64624         concatenation.
64625
64626         * lib/unicodeio.h (PARAMS): Define.
64627         Use it to guard prototype.
64628
64629 2000-03-04  Jim Meyering  <meyering@lucent.com>
64630
64631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64632         for lib/localcharset.c.
64633
64634 2000-03-04  Jim Meyering  <meyering@lucent.com>
64635
64636         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64637         installing into it.
64638         (uninstall-local): Uncomment this rule so `make distcheck' works
64639         once again.
64640
64641         * lib/unicodeio.c (<errno.h>): Include it.
64642         (errno): Declare if not defined.
64643
64644         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64645
64646         * lib/config.charset: New version, incorporating remarks from a linux
64647         i18n mailing list.  From Bruno Haible.
64648
64649 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64650
64651         * m4/codeset.m4: New file.
64652         * m4/iconv.m4: New file.
64653         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64654
64655 2000-03-03  Jim Meyering  <meyering@lucent.com>
64656
64657         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64658
64659 2000-03-02  Jim Meyering  <meyering@lucent.com>
64660
64661         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64662         the messages come out on separate lines.
64663
64664         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64665         rather than jm_CHECK_DECLARATIONS.
64666         * m4/decl.m4: Remove now-unused file.
64667
64668         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64669         geteuid.
64670
64671 2000-03-02  Jim Meyering  <meyering@lucent.com>
64672
64673         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64674
64675 2000-03-01  Jim Meyering  <meyering@lucent.com>
64676
64677         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64678         * lib/unicodeio.c: Likewise.
64679
64680 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64681
64682         * lib/config.charset: New file.
64683         * lib/localcharset.c: New file.
64684         * lib/unicodeio.h, lib/unicodeio.c: New files.
64685         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64686         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64687         (noinst_HEADERS): Add unicodeio.h.
64688         (all-local, install-exec-local, charset.alias): New targets.
64689
64690 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64691
64692         * lib/quotearg.c (ALERT_CHAR): New macro.
64693         (quotearg_buffer_restyled): Use it.
64694
64695 2000-02-27  Jim Meyering  <meyering@lucent.com>
64696
64697         * m4/check-decl.m4: Add getenv to the list.
64698
64699 2000-02-27  Jim Meyering  <meyering@lucent.com>
64700
64701         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64702         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64703
64704         * lib/backupfile.c: Guard inclusion of stdlib.h with
64705         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64706         Declare malloc if needed.
64707
64708         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64709         `#ifndef HAVE_DECL..'
64710         now that autoconf always defines the HAVE_DECL_ symbols.
64711         * lib/human.c: Likewise.
64712         * lib/same.c: Likewise.
64713         * lib/strtoumax.c: Likewise.
64714
64715         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64716         declaration check was not run.
64717         * lib/hash.c: Likewise.
64718         * lib/human.c: Likewise.
64719         * lib/same.c: Likewise.
64720         * lib/strtoumax.c: Likewise.
64721
64722         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64723         `.', then first look up the entire `.'-containing string as a login
64724         name.
64725
64726 2000-02-23  Jim Meyering  <meyering@lucent.com>
64727
64728         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64729         in place of my hack.
64730
64731 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64732
64733         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64734         (textint): New typedef.
64735         (parser_control): Member year changed from int to textint.
64736         All uses changed.
64737         (YYSTYPE): Removed; replaced by %union with int and textint members.
64738         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64739         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64740         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64741         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64742         (date, number, to_year): Use width of number in digits, not its value,
64743         to determine whether it's a 2-digit year, or a 2-digit time.
64744         (yylex): Store number of digits of numeric tokens.
64745         Reported by John Kendall.
64746
64747         (parser_control): Changed from struct parser_control to typedef (for
64748         consistency).  All uses changed.
64749
64750         (tID): Removed; not used.
64751         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64752
64753 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64754
64755         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64756         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64757
64758 2000-02-12  Jim Meyering  <meyering@lucent.com>
64759
64760         * lib/userspec.c (ISDIGIT): Define it.
64761         (isdigit): Remove definition.
64762         (is_number): Use ISDIGIT, not isdigit.
64763         <libintl.h>: Include.
64764         (_ and N_): Define.
64765         (parse_user_spec): Mark translatable strings.
64766
64767 2000-02-10  Jim Meyering  <meyering@lucent.com>
64768
64769         With these changes, nanosleep.[ch] are finally enough like the other
64770         lib/* replacement files to compile on a few more losing systems.
64771
64772         * lib/nanosleep.h: Don't include config.h.
64773         Remove prototype from declaration of nanosleep.
64774         (PARAMS): Remove now-unneeded definition.
64775         * lib/nanosleep.c: #undef nanosleep.
64776         (rpl_nanosleep): Rename from nanosleep.
64777
64778 2000-02-10  Jim Meyering  <meyering@lucent.com>
64779
64780         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64781         gnu_nanosleep to rpl_nanosleep.
64782
64783 2000-02-09  Jim Meyering  <meyering@lucent.com>
64784
64785         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64786         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64787
64788 2000-02-08  Akim Demaille  <akim@epita.fr>
64789
64790         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64791         `[' and `]' and remove uses of `changequote'.
64792         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64793         (AC_SYS_LARGEFILE): Likewise.
64794         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64795         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64796         of changequote.
64797         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64798         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64799         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64800         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64801
64802 2000-02-05  Jim Meyering  <meyering@lucent.com>
64803
64804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64805         Remove explicit use of AC_HEADER_TIME.  It is required by
64806         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64807         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64808         in autoconf whereby the expansion of the latter ended up preceding
64809         the expansion of its prerequisite, AC_HEADER_TIME.
64810         Reported by Volker Borchert.
64811
64812 2000-02-03  Jim Meyering  <meyering@lucent.com>
64813
64814         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64815
64816 2000-02-03  Jim Meyering  <meyering@lucent.com>
64817
64818         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64819         rather than with `#if HAVE_UTMPNAME'.
64820
64821 2000-02-02  Jim Meyering  <meyering@lucent.com>
64822
64823         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64824         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64825         Reported by Eli Zaretskii.
64826
64827 2000-02-01  Jim Meyering  <meyering@lucent.com>
64828
64829         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64830
64831 2000-01-31  Jim Meyering  <meyering@lucent.com>
64832
64833         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64834         functions.  Add the time.h and sys/time.h headers along with the
64835         AC_REQUIRE'ment of AC_HEADER_TIME.
64836
64837 2000-01-31  Jim Meyering  <meyering@lucent.com>
64838
64839         * lib/nanosleep.h (nanosleep): Guard declaration with
64840         `#if ! HAVE_DECL_NANOSLEEP'.
64841         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64842         the declaration in that vendor's sys/timers.h.
64843         Reported by Christian Krackowizer.
64844
64845         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64846         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64847         (ISPRINT): Likewise.
64848         Reported by Tom Tromey.
64849
64850 2000-01-30  Jim Meyering  <meyering@lucent.com>
64851
64852         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64853
64854         * m4/prereq.m4 (utmp_includes): Define.
64855         Check for ut_user and ut_name members in both struct utmpx
64856         and struct utmp.
64857
64858 2000-01-30  Jim Meyering  <meyering@lucent.com>
64859
64860         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64861         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64862         header files where only utmpx.ut_user is declared.
64863
64864         * lib/readutmp.h (UT_USER): Define.
64865
64866 2000-01-29  Jim Meyering  <meyering@lucent.com>
64867
64868         * m4/lib-check.m4: New file containing library-related checks from
64869         fileutils and sh-utils (textutils had none).
64870
64871 2000-01-28  Jim Meyering  <meyering@lucent.com>
64872
64873         * m4/perl.m4: Change format of warning message to look more like that
64874         from the missing script.  Suggestion from François Pinard.
64875
64876 2000-01-25  Jim Meyering  <meyering@lucent.com>
64877
64878         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64879         well as time.h in the compile check.
64880         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64881         Fix typo in cross-compiling case: s/yes/no/.
64882
64883 2000-01-23  Jim Meyering  <meyering@lucent.com>
64884
64885         * m4/jm-macros.m4: Move df-related tests here from
64886         fileutils/configure.in
64887
64888         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64889         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64890
64891         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64892         s/space/ac_fsusage_space/.
64893         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64894
64895         * m4/ftruncate.m4: New file (derived from part of
64896         fileutils/configure.in).
64897         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64898         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64899
64900         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64901         AC_SUBST these here, rather than just in sh-util/configure.in, so
64902         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64903         all the same.
64904         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64905         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64906         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64907         (AC_SUBST(POW_LIBM)): Likewise.
64908         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64909
64910 2000-01-23  Jim Meyering  <meyering@lucent.com>
64911
64912         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64913         obstack.c.
64914
64915 2000-01-22  Jim Meyering  <meyering@lucent.com>
64916
64917         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64918
64919         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64920
64921         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64922         configure.in
64923         (AC_CHECK_HEADERS): Likewise for sh-utils.
64924         (AC_CHECK_HEADERS): Likewise for textutils.
64925         Merge the three lists of headers.
64926
64927         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64928         from fileutils' configure.in.
64929
64930         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64931         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64932         check-decl.m4.
64933
64934         * m4/check-decl.m4: Use #if rather than #ifdef.
64935         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64936         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64937         (_jm_DECL_HEADERS): Define new function.
64938         (jm_CHECK_DECLARATIONS): Require it.
64939
64940 2000-01-22  Jim Meyering  <meyering@lucent.com>
64941
64942         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64943         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64944         Required for some AIX systems.  Reported by Christian Krackowizer.
64945         [TESTING] (main): New function.
64946
64947         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64948         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64949         letters.
64950
64951         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64952         iswprint.
64953
64954         * lib/strverscmp.c (ISDIGIT): Define.
64955         (strverscmp): Use ISDIGIT, not isdigit.
64956
64957 2000-01-19  Jim Meyering  <meyering@lucent.com>
64958
64959         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64960         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64961         defines `struct timespec' in <sys/time.h>
64962
64963         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64964         Thanks to Akim for explaining.
64965
64966 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64967
64968         * lib/nanosleep.c (nanosleep):
64969         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64970         POSIX.1 doesn't require SA_INTERRUPT and some systems
64971         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64972         it's been part of POSIX.1 since day 1 (in 1988).
64973
64974 2000-01-17  Jim Meyering  <meyering@lucent.com>
64975
64976         * lib/interlock: Remove unused file.  Reported by François Pinard.
64977
64978 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64979
64980         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64981         alert, backslash, formfeed, and vertical tab unnecessarily in
64982         shell quoting style.
64983
64984 2000-01-16  Jim Meyering  <meyering@lucent.com>
64985
64986         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64987         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64988         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64989         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64990
64991 2000-01-16  Jim Meyering  <meyering@lucent.com>
64992
64993         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64994         because the latter didn't work.
64995
64996 2000-01-15  Jim Meyering  <meyering@lucent.com>
64997
64998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64999         (AC_REPLACE_FUNCS): Add memcpy and memset.
65000         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65001         Add strpbrk.
65002         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65003
65004 2000-01-12  Jim Meyering  <meyering@lucent.com>
65005
65006         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65007         (jm_PREREQ): Use it.
65008         (jm_PREREQ_READUTMP): New macro.
65009         (jm_PREREQ): Use it.
65010
65011 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65012
65013         Quote multibyte characters correctly.
65014         * m4/c-bs-a.m4: New file.
65015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65016         (jm_PREREQ): Use it.
65017
65018 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65019
65020         * m4/uintmax_t.m4: Port to autoconf 2.13.
65021
65022 2000-01-08  Jim Meyering  <meyering@ascend.com>
65023
65024         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65025         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65026
65027 2000-01-04  Jim Meyering  <meyering@ascend.com>
65028
65029         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65030         jm_STRUCT_DIRENT_D_TYPE.
65031         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65032         jm_STRUCT_DIRENT_D_INO.
65033         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65034         jm_STRUCT_UTIMBUF.
65035         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65036         renamings.
65037         * m4/utime.m4: Likewise.
65038
65039         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65040         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65041
65042 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65043
65044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65045         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65046
65047 2000-01-02  Jim Meyering  <meyering@ascend.com>
65048
65049         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65050         remember if this is necessary.
65051
65052 1999-12-26  Jim Meyering  <meyering@ascend.com>
65053
65054         * m4/jm-macros.m4: Use it here.
65055         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65056
65057 1999-12-23  Jim Meyering  <meyering@ascend.com>
65058
65059         * m4/jm-macros.m4: Check for clock_gettime (moved from
65060         fileutils/configure.in)
65061         Check for gettimeofday.
65062
65063 1999-12-20  Jim Meyering  <meyering@ascend.com>
65064
65065         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65066         autoconf-2.14a-1999-12-20.
65067
65068 1999-12-19  Jim Meyering  <meyering@ascend.com>
65069
65070         * m4/lstat-slash.m4: New file.
65071         * m4/jm-macros.m4: Use the new macro:
65072         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65073
65074 1999-12-07  Jim Meyering  <meyering@ascend.com>
65075
65076         * m4/perl.m4: Require that File::Compare be available, too.
65077         Too many systems seem to lack it.
65078
65079         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65080         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65081
65082 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65083
65084         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65085         problem with the QNX 4.25 shell, which doesn't propagate exit
65086         status of failed commands inside shell assignments.
65087
65088 1999-11-17  Jim Meyering  <meyering@ascend.com>
65089
65090         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65091
65092 1999-11-07  Jim Meyering  <meyering@ascend.com>
65093
65094         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65095
65096 1999-11-06  Jim Meyering  <meyering@ascend.com>
65097
65098         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65099         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65100
65101 1999-11-05  Jim Meyering  <meyering@ascend.com>
65102
65103         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65104         configure.in of textutils, fileutils, and sh-utils into this one
65105         (shared between those packages) file.
65106         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65107         AC_STRUCT_ST_BLKSIZE.
65108
65109 1999-11-03  Jim Meyering  <meyering@ascend.com>
65110
65111         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65112         of AC_CHECK_TYPE checks includes unistd.h.
65113         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65114         Suggestion from Akim Demaille.
65115
65116 1999-10-30  Jim Meyering  <meyering@ascend.com>
65117
65118         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65119         m4-quoted string.
65120         * m4/ls-mntd-fs.m4: Likewise.
65121         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65122         * m4/jm-winsz1.m4: Likewise.
65123
65124         * m4/const.m4: Remove file, since the fix made it into the experimental
65125         version of autoconf.
65126         * m4/mktime.m4: Likewise.
65127
65128         * m4/check-type.m4: Remove file, now that the latest version of
65129         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65130
65131         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65132         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65133         AC_CHECK_TYPE.
65134
65135 1999-10-04  Jim Meyering  <meyering@ascend.com>
65136
65137         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65138
65139 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65140
65141         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65142         2.95.1 bug with HP-UX 10.20.
65143
65144 1999-09-17  Jim Meyering  <meyering@ascend.com>
65145
65146         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65147         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65148         due to missing strdup (against sh-utils-2.0).
65149
65150 1999-08-29  Jim Meyering  <meyering@ascend.com>
65151
65152         * m4/jm-macros.m4: Require jm_BISON.
65153         * m4/bison.m4: New file.
65154
65155 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65156
65157         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65158         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65159
65160 1999-08-05  Jim Meyering  <meyering@ascend.com>
65161
65162         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65163         to avoid conflicts with `conftest' on 8+3 filesystems.
65164         Suggestion from Eli Zaretskii.
65165
65166 1999-08-04  Jim Meyering  <meyering@ascend.com>
65167
65168         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65169         fileutils and sh-utils (textutils's getline test was inadequate).
65170         (AM_FUNC_GETLINE): Run this test.
65171         (AC_CHECK_FUNCS): Check for getdelim.
65172         Reported by Bob Proulx.
65173
65174 1999-08-02  Jim Meyering  <meyering@ascend.com>
65175
65176         * m4/jm-macros.m4: Add a comment.
65177
65178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65179
65180         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65181         <inttypes.h> defines strtoumax as a macro (and not as a
65182         function).
65183
65184 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65185
65186         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65187         that we can shift, multiply and divide unsigned long long
65188         values; Ultrix cc can't do it.
65189
65190 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65191
65192         * m4/mktime.m4: New file, which is a preview of what should appear
65193         in the next public autoconf release.
65194
65195 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65196
65197         * m4/lfs.m4: Remove this file.
65198         * m4/largefile.m4: New file.  It contains the old contents of
65199         lfs.m4, except that all names with prefix AC_LFS have been
65200         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65201         compatible with future autoconf versions.  Also, some minor m4
65202         quoting problems have been fixed.
65203
65204 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65205
65206         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65207         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65208         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65209         and simplify the shell code.
65210
65211 1999-08-01  Jim Meyering  <meyering@ascend.com>
65212
65213         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65214         m4.
65215
65216 1999-07-20  Jim Meyering  <meyering@ascend.com>
65217
65218         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65219
65220 1999-07-15  Jim Meyering  <meyering@ascend.com>
65221
65222         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65223
65224 1999-05-22  Jim Meyering  <meyering@ascend.com>
65225
65226         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65227
65228 1999-05-20  Jim Meyering  <meyering@ascend.com>
65229
65230         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65231         Add a colon after each `then' in case $4 is empty.
65232
65233 1999-05-16  Jim Meyering  <meyering@ascend.com>
65234
65235         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65236
65237 1999-05-10  Jim Meyering  <meyering@ascend.com>
65238
65239         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65240
65241         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65242         AC_FUNC_MKTIME.
65243
65244 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65245
65246         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65247
65248 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65249
65250         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65251         not CPPFLAGS, so that linking works correctly in IRIX.
65252
65253 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65254
65255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65256
65257 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65258
65259         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65260         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65262         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65263         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65264
65265         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65266
65267 1999-04-20  Jim Meyering  <meyering@ascend.com>
65268
65269         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65270         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65271         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65272
65273 1999-04-18  Jim Meyering  <meyering@ascend.com>
65274
65275         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65276         * m4/jm-macros.m4: Use it.
65277
65278 1999-04-06  Jim Meyering  <meyering@ascend.com>
65279
65280         * m4/strftime.m4: Remove test for %f.
65281
65282 1999-03-29  Jim Meyering  <meyering@ascend.com>
65283
65284         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65285         superset of the AC_TYPE_* checks in the textutils, fileutils,
65286         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65287         AC_TYPE_PID_T.
65288
65289 1999-03-28  Jim Meyering  <meyering@ascend.com>
65290
65291         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65292         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65293         replaced e.g., in the *.sh files of the sh-utils.
65294
65295 1999-03-20  Jim Meyering  <meyering@ascend.com>
65296
65297         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65298         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65299         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65300
65301 1999-03-19  Jim Meyering  <meyering@ascend.com>
65302
65303         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65304
65305 1999-03-12  Jim Meyering  <meyering@ascend.com>
65306
65307         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65308
65309 1999-03-07  Jim Meyering  <meyering@ascend.com>
65310
65311         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65312         declared.
65313
65314 1999-02-17  Jim Meyering  <meyering@ascend.com>
65315
65316         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65317         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65318
65319 1999-02-07  Jim Meyering  <meyering@ascend.com>
65320
65321         * m4/group-member.m4: New file -- extracted from sh-utils'
65322         configure.in.
65323
65324         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65325         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65326
65327 1999-02-06  Jim Meyering  <meyering@ascend.com>
65328
65329         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65330         * m4/fnmatch.m4: Likewise.
65331         * m4/getgroups.m4: Likewise.
65332         * m4/lstat.m4: Likewise.
65333         * m4/malloc.m4: Likewise.
65334         * m4/putenv.m4: Likewise.
65335         * m4/realloc.m4: Likewise.
65336         * m4/regex.m4: Likewise.
65337         * m4/stat.m4: Likewise.
65338         * m4/strftime.m4: Likewise.
65339         Suggestion from Alain Magloire.
65340
65341         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65342         * m4/fnmatch.m4: Likewise.
65343         * m4/getgroups.m4: Likewise.
65344         * m4/getline.m4: Likewise.
65345         * m4/lstat.m4: Likewise.
65346         * m4/malloc.m4: Likewise.
65347         * m4/memcmp.m4: Likewise.
65348         * m4/putenv.m4: Likewise.
65349         * m4/realloc.m4: Likewise.
65350         * m4/regex.m4: Likewise.
65351         * m4/stat.m4: Likewise.
65352         * m4/strftime.m4: Likewise.
65353         Suggestion from Alain Magloire.
65354
65355         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65356         an argument.
65357
65358         * m4/regex.m4: Add a run-time Test for proper operation of
65359         re_compile_pattern.
65360
65361 1999-01-31  Jim Meyering  <meyering@ascend.com>
65362
65363         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65364
65365 1999-01-30  Jim Meyering  <meyering@ascend.com>
65366
65367         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65368
65369         * m4/jm-mktime.m4: Make this a wrapper around the official
65370         AM_FUNC_MKTIME rather than my private copy, now that the official one
65371         is up to date.
65372         * m4/mktime.m4: Remove file.
65373
65374         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65375         * m4/uptime.m4: Likewise.
65376         * m4/uintmax_t.m4: Likewise.
65377
65378 1999-01-28  Jim Meyering  <meyering@ascend.com>
65379
65380         * m4/jm-macros.m4: Use jm_AFS.
65381         * m4/afs.m4: New file (from fileutils' configure.in).
65382
65383         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65384         * m4/chown.m4: Likewise.
65385         * m4/d-ino.m4: Likewise.
65386         * m4/d-type.m4: Likewise.
65387         * m4/fnmatch.m4: Likewise.
65388         * m4/getgroups.m4: Likewise.
65389         * m4/gettext.m4: Likewise.
65390         * m4/jm-mktime.m4: Likewise.
65391         * m4/jm-winsz2.m4: Likewise.
65392         * m4/lcmessage.m4: Likewise.
65393         * m4/ls-mntd-fs.m4: Likewise.
65394         * m4/malloc.m4: Likewise.
65395         * m4/memcmp.m4: Likewise.
65396         * m4/putenv.m4: Likewise.
65397         * m4/realloc.m4: Likewise.
65398         * m4/st_mtim.m4: Likewise.
65399         * m4/strftime.m4: Likewise.
65400
65401 1999-01-16  Jim Meyering  <meyering@ascend.com>
65402
65403         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65404         (ARGMATCH_DIE_DECL): Define.
65405
65406 1999-01-12  Jim Meyering  <meyering@ascend.com>
65407
65408         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65409         Reported by Lars Hecking.
65410
65411 1999-01-10  Jim Meyering  <meyering@ascend.com>
65412
65413         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65414         gross kludge.
65415         * m4/inttypes_h.m4: Likewise.
65416         * m4/lstat.m4: Likewise.
65417         * m4/malloc.m4: Likewise.
65418         * m4/readdir.m4: Likewise.
65419         * m4/realloc.m4: Likewise.
65420         * m4/st_dm_mode.m4: Likewise.
65421         * m4/stat.m4: Likewise.
65422         * m4/utimbuf.m4: Likewise.
65423         * m4/utimes.m4: Likewise.
65424
65425         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65426         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65427         comments in config.h.in are meaningful.
65428
65429         * m4/jm-macros.m4: Require autoconf-2.13 here.
65430
65431         * m4/regex.m4: By default, don't use the included regex.c on systems
65432         with glibc 2.  Suggestion from Uli Drepper.
65433
65434 1999-01-02  Jim Meyering  <meyering@ascend.com>
65435
65436         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65437
65438 1998-12-18  Jim Meyering  <meyering@ascend.com>
65439
65440         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65441         Based on a suggestion from Lars Hecking.
65442
65443 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65444
65445         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65446
65447 1998-11-16  Jim Meyering  <meyering@ascend.com>
65448
65449         * m4/lfs.m4: Double-quote the `uname...` expression.
65450
65451 1998-11-14  Jim Meyering  <meyering@ascend.com>
65452
65453         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65454         * m4/stat.m4: Likewise.
65455
65456 1998-11-03  Jim Meyering  <meyering@ascend.com>
65457
65458         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65459         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65460
65461 1998-10-18  Jim Meyering  <meyering@ascend.com>
65462
65463         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65464
65465 1998-10-17  Jim Meyering  <meyering@ascend.com>
65466
65467         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65468         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65469         calls for those previously hard-coded headers.  Instead, take a new
65470         parameter.
65471         (jm_CHECK_DECLARATIONS): Reflect interface change.
65472         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65473         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65474
65475         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65476
65477 1998-10-14  Jim Meyering  <meyering@ascend.com>
65478
65479         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65480         instead of "TZ=America/Vancouver".  From Paul Eggert.
65481
65482 1998-10-11  Jim Meyering  <meyering@ascend.com>
65483
65484         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65485         This adds a test for a recently added compatibility fix for mktime.c.
65486         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65487
65488 1998-09-27  Jim Meyering  <meyering@ascend.com>
65489
65490         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65491
65492         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65493         ../configure.in, including a change from Gordon Matzigkeit to allow
65494         cross-compiling for the Hurd.
65495
65496         * m4/glibc.m4: New file/macro to test for the GNU C Library
65497         versions 1 and 2.  From Gordon Matzigkeit.
65498         Indent.
65499
65500 1998-09-21  Jim Meyering  <meyering@ascend.com>
65501
65502         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65503
65504 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65505
65506         Port nanosecond-resolution times to UnixWare 2.1.2 and
65507         pedantic Solaris 2.6.
65508
65509         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65510         AC_STRUCT_ST_MTIM.
65511         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65512         Generate name of ns member, instead of just 1 or undef.
65513         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65514
65515 1998-08-15  Jim Meyering  <meyering@ascend.com>
65516
65517         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65518         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65519         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65520         instead of jm_TYPE_SSIZE_T.
65521
65522 1998-08-12  Jim Meyering  <meyering@ascend.com>
65523
65524         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65525
65526 1998-08-02  Jim Meyering  <meyering@ascend.com>
65527
65528         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65529         in acconfig.h manually.
65530
65531 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65532
65533         * m4/st_mtim.m4: New file.
65534
65535 1998-07-28  Jim Meyering  <meyering@ascend.com>
65536
65537         * m4/utimes.m4: Undef stat.
65538
65539 1998-07-25  Jim Meyering  <meyering@ascend.com>
65540
65541         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65542         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65543
65544 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65545
65546         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65547         uid and gid actually remain unchanged.
65548
65549 1998-07-07  Jim Meyering  <meyering@ascend.com>
65550
65551         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65552
65553 1998-07-04  Jim Meyering  <meyering@ascend.com>
65554
65555         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65556         to prove that this macro can be used in packages without regex.c.
65557
65558 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65559
65560         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65561         is to be used.
65562
65563 1998-07-03  Jim Meyering  <meyering@ascend.com>
65564
65565         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65566
65567         * m4/gettext.m4: New file -- from gettext-0.10.35.
65568         * m4/lcmessage.m4: Likewise.
65569         * m4/progtest.m4: Likewise.
65570
65571         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65572         * m4/jm-macros.m4: Require the new macro.
65573
65574 1998-06-29  Jim Meyering  <meyering@ascend.com>
65575
65576         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65577         for the definition of NGROUPS (used in a system header included
65578         by sys/mount.h).
65579
65580 1998-06-28  Jim Meyering  <meyering@ascend.com>
65581
65582         * m4/ls-mntd-fs.m4: New file.
65583         * m4/fstypename.m4: New file.
65584
65585         * m4/jm-macros.m4: Require the new macro.
65586         * m4/jm-glibc-io.m4: New file.
65587
65588 1998-05-19  Jim Meyering  <meyering@ascend.com>
65589
65590         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65591         * m4/lchown.m4: New file.
65592
65593         * m4/Makefile.am.in: New file.
65594         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65595
65596 1998-05-14  Jim Meyering  <meyering@ascend.com>
65597
65598         * m4/Makefile.am (EXTRA_DIST): Add them.
65599         * m4/jm-macros.m4: New file.
65600         * m4/utimbuf.m4: New file.
65601
65602 1998-05-12  Jim Meyering  <meyering@ascend.com>
65603
65604         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65605
65606 1998-05-11  Jim Meyering  <meyering@ascend.com>
65607
65608         * m4/isc-posix.m4: New file.
65609
65610 1998-05-10  Jim Meyering  <meyering@ascend.com>
65611
65612         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65613
65614 1998-05-09  Jim Meyering  <meyering@ascend.com>
65615
65616         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65617         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65618         with automake.
65619
65620         * m4/ssize_t.m4: New file.
65621         * m4/mktime.m4: Remove file -- the new automake has this now.
65622
65623 1998-04-26  Jim Meyering  <meyering@ascend.com>
65624
65625         * m4/assert.m4: New file.
65626         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65627
65628 1998-04-05  Jim Meyering  <meyering@ascend.com>
65629
65630         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65631         (jm_PREREQ): Use it here.
65632
65633 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65634
65635         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65636         in acconfig.h.
65637
65638 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65639
65640         * m4/prereq.m4: New file.
65641         * m4/error.m4: New file.
65642         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65643
65644 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65645
65646         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65647         cache-check for the same variable -- that defeated the purpose of
65648         the test; the test program was never run.  This was a problem only
65649         on systems with losing getline functions -- HP-UX 10.20 is one.
65650         Reported by Bjorn Helgaas.
65651
65652 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65653
65654         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65655
65656 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65657
65658         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65659
65660         * m4/const.m4: New file.  Use an initializer in this declaration
65661         typedef int charset[2]; const charset x;
65662         Reported by Bob Glickstein.
65663
65664 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65665
65666         * m4/chown.m4: Fix reversed types on -1 args to chown.
65667         From Kaveh Ghazi.
65668
65669 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65670
65671         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65672         Add lseek and memchr.
65673
65674         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65675         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65676         have a 20-character limit on names.
65677
65678 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65679
65680         * m4/inttypes_h.m4: New file.
65681         * m4/uintmax_t.m4: New file.
65682         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65683
65684
65685         -----
65686
65687         Local Variables:
65688         coding: utf-8
65689         End:
65690
65691         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65692
65693         Copying and distribution of this file, with or without
65694         modification, are permitted provided the copyright notice
65695         and this notice are preserved.